[Guide][Tool]How To Make Flashable Zips For Xperia Devices - Sony Xperia P, U, Sola, Go

..::Hey Guys i'm Back With My New Tool/Guide On How To Make a Flashable Zip::..
..::About Tool/Guide::..
1)This Will Learn U How to Make a Zip
2)This Will Help Dev,Themers & NOOBS Making There Own Zips Fast And Easily
3)Including Auto Set/Fix For Permissions
..::Requirements::..
1)Files U Need To Put In Zip
2)CWM Recovery To Flash Zips
3)7Zip/Winrar/Winzip
4)NotePad++
5)Flashable Zip Tool
..::Steps::..
Download Flashable Zip Tool:Download From Here
Extract The Folder (Flashable Zip Tool) Anywhere in Ur Desktop
Open Flashable Zip Maker[Don't Extract]
Now U will Find/See 4 Folders:data,META-INF,preload,system
Lets Start With System Folder
First Open system Inside The Zip
Copy Ur Apk/Jar/so/xml File To The Right Place"
/system/app - All The System Apps (SystemUI.apk etc)
/system/framework/ -framework-res.apk,android.policy.jar
/system/etc - vold.fstab,.xml files
/system/media - (Bootanimation)(System Sounds)
/system/lib - libraries (*.so)
/system/fonts -(fonts)
Second Edit Updater-Script
in Flashable Zip Maker Folder u Will Find A File Called Updater-Script
Edit Using NotePad++ (U can Edit Some Lines I but Like (Your Name),(Your Mod Name)
Now After Editing Copy and Go to META-INF>com>google>android (Inside Flashable Zip Maker.Zip)
Delete Updater-Script And Past Yours
Now Ur Zip Is Ready To Sign Copy-Past To Put-Zip-To-Sign-Here Folder''
And Open ZIP_Auto-Signer.bat
Ur Zip Will Be Ready To Flash Go To Finished "Folder" U Will Find a Zip Called signed.zip
Rename to What Ever U Want
Third How To install
Copy To Ur Sd-Card
Turn Of Ur Devices
Flash In CWM Recovery
Done U Now Made And Installed UR New Flashable Zip
Liked If Yes Don't Forget To Press Thanx
​

Reseved

Hey Guys This is a Great Tool Did any one try
P.s This is My First one

And if a want to flash an app, but not a system app?
Inviato dal mio Xperia U con Tapatalk 2

alematt said:
And if a want to flash an app, but not a system app?
Inviato dal mio Xperia U con Tapatalk 2
Click to expand...
Click to collapse
but it in data folder
try ur self plz
but the apk in data>data folder
then sign the apk
Press thanks if i helped

Hey any one tried
Sent from my MT27i using xda app-developers app

dont work
hello
dont work man
im try alot but dont work
i mean i create the zip package and i flashed in cwm but when i intered into menu no programm icon added?
-------------------------------
i want to create the zip package with the app ( dont system app) like es file manager
im copy the app into
data/
in Flashable Zip Maker[Don't Extract]
and edit script and copy this script to
Flashable Zip Maker[Don't Extract].zip\META-INF\com\google\android
and the delet old and paste the new script
and put this package into
Put-Zip-To-Sign-Here folder and run ZIP_Auto-Signer
and send the file which in finished folder
and flashed in cwm but not work
-----------------------------
please help me
tnx

hamidreza2010 said:
hello
dont work man
im try alot but dont work
i mean i create the zip package and i flashed in cwm but when i intered into menu no programm icon added?
-------------------------------
i want to create the zip package with the app ( dont system app) like es file manager
im copy the app into
data/
in Flashable Zip Maker[Don't Extract]
and edit script and copy this script to
Flashable Zip Maker[Don't Extract].zip\META-INF\com\google\android
and the delet old and paste the new script
and put this package into
Put-Zip-To-Sign-Here folder and run ZIP_Auto-Signer
and send the file which in finished folder
and flashed in cwm but not work
-----------------------------
please help me
tnx
Click to expand...
Click to collapse
in data folder make another folder called data
it should be like this
data>data>(ur app)

Mtakween said:
in data folder make another folder called data
it should be like this
data>data>(ur app)
Click to expand...
Click to collapse
tnx
i maked it but not work too
what is my wrong?
how to sign the apk file?
or are needed to sing apk file?

hamidreza2010 said:
tnx
i maked it but not work too
what is my wrong?
how to sign the apk file?
or are needed to sing apk file?
Click to expand...
Click to collapse
no the name of apk file should be like when u take it from data>data folder or i won't work
it is like that com.bla bal bla
ok try this should work

Mtakween said:
no the name of apk file should be like when u take it from data>data folder or i won't work
it is like that com.bla bal bla
ok try this should work
Click to expand...
Click to collapse
tnx man
but im not english man
i dont undrestant
please say the easy way
or say simple example
thanx

hamidreza2010 said:
tnx man
but im not english man
i dont undrestant
please say the easy way
or say simple example
thanx
Click to expand...
Click to collapse
The start of ur name is Hamid this is an Arabian name
Do u know Arabic
Sent from my MT27i using xda app-developers app

Mtakween said:
The start of ur name is Hamid this is an Arabian name
Do u know Arabic
Sent from my MT27i using xda app-developers app
Click to expand...
Click to collapse
ha ha ha ha ha
no freind im not arabian
please help me brother
i very love your program and i love to make a flashable zip
---------- Post added at 03:45 PM ---------- Previous post was at 03:35 PM ----------
i want to make the apk file (not system files) in flazhable zip
please say what should i do.
please say compelete
thanx

hamidreza2010 said:
ha ha ha ha ha
no freind in not arabian
please help me brother
i very love your program and i love to make a flashable zip
---------- Post added at 03:45 PM ---------- Previous post was at 03:35 PM ----------
i want to make the apk file (not system files) in flazhable zip
please say what should i do.
please say compelet
thanx
Click to expand...
Click to collapse
U want to make as system app
Or normal
As I. See no need to make a flash-able zip if u won't make a system app
Sent from my MT27i using xda app-developers app

Mtakween said:
U want to make as system app
Or normal
As I. See no need to make a flash-able zip if u won't make a system app
Sent from my MT27i using xda app-developers app
Click to expand...
Click to collapse
ooooooooooooh
i want to make a flashable zip from the normal apk like es fila manager
how do i make it?
cant make with your programm

Hi, thank you for this Guide...
I have some questions...
If i want to update e.g. Google Play app with this script, how should I name the file? In my phone /system/apk/ is Phonesky.apk and you wrote that the name of the application should be com.SOMETHING, in this case com.android.vending.
And my second question is, can i delete unwanted apps? What i need to add to script?
Thank You

Ja_som said:
Hi, thank you for this Guide...
I have some questions...
If i want to update e.g. Google Play app with this script, how should I name the file? In my phone /system/apk/ is Phonesky.apk and you wrote that the name of the application should be com.SOMETHING, in this case com.android.vending.
And my second question is, can i delete unwanted apps? What i need to add to script?
Thank You
Click to expand...
Click to collapse
For system apps no need
Copy it as it is
Sent from my MT27i using xda app-developers app

I'm sorry, I don't understand your reply...
What copy as is? What no need?
So name should be Phonesky.apk, and app will be replaced, right?
I want to delete unwanted apps... Therefore, I ask if you can advise me what to embed to script.

Ja_som said:
I'm sorry, I don't understand your reply...
What copy as is? What no need?
So name should be Phonesky.apk, and app will be replaced, right?
I want to delete unwanted apps... Therefore, I ask if you can advise me what to embed to script.
Click to expand...
Click to collapse
Yes it will be replaced
This is right it will work of you done it like that
About unwanted apps
See jb fixes
By soulhackereborn
Sent from my MT27i using xda app-developers app

I know which apps i can delete, but i want delete them in "one click"...
HERE on XDA is script to delete unwanted apps... I would like to combine it with your script... Can I simply copied it after ...Extracting... part of your script?
Something like this?
ui_print(" ");
ui_print("|==================================|");
ui_print("| Flashable Zip Tool |");
ui_print("|==================================|");
ui_print("| by: Mtakween |");
ui_print("|==================================|");
run_program("/sbin/sleep", "3s");
ui_print(" Your Mod Name ");
ui_print("By: (Your Name) ");
ui_print("------------------------------------");
ui_print("...Installing busybox... ");
package_extract_file("busybox", "/tmp/busybox");
set_perm(0, 0, 0777, "/tmp/busybox");
run_program("/tmp/busybox");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("...Mounting...");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/preload");
run_program("/sbin/busybox", "mount", "/data");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("...Extracting...");
package_extract_dir("system", "/system");
package_extract_dir("preload", "/preload");
package_extract_dir("data", "/data");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("Useless system app removal");
delete("/system/app/APPNAME1.apk");
delete("/system/app/APPNAME2.apk");
ui_print(" ");
ui_print("Useless stuff cleaning finish");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("...Symlinking...");
package_extract_file("create_preload_symlinks", "/tmp/create_preload_symlinks");
set_perm(0, 0, 0777, "/tmp/create_preload_symlinks");
run_program("/tmp/create_preload_symlinks");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("...Setting permissions...");
package_extract_file("fix_permissions.sh", "/tmp/fix_permissions.sh");
set_perm(0, 0, 0755, "/tmp/fix_permissions.sh");
run_program("/tmp/fix_permissions.sh");
set_perm_recursive(0, 0, 0755, 0644, "/preload/symlink/system/app");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("...Unmounting...");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/preload");
run_program("/sbin/busybox", "umount", "/data");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("...Deleting temporary files...");
delete("/tmp/busybox");
delete("/tmp/create_preload_symlinks");
delete("/tmp/fix_permissions.sh");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" ");
ui_print("....Completed successfully!....");
ui_print(" ");
ui_print("------------------------------------");
ui_print(" Don't Forget To Press Thanks ");
ui_print(" ");
ui_print("------------------------------------");
Click to expand...
Click to collapse
---------- Post added at 09:08 PM ---------- Previous post was at 08:44 PM ----------
hamidreza2010 said:
hello
dont work man
im try alot but dont work
i mean i create the zip package and i flashed in cwm but when i intered into menu no programm icon added?
-------------------------------
i want to create the zip package with the app ( dont system app) like es file manager
im copy the app into
data/
in Flashable Zip Maker[Don't Extract]
and edit script and copy this script to
Flashable Zip Maker[Don't Extract].zip\META-INF\com\google\android
and the delet old and paste the new script
and put this package into
Put-Zip-To-Sign-Here folder and run ZIP_Auto-Signer
and send the file which in finished folder
and flashed in cwm but not work
-----------------------------
please help me
tnx
Click to expand...
Click to collapse
1. rename you apk to com.estrongs.android.pop.apk
2. copy it to /data/app/ (create app folder) in Flashable Zip Maker[Don't Extract].zip
3. edit script updater-script[Edit Then But In Signed Zip]
4. rename to updater-script
5. copy and replace script in Flashable Zip Maker[Don't Extract].zip\META-INF\com\google\android
6. copy Flashable Zip Maker[Don't Extract].zip to Put-Zip-To-Sign-Here folder
7. run ZIP_Auto-Signer.bat
8. enjoy you flashable zip in Finished folder
But i don't know why you want to do it this way... You want to make preinstalled nonsystem app?
If helped don't forget to press Thanx also for Mtakween for his script

Related

Flashable Batch of Apps from CWM

Hello XDA people,
I'm trying to make a zip file which can be flashed through CWM. The zip file will include:
Code:
a batch of apps in the /system/app folder
The purpose of this zip is to quick install a bunch of apps after installing a new rom.
I'm guessing that simply drag dropping a bunch of apps inside the system/app zip folder will be enough, right?
The problem is that i don't have a dummy flashable zip file to work with. Can someone please help with this?
ps: i've tried app2zip from market, it doesn't work on s5360
its easy,but system partition have a size limit
i've tried making it but keep getting a "status 0 aborted" error.
What is the system size limit?
Will it help if i delete some big apps from system like maps and swype? I already have almost 50mb free on sys partition.
Can you give me the dummy file to test. preferably both for /data/app and /system/app
broadways said:
Hello XDA people,
I'm trying to make a zip file which can be flashed through CWM. The zip file will include:
Code:
a batch of apps in the /system/app folder
The purpose of this zip is to quick install a bunch of apps after installing a new rom.
I'm guessing that simply drag dropping a bunch of apps inside the system/app zip folder will be enough, right?
The problem is that i don't have a dummy flashable zip file to work with. Can someone please help with this?
ps: i've tried app2zip from market, it doesn't work on s5360
Click to expand...
Click to collapse
you need to sign the zip via zip signer (search in themes and apps) and write an updator script (google it)
i dont think size matters much because many rom zips contain only a /system folder
system folder has only 1limitation
the total memory is 222 mb so be carefull about that
your apps should not exceed this size
I got it working... Here is the code for anyone who needs it... found @ META-INF\com\google\android\updater-script file
Code:
ui_print("Partitions mount");
#Properly unmounting to avoid issues
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
#Then mounting
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/data");
ui_print("System folder application installation");
package_extract_dir("system", "/system");
ui_print("Unmounting partitions");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
ui_print("Finish");
With this code, anyone can load multiple apps from flash in 5 seconds.
There's another problem. While installing apps @ system/app works fine with the above script, a different script for installing apps @ data/app doesn't work at all. I have created a thread for this issue at the following link below:
http://forum.xda-developers.com/showthread.php?p=35698853
broadways said:
Hello XDA people,
I'm trying to make a zip file which can be flashed through CWM. The zip file will include:
Code:
a batch of apps in the /system/app folder
The purpose of this zip is to quick install a bunch of apps after installing a new rom.
I'm guessing that simply drag dropping a bunch of apps inside the system/app zip folder will be enough, right?
The problem is that i don't have a dummy flashable zip file to work with. Can someone please help with this?
ps: i've tried app2zip from market, it doesn't work on s5360
Click to expand...
Click to collapse
I think its better to make a backup using CWM and restore only data.
copy the zip from my signature (stock deadexed)
its for flashing bunch of apps to our device
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ sent using busybox command via Cytherea phone ~
Spoiler
LESSON 1: dont ask for ETA's, the mod-wanna-be-guy will report it
---------- Post added at 02:24 PM ---------- Previous post was at 02:23 PM ----------
add or delete any apps from app folder..
dont forget to delete framework folder as u not need it..
.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ sent using busybox command via Cytherea phone ~
Spoiler
LESSON 1: dont ask for ETA's, the mod-wanna-be-guy will report it

[Q] Include user app into flasheable ROM zip.

Hello guys! Hope you can help me with this.
I want to include some apps in my rom, but this app CANT be in the normal /system/app I want that they install as usar app every time i flash. It upose -i read it- that i should create a folder called "data" in the Root of my ROM. So i will have 3 folders: /META-INF/ /system/ and /data/
Along with this i have to edit with notepad++ the updater-script in the directory META-INF\com\google\android and add just below the line package_extract_dir("system", "/system"); the following:
format("yaffs2", "MTD", "userdata");
mount("yaffs2", "MTD", "userdata", "/data");
package_extract_dir("data", "/data");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
And save the file. So i just have to put the .apk files in the /data/ and they will appear like *****in' magic every time i flash... But no, is not working .
Where is the error or what is the right wat to do it? Thanks
And yeah, english is not my native language
mauriciognr said:
Hello guys! Hope you can help me with this.
I want to include some apps in my rom, but this app CANT be in the normal /system/app I want that they install as usar app every time i flash. It upose -i read it- that i should create a folder called "data" in the Root of my ROM. So i will have 3 folders: /META-INF/ /system/ and /data/
Along with this i have to edit with notepad++ the updater-script in the directory META-INF\com\google\android and add just below the line package_extract_dir("system", "/system"); the following:
format("yaffs2", "MTD", "userdata");
mount("yaffs2", "MTD", "userdata", "/data");
package_extract_dir("data", "/data");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
And save the file. So i just have to put the .apk files in the /data/ and they will appear like *****in' magic every time i flash... But no, is not working .
Where is the error or what is the right wat to do it? Thanks
And yeah, english is not my native language
Click to expand...
Click to collapse
If you want the app to be a system app, have you tried extracting the library files in the .apk? Open the .apk using WinRAR (an .apk is real
y like a .zip file) and open the folder 'lib' (if there is one). The folder within should be called something like 'armv7a' or 'armv6'. If your device is an ARMv6 device (search it up) the app may be incompatible with your device if there is no matching 'armv6' folder. If there is, open the folder and extract the .so file(s) and put them under /system/lib/ on your device, either with a root file browser, or with a .zip via CWM, Anyways, what app are you trying to install
?
Codename13 said:
If you want the app to be a system app, have you tried extracting the library files in the .apk? Open the .apk using WinRAR (an .apk is real
y like a .zip file) and open the folder 'lib' (if there is one). The folder within should be called something like 'armv7a' or 'armv6'. If your device is an ARMv6 device (search it up) the app may be incompatible with your device if there is no matching 'armv6' folder. If there is, open the folder and extract the .so file(s) and put them under /system/lib/ on your device, either with a root file browser, or with a .zip via CWM, Anyways, what app are you trying to install
?
Click to expand...
Click to collapse
Thanks for reply, but I already know that and already did it. Due to my phone have REALLY little rom memory. So my dream was to allow some apps to be instaled along with the rom.zip but as a user app. Im sick and tired already have almost a week like 6 hours day making my mod of a rom and now that is ready and sexy i cant "transfer the data folder from de rom.zip to data. Thanks for replay.
Have you looked into dsixda's kitchen? It will load your ROM and add in the bits needed to do what you want. The only downside is it isn't really updated anymore. You could also find a mod that flashes user apps in your phone's respective forum, then open it up and look at the updater-script.
Sent from a Toasted Devil
netwokz said:
Have you looked into dsixda's kitchen? It will load your ROM and add in the bits needed to do what you want. The only downside is it isn't really updated anymore. You could also find a mod that flashes user apps in your phone's respective forum, then open it up and look at the updater-script.
Click to expand...
Click to collapse
Now here I am with identical problem. In my case,
A. There is no forum with other mods for the TV Stick I am coding.
B. Dxixda's Kitchen chocked up with the AMLOGIC Kernel and refused to help further.
So here's my problem that, I have been breaking my head on this for a week now.
I have a TV Stick with android ICS 4.0.4, and has "yafss2" format. I have attached the mountpoint info, partition info and my updater script.
I am trying to mount the /Data Partition so that I can copy a test APK to /Data/App folder for now. Eventually I need to copy other stuff like app data to /data/data.
Although edify script requires the format
mount(type, device, mountpoint);
I need to do
mount("yafss2","MTD", "/dev/block/mtdblock7", "/data");
for some reason, otherwise the AMLOGIC Recovery gives error of missing parameter.
Anyway, even after following that format, its not working.
The subsequent "package_extract_dir" operation is not successful and I can see the files are not getting copied.
I'd dearly appreciate any pointers and advice.
may be you should set the permission on the /data instead of on the /system/app in you updater script.
hope this can help....
tepar said:
may be you should set the permission on the /data instead of on the /system/app in you updater script.
hope this can help....
Click to expand...
Click to collapse
I should have commented out that statement. I realized it after I posted. No it doesn't really matter anyway. The files didn't get copied to there's no permissions to set.

[Q] How to make updater-script?

hi DEV....
I want to make the updater-script for my update.zip.
how the script is correct. if I want to do this:
1. create a folder "backupApp" in sdcard
2. copy "/system/app/browser.apk" to "sdcard/backupApp/browser.apk"
3. Delete "/system/app/browser.apk".
I want to uninstall browser.apk of the system.
thanks.
For 2 it should be like this
First you need to mount system hence the foll command
run_program("/sbin/busybox", "mount", "/system");
Then for copying it
run_program("/sbin/busybox", "cp", "/system/app/browser.apk", /sdcard/backupApp/browser.apk");
And for 3
delete("/system/app/browser.apk");
This should be it if i am not wrong
but, on the sdcard, nothing folder "backupApp", how to make it?
run_program("mkdir", "/sdcard/XYZ");
Sent from my Elder Wand
iamareebjamal said:
run_program("mkdir", "/sdcard/XYZ");
Sent from my Elder Wand
Click to expand...
Click to collapse
Thanks, I will try that.

[Request] S Duos updater script

Can someone make for me a flashable zip to replace the system/app
And system/framework
Folders with another folders from my choice
Cuz I have deodexed them but
I don't have android sdk to push them through abd
Thanks in advance
Sent from my GT-S7562 using xda premium
Does your device have a custom recovery? Do you know the mount points?
You don't need the full SDK for adb, and depending on what all you are replacing you could do it with a root file explorer or a terminal emulator
Sent from my Nexus 4 using Tapatalk 2
I do have cwm recovery
But what is this mount points ??
Anyway
I think if I changed this files through root explorer or terminal emulator
The phone will freeze in the process
And won't boot again
Cuz while the system is on the android will be running this apps and changing them while the phone is on will cause the phone to stop working before the process finish
Sent from my GT-S7562 using xda premium
depending on what your flashing could make your phone freeze true but you didnt really explain what your are in need of flashing.
adding a system app wont harm anything, changing the framework-res.apk will, but again i dont have all the info on what your trying to flash so its all a guess
by mount points i mean location of system partition etc, but you can try to bypass this
here is an example of what your updater script should look like (again just guessing being i would need more detail)
Code:
ui_print("Installing Mods..");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
probably would need to set permissions as well but again would need more info
About the mounting points I can mount it manually through the recovery
I need a zip to replace all the apks and jars in this directory
Maybe wiping the two directories
And placing a new ones
Sent from my GT-S7562 using xda premium
I want replace everything in the system/app and system/framework directories
I have deodexed everything inside them but I don't have android sdk to push them
Sent from my GT-S7562 using xda premium
well again, you dont need the whole sdk to have adb, which even for more than just this case its a handy tool to have, and you should have it if your modding androids
The script bellow will wipe /system/app and /system/framework and then drop your files in those place and set their permissions
just create a file called updater-script and put this in there (unix format) and grab an update-binary for your device and put both files in META-INF/com/google/android
then at the same level as META-INF, make a folder called system, in that folder have two more folders, app and framework, place files you want to flash in the proper folders
now zip it all up, sign it (or change sig check in recovery) and flash
Code:
ui_print("Installing Mods..");
ui_print("Deleting first..");
delete_recursive("/system/app");
delete_recursive("/system/framework");
ui_print("Mounting System..");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Extracting Files..");
package_extract_dir("system", "/system");
ui_print("Setting Permissions..");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/framework");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
Thanks gona try it and will report back
Sent from my GT-S7562 using xda premium
It worked thank you very much
Sent from my GT-S7562 using xda premium

[SCRIPT][Flashable]BloatWare Remover V1 03082014

Bloatware Removal Script​
Hi all,
The Sony Xperia SP comes with a lot of Bloatware. Some can be removed but others can't and that is annoying.
So I've made a small script that removes all the Bloatware..
I did make one for the Samsung Galaxy S Plus (did not get much feedback so I give it a go here​)​
Disclaimer​Easy one: Dont come cry to me when your phone blows up.. I am not held responsible when something goes wrong. Altho I am a person that needs and wants feedback to enhance my skillz.​
Features​This script does one simple thing. It removes .apk and .odex files from Bloatware. This means that the entire application will be removed. It clears not only some storage space on your device but also clears the ammount of active applications and thus saves a bit RAM (some bloatware will always run in the background )​
The Script​Below I will add the entire script so that you all can see what will be removed! I will give some more explanation later on!
Code:
ui_print(" Xperia Bloatware Remover ");
ui_print("+++++++++++++++++++++++++++");
ui_print(" by ");
ui_print(" Mrjraider ");
ui_print(" ");
ui_print("+++++++++++++++++++++++++++");
ui_print(" For Sony Xperia SP ");
ui_print(" Let's go!!! ");
ui_print("+++++++++++++++++++++++++++");
ui_print(" ");
ui_print("Starting to remove Bloatware");
show_progress(0.500000, 0);
ui_print(" ");
ui_print("Mounting system ...");
run_program("/sbin/busybox", "mount", "/system");
ui_print(" ");
ui_print("Deleting bloatware applications...");
delete("/system/app/AnonymousData.apk");
delete("/system/app/Books.apk");
delete("/system/app/CarHome.apk");
delete("/system/app/Chrome.apk");
delete("/system/app/CivilAlerts.apk");
delete("/system/app/ExternalKeyboardJP.apk");
delete("/system/app/facebook.apk");
delete("/system/app/FBCalendarSync.apk");
delete("/system/app/FBIAppShare.apk");
delete("/system/app/FBMediaDiscovery.apk");
delete("/system/app/FBMusicLike.apk");
delete("/system/app/GenieWidget.apk");
delete("/system/app/Gmail2.apk");
delete("/system/app/gmail-reader-service.apk");
delete("/system/app/GMS_Maps.apk");
delete("/system/app/GoogleFeedback.apk");
delete("/system/app/GoogleTTS.apk");
delete("/system/app/GoogleLyricsPlugin.apk");
delete("/system/app/Hangouts.apk");
delete("/system/app/helpapp.apk");
delete("/system/app/HTMLviewer.apk");
delete("/system/app/JapaneseIME.apk");
delete("/system/app/Magazines.apk");
delete("/system/app/PicoTts.apk");
delete("/system/app/PlayGames.apk");
delete("/system/app/PlusOne.apk");
delete("/sytem/app/Protips.apk");
delete("/system/app/retaildemo.apk");
delete("/system/app/SEMCFacebookProxy.apk");
delete("/system/app/SemcUnplugChargerReminder.apk");
delete("/system/app/sociallife.apk");
delete("/system/app/SocialEngineTwitterShareFrwkPlugin.apk");
delete("/system/app/sonyselect.apk");
delete("/system/app/sonyselectdata.apk");
delete("/system/app/SonySelectWidget.apk");
delete("/system/app/Street.apk");
delete("/system/app/talkback.apk");
delete("/system/app/UnsupportedHeadsetNotifier.apk");
delete("/system/app/velvet.apk");
delete("/system/app/VideoEditorGoogle.apk");
delete("/system/app/VoiceDialer.apk");
delete("/system/app/VoiceSearchStub.apk");
delete("/system/app/WikipediaPlugin.apk");
delete("/system/app/YouTube.apk");
delete("/system/app/YouTubeKaraokePlugin.apk");
delete("/system/app/YouTubePlugin.apk");
delete("/system/app/.apk");
ui_print("DONE");
ui_print(" ");
ui_print("Deleting bloatware odexfiles...");
delete("/system/app/AnonymousData.odex");
delete("/system/app/HTMLviewer.odex");
delete("/system/app/PicoTts.odex");
delete("/system/app/Protips.odex");
delete("/system/app/UnsupportedHeadsetNotifier.odex");
delete("/system/app/VoiceDialer.odex");
ui_print("DONE");
ui_print("Unmounting system...");
unmount("/system");
ui_print(" ");
ui_print(" ");
ui_print("Removing complete!");
ui_print("++++++++++++++++++");
show_progress(0.900000, 0);
ui_print(" ");
ui_print(" ");
ui_print("Enjoy a Bloatware free Phone. Leave a thanks on XDA!!");
show_progress(1.000000, 0);
How to use this​To remove bloatware just follow the steps below:
Root the device and get a custom recovery
Download the .zip and put in on your phone
Make a NanDroid backup (just in case!)
Flash it
Reboot
Done​
Adding and removing to the list​If you want you can add and remove lines from the script to give it your own twist. You can safe applications from deleting and you can add applications for deleting. This is very easy to do.
Just add the name of an application behind:
Code:
delete("/system/app/nameofapplication.apk);
If it has an .odex file do the same:
Code:
delete("/system/app/nameofapplication.odex);
Safe the file and flash it again!​
Credits​encik_racun - initial script for Samsung Galaxy S Plus
Me for making a new Sony version
Furrydaus for confirming that my script works​
Awesome! Finally one bloatware remover script... Thank u so much :good:
Sorry to tell this to you but Speedydroid takes care of bloatware and also includes an adblocker in an aroma installer so doing a script would be technically useless. Sorry if this has hurt your feelings in any sort of way.
The thread: http://forum.xda-developers.com/showthread.php?t=2393408
Anyways, the script works fine. Great job!
Sent from my Xperia SP using XDA Free mobile app
That one hasnt been updated in a while
Sent from my C5303 using XDA Premium 4 mobile app
mrjraider said:
That one hasnt been updated in a while
Sent from my C5303 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
work like a charm :good:
Great work bro
Sent from my C5303 using XDA Free mobile app
Dude, can i make a sugestion if possible?
Instead of deleting all the .apk if they were moved to a backup folder. So that we could install them in case of need.
If that is possible would be great, what do you think?
Edit:Not a good idea or impossible to do?
I've taken a look to the update-script commands and there is no "Move .apk to" command.
I've checked this thread: http://forum.xda-developers.com/showthread.php?t=2377695
And there is no "Move" command. I can't even find a copy and paste command.. So sorry
But like I've said you can edit the script very easy yourself. So if you want to save some applications just remove the lines of the script
~~ Regards
Hi all,
I have found a move to command (many thanks @[NUT] I was reading your DIY Guide about How To Create a Personal ROM )
I will try to implement this in the next version. With some luck it will be out next week
~~Regards
btw:
Code:
run_program("/sbin/busybox", "mv", "/data/media", "/data/temporary");
run_program("/sbin/busybox", "mkdir", "/data/media");
run_program("/sbin/busybox", "mv", "/data/temporary", "/data/media/0")
I need to edit these commands
mrjraider said:
Hi all,
I have found a move to command (many thanks @[NUT] I was reading your DIY Guide about How To Create a Personal ROM )
I will try to implement this in the next version. With some luck it will be out next week
~~Regards
btw:
Code:
run_program("/sbin/busybox", "mv", "/data/media", "/data/temporary");
run_program("/sbin/busybox", "mkdir", "/data/media");
run_program("/sbin/busybox", "mv", "/data/temporary", "/data/media/0")
I need to edit these commands
Click to expand...
Click to collapse
Yes, but you need busybox for those commands. Make sure you state in the thread that busybox is a requirement.
Theres a spelling mistake here:-
'delete("/sytem/app/Protips.apk");'
Missing 's' from 'system' folder.
Should be:-
'delete("/system/app/Protips.apk");'
Thanks
the1c3man said:
Theres a spelling mistake here:-
'delete("/sytem/app/Protips.apk");'
Missing 's' from 'system' folder.
Should be:-
'delete("/system/app/Protips.apk");'
Thanks
Click to expand...
Click to collapse
Thanks for pointing it out.
I will try to update this asap but next week school starts again so.....
~~Regards
mrjraider said:
Thanks for pointing it out.
I will try to update this asap but next week school starts again so.....
~~Regards
Click to expand...
Click to collapse
Huehue,it starts 8.9. for me
Anyways,il remove Protips.apk by myself if the debloater doesnt,but it does remove other apps,right?
Marionette said:
Huehue,it starts 8.9. for me
Anyways,il remove Protips.apk by myself if the debloater doesnt,but it does remove other apps,right?
Click to expand...
Click to collapse
Ssss.... Don't make me jealous
Uhm yeah.. It should.
~~Regards

Categories

Resources