updater-script - Galaxy S II Android Development

Maybe it's the wrong section, not sure...
I can usually find my way around XDA, but this is something i didn't manage to find explained properly.
So I just want to know a few things about the updater-script ( found some people's posts just telling others to get a script and look at it, but alas, I wanna know what exactly do each of the steps do ). So here I go.
It's about HyperDroid ofcourse.
Basically I just want a script that removes some of the samsung apps ( actually a lot of them) and adds some of my own.
I have downloaded a lot of surgeons and extracted each updater script and compared them, a lot of the things are in common but some are not.
But I want to know what each of the lines does.
1. ui_print(" text_here "); - writes to the prompt.
2. show_progress(int,int); - progress bar handling.
3. run_program("/sbin/mount", "/dev/block/mmcblk0p7", "/cache");
run_program("/sbin/mount", "/dev/block/mmcblk0p9", "/system");
run_program("/sbin/mount", "/dev/block/mmcblk0p10", "/data");
run_program("/sbin/mount", "/dev/block/mmcblk0p12", "/dalvik");
Ok, so these basically mount cache, data etc... Or am I wrong ? Do I need to
use these in each script or not ?
4. delete("/system/app/BuddiesNow.apk"); - delets apps ? Are there any special
steps needed prior to this ? Mounting,unmounting or something like that?
5. package_extract_dir("system", "/system");
package_extract_dir("data", "/data");
These 2 install new apps from the zip to the system and data respectively?
Does this depend or mounting anything either? I basically put all the user apks
into data folder and only system apps ( like TW30L) into system ?
6. package_extract_dir("vrtheme", "/sdcard/vrtheme");
The theming part. Again the same question, can this be used without
anything else ?
7. set_perm_recursive and set_perm - this I did not manage to figure out. What
purpose does this serve ?
8. run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/data");
run_program("/sbin/busybox", "umount", "/sdcard");
The unmount part? If I mount at the start , I need to use these, right?
Some of the scripts don't mount/unmount dalvik, but still wipe it.
How come ?
9. updater-binary ? Does this contain all the commands used, like a database ?
Or is it something else ?
If I remember anything else I'll edit the post.
If you even remotely consider replying to this thread please :
- do not tell me to use search. Because I did.
- do not tell me to just edit someone's script. Because I've done that and it
works flawlessly. I want to write one from scratch and actually know what I'm
doing.
- don't try to write anything if you can't answer any of my questions ( posts like
: "sorry mate, can't help you, good luck" ) just to increase your post count
Any info anyone can give me is welcome, if no one replies, mod can delete it and we can all move on.
I really want to learn.

gr4ndm4st3r_bl4ck said:
Maybe it's the wrong section, not sure...
I can usually find my way around XDA, but this is something i didn't manage to find explained properly.
So I just want to know a few things about the updater-script ( found some people's posts just telling others to get a script and look at it, but alas, I wanna know what exactly do each of the steps do ). So here I go.
It's about HyperDroid ofcourse.
Basically I just want a script that removes some of the samsung apps ( actually a lot of them) and adds some of my own.
I have downloaded a lot of surgeons and extracted each updater script and compared them, a lot of the things are in common but some are not.
But I want to know what each of the lines does.
1. ui_print(" text_here "); - writes to the prompt.
2. show_progress(int,int); - progress bar handling.
3. run_program("/sbin/mount", "/dev/block/mmcblk0p7", "/cache");
run_program("/sbin/mount", "/dev/block/mmcblk0p9", "/system");
run_program("/sbin/mount", "/dev/block/mmcblk0p10", "/data");
run_program("/sbin/mount", "/dev/block/mmcblk0p12", "/dalvik");
Ok, so these basically mount cache, data etc... Or am I wrong ? Do I need to
use these in each script or not ?
4. delete("/system/app/BuddiesNow.apk"); - delets apps ? Are there any special
steps needed prior to this ? Mounting,unmounting or something like that?
5. package_extract_dir("system", "/system");
package_extract_dir("data", "/data");
These 2 install new apps from the zip to the system and data respectively?
Does this depend or mounting anything either? I basically put all the user apks
into data folder and only system apps ( like TW30L) into system ?
6. package_extract_dir("vrtheme", "/sdcard/vrtheme");
The theming part. Again the same question, can this be used without
anything else ?
7. set_perm_recursive and set_perm - this I did not manage to figure out. What
purpose does this serve ?
8. run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/data");
run_program("/sbin/busybox", "umount", "/sdcard");
The unmount part? If I mount at the start , I need to use these, right?
Some of the scripts don't mount/unmount dalvik, but still wipe it.
How come ?
9. updater-binary ? Does this contain all the commands used, like a database ?
Or is it something else ?
If I remember anything else I'll edit the post.
If you even remotely consider replying to this thread please :
- do not tell me to use search. Because I did.
- do not tell me to just edit someone's script. Because I've done that and it
works flawlessly. I want to write one from scratch and actually know what I'm
doing.
- don't try to write anything if you can't answer any of my questions ( posts like
: "sorry mate, can't help you, good luck" ) just to increase your post count
Any info anyone can give me is welcome, if no one replies, mod can delete it and we can all move on.
I really want to learn.
Click to expand...
Click to collapse
4. Mounts. Needed.
5. Extract apps on folders. Needs mounts before. Either, will throw out an error.
6. Extract to SD the vilain Rom themes.
7. Permissions setup.
8. Unmount part. Could change thru different ROMs.
9. It's the "program" that its used thru all the installation process. And the script basically contains the commands to control the "program".
Envoyé depuis mon GT-I9100 avec Tapatalk

Related

[Q] Can't flash Modded Update.zip

I modded a flashable zip and now it won't let me flash it.
When I try to flash I get
E:Error in /tmp/sideload/package.zip
(Status 6)
I have edited the update script, and don't know how to edit the update binary if that could be it. I am able to flash other zips though. I've tried removing things and adding things. The funny part is that another modded update zip I made a few days ago worked perfectly fine. Any ideas guys? What does Status 6 mean? Why does it give me the tmp/sideload/package.zip thing? Do I need to go back to factory (PLEASE SAY I DONT )
EDIT: I think it was just that zip.
According to AssassinsLament, the issue is probably your update-binary file (assuming you're already using edify: updater-script), which you can compile in AOSP or use the version AssassinsLament provides as the latest attached in his post here:
http://forum.xda-developers.com/showpost.php?p=16409219&postcount=24
also, you can get a more detailed log in recovery, cat /tmp/recovery.log and pastebin that. with the more detailed recovery log, we will be able to determine more precisely the issue you're experiencing, but as a general solution, updating the update-binary file *should* work. if not, pastebin your /tmp/recovery.log.
hope that helps!
joeykrim said:
According to AssassinsLament, the issue is probably your update-binary file (assuming you're already using edify: updater-script), which you can compile in AOSP or use the version AssassinsLament provides as the latest attached in his post here:
http://forum.xda-developers.com/showpost.php?p=16409219&postcount=24
also, you can get a more detailed log in recovery, cat /tmp/recovery.log and pastebin that. with the more detailed recovery log, we will be able to determine more precisely the issue you're experiencing, but as a general solution, updating the update-binary file *should* work. if not, pastebin your /tmp/recovery.log.
hope that helps!
Click to expand...
Click to collapse
Thanks! That's exactly it!, I wasn't touching the update binary (i dont know how).
EDIT: So how exactly do I update the binary? Or do I just copy the one from assassinlaments post into the update zip.
What are you trying to flash?
il Duce said:
What are you trying to flash?
Click to expand...
Click to collapse
Modded framework, sysui and a few other apks to the system partition.
Sent from my PG86100 using Tapatalk
fowenati said:
Modded framework, sysui and a few other apks to the system partition.
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
Make sure you're not using Wordpad or anything like that to edit the updater-script. You need to use something that encodes the file with Unix encoding. Also, it shouldn't be the update-binary, you would get a sideload error. Check to make sure you're not missing a "," or ";" or little things like that somewhere. Also, if you open the file /cache/recovery/last_log when you reboot (or I think there is a /cache/recovery/recovery.log while you're in recovery [just cat that file]) it will tell you what the error is and the line location of any errors in your updater-script
-viperboy- said:
Make sure you're not using Wordpad or anything like that to edit the updater-script. You need to use something that encodes the file with Unix encoding. Also, it shouldn't be the update-binary, you would get a sideload error. Check to make sure you're not missing a "," or ";" or little things like that somewhere. Also, if you open the file /cache/recovery/last_log when you reboot (or I think there is a /cache/recovery/recovery.log while you're in recovery [just cat that file]) it will tell you what the error is and the line location of any errors in your updater-script
Click to expand...
Click to collapse
Yeah I made sure it was in UTF 8, (using text wrangler). I'm gonna check the log right now.
fowenati said:
Yeah I made sure it was in UTF 8, (using text wrangler). I'm gonna check the log right now.
Click to expand...
Click to collapse
Send me your .zip too if you want and I will take a look at it in the morning!
-viperboy- said:
Send me your .zip too if you want and I will take a look at it in the morning!
Click to expand...
Click to collapse
Alright! Here it is!
This one doesnt give me a tmp/sideload/package.zip error, but when it finshes installing it doesn't really install. It wont give an error, but nothing happens.
http://dev-host.org/65j7ve7q0a2f/SupraMOD.zip
fowenati said:
Alright! Here it is!
This one doesnt give me a tmp/sideload/package.zip error, but when it finshes installing it doesn't really install. It wont give an error, but nothing happens.
http://dev-host.org/65j7ve7q0a2f/SupraMOD.zip
Click to expand...
Click to collapse
A few things... you don't even have an updater-binary. You NEED to have that. For the updater-script, you have:
Code:
ui_print("SupraROM v1.2.1 Upgrade-Beta");
show_progress(0.1, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
show_progress(0.2, 0);package_extract_dir("system", "/system");
show_progress(0.3, 0);
unmount("/system");
show_progress(0.4, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
show_progress(0.5, 0);
package_extract_dir("system", "/system");
unmount("/system");
ui_print("Done Flashing");
You are mounting and unmounting twice and trying to extract the same package. Also, show progress is a pain in the ass and I doubt the way you have it shows a progress bar. Do it like this:
Code:
ui_print("SupraROM v1.2.1 Upgrade-Beta");
run_program("/sbin/busybox", "mount", "/system");
ui_print("");
ui_print("Installing files...");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
ui_print("");
ui_print("Done!");
unmount("/system");
And add in this updater-binary...
http://dl.dropbox.com/u/6621763/update-binary.zip
That should take care of it
-viperboy- said:
A few things... you don't even have an updater-binary. You NEED to have that. For the updater-script, you have:
Code:
ui_print("SupraROM v1.2.1 Upgrade-Beta");
show_progress(0.1, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
show_progress(0.2, 0);package_extract_dir("system", "/system");
show_progress(0.3, 0);
unmount("/system");
show_progress(0.4, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
show_progress(0.5, 0);
package_extract_dir("system", "/system");
unmount("/system");
ui_print("Done Flashing");
You are mounting and unmounting twice and trying to extract the same package. Also, show progress is a pain in the ass and I doubt the way you have it shows a progress bar. Do it like this:
Code:
ui_print("SupraROM v1.2.1 Upgrade-Beta");
run_program("/sbin/busybox", "mount", "/system");
ui_print("");
ui_print("Installing files...");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
ui_print("");
ui_print("Done!");
unmount("/system");
And add in this updater-binary...
http://dl.dropbox.com/u/6621763/update-binary.zip
That should take care of it
Click to expand...
Click to collapse
thanks I got it working

[Q] Update.zip (that I created) Aborts

I followed this tutorial: http://fokke.org/site/content/howto-create-android-updatezip-package
...on making update.zip files.
It only says opening... installing... then installation aborted.
I followed the directions to the letter.
It doesn´t even go so far as to do the ui print from step one.
Code:
ui_print("Android Security Enhancements");
ui_print("By: Michiel Fokke - fokke.org/android");
show_progress(1.000000, 0);
ui_print(" Mounting /system");
mount("MTD", "system", "/system");
set_progress(0.100000);
So I don't think it runs any of the code at all.
I signed it and everything... no dice.
Any idea what the problem could be?
Now I've got the exact text in front of me from CWM Recovery:
Code:
--Installing: /emmc/Updates/update.zip
Finding update package....
Opening update package...
Installing update..
E:Error in /emmc/Updates/update.zip
(Status 0)
Installation aborted.
And here´s the exact text of my update.zip:
Code:
ui_print("Simple Font Change");
ui_print("By: Team Rainless");
show_progress(1.000000, 0);
ui_print(" Mounting /system");
mount("MTD", "system", "/system");
set_progress(0.100000);
ui_print(" Extracting files to /system");
package_extract_dir("system/fonts/Clockopia2.ttf", "/system/fonts");
set_progress(0.200000);
ui_print(" Setting permissions to 0644...");
set_perm(0,0,0644,"/system/fonts/Clockopia2.ttf");
set_progress(0.400000);
ui_print(" Unmounting /system");
unmount("/system");
set_progress(0.900000);
ui_print("Update complete. Hope this worked!");
set_progress(1.000000);
Should I perhaps post this in the dev forum instead?
It's really not a general or easy question...
TeamRainless said:
Now I've got the exact text in front of me from CWM Recovery:
Code:
--Installing: /emmc/Updates/update.zip
Finding update package....
Opening update package...
Installing update..
E:Error in /emmc/Updates/update.zip
(Status 0)
Installation aborted.
And here´s the exact text of my update.zip:
Code:
ui_print("Simple Font Change");
ui_print("By: Team Rainless");
show_progress(1.000000, 0);
ui_print(" Mounting /system");
mount("MTD", "system", "/system");
set_progress(0.100000);
ui_print(" Extracting files to /system");
package_extract_dir("system/fonts/Clockopia2.ttf", "/system/fonts");
set_progress(0.200000);
ui_print(" Setting permissions to 0644...");
set_perm(0,0,0644,"/system/fonts/Clockopia2.ttf");
set_progress(0.400000);
ui_print(" Unmounting /system");
unmount("/system");
set_progress(0.900000);
ui_print("Update complete. Hope this worked!");
set_progress(1.000000);
Click to expand...
Click to collapse
TeamRainless said:
Should I perhaps post this in the dev forum instead?
It's really not a general or easy question...
Click to expand...
Click to collapse
This is the right section as it's not development as such but a development question which the dev thread isn't for. This covers all really and you'll always get someone read and come and answer.
Anyway just the first thing I've noticed is your mount instruction looks completely wrong to me and have never seen it like that. I've never read those instructions before but they don't look too great. Also I thought the extract should be ("label", "location").
This is what is common across all the zips I use:
Mount command:
Code:
run_program("/sbin/busybox", "mount", "/system");
Package extract:
Code:
package_extract_dir("system", "/system");
package_extract_file("Clockopia2.ttf", "/system/fonts")
I may be wrong about the extract but also don't forget to unmount the system in the same way:
Code:
run_program("/sbin/busybox", "unmount", "/system");
I only really modify zips as opposed to create whole new ones but give it a go as yours isn't working at the moment.
Hope it helps or someone clarifies this for me too.
AvRS said:
This is the right section as it's not development as such but a development question which the dev thread isn't for. This covers all really and you'll always get someone read and come and answer.
Anyway just the first thing I've noticed is your mount instruction looks completely wrong to me and have never seen it like that. I've never read those instructions before but they don't look too great. Also I thought the extract should be ("label", "location").
This is what is common across all the zips I use:
Mount command:
Code:
run_program("/sbin/busybox", "mount", "/system");
Package extract:
Code:
package_extract_dir("system", "/system");
package_extract_file("Clockopia2.ttf", "/system/fonts")
I may be wrong about the extract but also don't forget to unmount the system in the same way:
Code:
run_program("/sbin/busybox", "unmount", "/system");
I only really modify zips as opposed to create whole new ones but give it a go as yours isn't working at the moment.
Hope it helps or someone clarifies this for me too.
Click to expand...
Click to collapse
Figured it out:
The update-binary was bogus.
And that guide... like ALL the guides on making update.zips... SUCKS.
I'm going to write my own guide now.
Thanks for the help.
TeamRainless said:
Figured it out:
The update-binary was bogus.
And that guide... like ALL the guides on making update.zips... SUCKS.
I'm going to write my own guide now.
Thanks for the help.
Click to expand...
Click to collapse
At least you figured it out. I'm also in the process of writing (just not got round to finishing) a CWM guide but not how to create them so that would work out nicely if you created one.

Dumb question.. How to make a update.zip

I know people talk about this all the time... I found a lot of thread of how to create a flashable zip file.. But every thread has it different than others. So I have tried it several ways and still get errors...
I'm trying to make a flashable zip to push an apk to system/app and I decided to do this to test it out...
This is the update-script I have tested it with
run_program("/sbin/busybox", "mount", "/system");
delete("/system/app/FlashBarService.apk");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "unmount", "/system");
Ok what I figure is the run_program is to mount system with busybox. Every line i see that it have this on there.. Then Im trying to replace an app from system/app so I put in delete("/system/app/name of app");
then package_extract_dir("system", :/system"); is so recovery can extract and push the zip file
and again run_program to unmount... But recovery is giving me an error status 4
I also deleted that delete line and still got status 4.
Again this is another way I tried it to do it with
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
And this way too
mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/data");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "unmount", "/system");
run_program("/sbin/busybox", "unmount", "/data");
And till got status 4.
Inside my xxx.zip I have it set up this way META-INF/com/google/android
And other folder on root system/app
I have a GS3.
Like I said I have followed several threads about this and all looks different and none worked.
I know this is supposed to be the easies thing to do when it comes to android. But I just need to be directed to the right path.
Can somebody with more experience with this help me out?
Status 4 means that you have a syntax error somewhere... (yep, you have a syntax error or you're using notepad or wordpad to edit the files. That's it).
The best guide I ever seen out there is this one, take a look at it.
I use notepad++ to edit any android related files like build.prop. Thanks will look at that
Sent from my SGH-T999 using Tapatalk 4 Beta
Anyone?
gypsy214 said:
I use notepad++ to edit any android related files like build.prop. Thanks will look at that
Sent from my SGH-T999 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Yeah. Notepad++ is best for this type of Editing in Windows.
Have you chosen the correct format in settings?
Edit>>EOL Conversions>>UNIX Format
The problem may be that windows use CR(carriage return) while unix(Android) uses LF (line feed) for a new line character.
You can also try to mount the system manually(there is option in CWM for that) & may be leave only the "package_extract_dir("system", "/system");" in the updater script.
Also, post the zip file here, so that problem can be easily identified.
GobletSky31689 said:
Yeah. Notepad++ is best for this type of Editing in Windows.
Have you chosen the correct format in settings?
Edit>>EOL Conversions>>UNIX Format
The problem may be that windows use CR(carriage return) while unix(Android) uses LF (line feed) for a new line character.
You can also try to mount the system manually(there is option in CWM for that) & may be leave only the "package_extract_dir("system", "/system");" in the updater script.
Also, post the zip file here, so that problem can be easily identified.
Click to expand...
Click to collapse
Will do.. But it works when I use notepad++ to add ui_print.

Remove/Delete Bloatwares In Just Couple of Seconds Makeing Own Zip File :) .(Android)

What is this?
It's a zip file Containing some files.. You can make your own zip file which can remove bloatware apps (found in system/app partition) from stock or Custom recovery. It can remove more than 50+ apps within 2-3 seconds.
Why do You need it?
Assume you have flashed a new Custom/Stock rom. In any rom there are useless apps which consume memory and ram .and you dont know about them sometimes it makes device lagi and hanged.work slower
What Will You Do? Or Normal People Do
You now have to go through the pain of removing dozens of apps from system/app which you might not need. eg: some people hardly use google maps/swype/youtube/email/weather.apk or those several apps/widgets found in stock rom Or Any Custom Rom.
Okay fine, What else do I need to know The system partition contains important apps required for android. if you remove an app which is essential for android then your device might get stuck in bootloop. So know what
you're doing before trying this mod.
Advantage Of This:
1. Device gets much smoother
2. Less lags or no lags
3. Games will not hang and apps load faster
4. More Free Ram
5. More Internal Free
6. Device Will Boot up Fast
7. Battery Dosen't Drain Faster
8. Chances for hanging device will less
What you'll need: (Root Requiered)
1) Winrar
2) Notepad++
Customizing your "updater-script" file:
1) Download MyOwn.zip
2) Open it
3) Browse over to META-INF\com\google\android\
4) Extract the file "updater-script" to desktop
and open it with notepad++
5) As you can see in files that it deletes a number of apps from system/app in a row. This list is mine(not for
you) so you have to edit it according to your
liking. I ll upload list of useless apps soon from android 4.4.4 to 7.1.1 For Lenovo A6000/+ which you can delete
Select apps from lists according to your version. and edit in updater-script
For eg: If you want to delete swype.apk and youtube.apk(meaning swype keyboard and youtube) then edit and write
delete ("/system/app/swype.apk");
delete ("/system/app/youtube.apk);
text with these lines and so update-script will look like this:
ui_print("Useless stuff cleaning start");
ui_print(" ");
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(" ");
ui_print("Useless system app removal");
delete("/system/app/Swype.apk");
delete("/system/app/YouTube.apk");
ui_print(" ");
ui_print("Unmounting partitions");
run_program("/sbin/busybox", "umount",
"/system");
run_program("/sbin/busybox", "umount",
"/cache");
run_program("/sbin/busybox", "umount",
"/data");
ui_print(" ");
ui_print("Finish");
6) Once you have finished editing delete rows
in updater-script to your liking then hit save
button(ctlr+s) on notepad++
7) Drag drop your custom "updater-script" file
back inside META-INF\com\google\android\
folder in MyOwn.zip .winrar automatically update the zip file and Do not touch update-binary.
8) Your custom zip is ready. You can use this everytime when you flash your device with new rom.
Instruction of use:
1) Place your custom zip on root of sd
card (root means outside; not within any folder
of sd card)
3) Switch off you android device
4) Start your device in recovery mode
5) Select "apply zip from sd card"
6) Select your created zip fiile
7) Select Yes
8) Reboot
Yeahhhhhhh!! Enjoy Your Faster Device Ever
If u r using this comment and suggestions are needed.
Thaank You:good::good:
Links
URL="Shiva/s/otcguv8begwqnxo/MyOwn.zip?dl=0"
Remove Shiva And Use Dropbox.com in Link
Does this work on devices other than A6000/Plus??
nanda7527 said:
Does this work on devices other than A6000/Plus??
Click to expand...
Click to collapse
Ya It will Work On Any Device
1. But IT Should Be Android
2. And You need To Know About Your System Apps Of The Device Which You Want To Remove.
3.Follow The Guide
4.Get Success.
I am Working on Different Version of Android ,
i will update the app list after sometime which can be remove by choosing android version.
Press Thanks Button If I helped.
It ll Encourage me to do more work.
Good work bro

Remove/Delete Bloatwares In Just Couple of Seconds Makeing Own Zip File :) .(Android)

What is this?
It's a zip file Containing some files.. You can make your own zip file which can remove bloatware apps (found in system/app partition) from stock or Custom recovery. It can remove more than 50+ apps within 2-3 seconds.
Why do You need it?
Assume you have flashed a new Custom/Stock rom. In any rom there are useless apps which consume memory and ram .and you dont know about them sometimes it makes device lagi and hanged.work slower
What Will You Do? Or Normal People Do
You now have to go through the pain of removing dozens of apps from system/app which you might not need. eg: some people hardly use google maps/swype/youtube/email/weather.apk or those several apps/widgets found in stock rom Or Any Custom Rom.
Okay fine, What else do I need to know The system partition contains important apps required for android. if you remove an app which is essential for android then your device might get stuck in bootloop. So know what
you're doing before trying this mod.
Advantage Of This:
1. Device gets much smoother
2. Less lags or no lags
3. Games will not hang and apps load faster
4. More Free Ram
5. More Internal Free
6. Device Will Boot up Fast
7. Battery Dosen't Drain Faster
8. Chances for hanging device will less
What you'll need: (Root Requiered)
1) Winrar
2) Notepad++
Customizing your "updater-script" file:
1) Download MyOwn.zip
2) Open it
3) Browse over to META-INF\com\google\android\
4) Extract the file "updater-script" to desktop
and open it with notepad++
5) As you can see in files that it deletes a number of apps from system/app in a row. This list is mine(not for
you) so you have to edit it according to your
liking. I ll upload list of useless apps soon from android 4.4.4 to 7.1.1 For Most of The Devices which you can delete
Select apps from lists according to your version. and edit in updater-script
For eg: If you want to delete swype.apk and youtube.apk(meaning swype keyboard and youtube) then edit and write
delete ("/system/app/swype.apk");
delete ("/system/app/youtube.apk);
text with these lines and so update-script will look like this:
ui_print("Useless stuff cleaning start");
ui_print(" ");
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(" ");
ui_print("Useless system app removal");
delete("/system/app/Swype.apk");
delete("/system/app/YouTube.apk");
ui_print(" ");
ui_print("Unmounting partitions");
run_program("/sbin/busybox", "umount",
"/system");
run_program("/sbin/busybox", "umount",
"/cache");
run_program("/sbin/busybox", "umount",
"/data");
ui_print(" ");
ui_print("Finish");
6) Once you have finished editing delete rows
in updater-script to your liking then hit save
button(ctlr+s) on notepad++
7) Drag drop your custom "updater-script" file
back inside META-INF\com\google\android\
folder in MyOwn.zip .winrar automatically update the zip file and Do not touch update-binary.
8) Your custom zip is ready. You can use this everytime when you flash your device with new rom.
Instruction of use:
1) Place your custom zip on root of sd
card (root means outside; not within any folder
of sd card)
3) Switch off you android device
4) Start your device in recovery mode
5) Select "apply zip from sd card"
6) Select your created zip fiile
7) Select Yes
8) Reboot
Yeahhhhhhh!! Enjoy Your Faster Device Ever
If u r using this comment and suggestions are needed.
Thaank You:good::good:
Please Press Thanks Button If It Helps

Categories

Resources