How to remove bloatware by flashing zip - Android General

Make updater-script like this
ui_print("");
ui_print("REMOVE_BLOATWARE");
ui_print("*For Android *");
ui_print("");
ui_print("");
run_program("/sbin/busybox", "mount", "/system");delete("/system/app/folder/application.apk");
ui_print("");
unmount("/system");
ui_print("finish");
ui_print("CoOlstArDeViL");
ui_print(" with smiley ");
you have to replace folder and apllication.apk of you apk .
and use your brain
I'm new user so add url

Related

[DEV Q] updater-script and edify

can someone smarter than me help me or point me in the right direction to convert my updater-scripts to edify. i think im sort of getting it but i want to make sure because i'm not a programmer. for instance, is the update-binary file required or just updater-script? also, the code posted below, it what i've come up with for flashing my themes, is it correct? and will it work with the new recoveries?
Code:
ui_print("Preparing system for istallation...");
ui_print("Wiping Cache / Dalvik...");
delete_recursive("/cache");
delete_recursive("/data/dalvik-cache");
ui_print("Installing Project_Bliss HD...");
show_progress(0.100000, 60);
package_extract_dir("system", "/system");
show_progress(1.000000, 0);
i am unsure whether or not i will have to mount the specific partitions for data and cache for this to work. i can always leave that part out but the less the person flashing needs to do the better. if i do have to mount in the script will the code below work for just a simple theme flash.
Code:
ui_print("Preparing system for installation...");
run_program("/sbin/mount", "/dev/block/mtdblock4", "/system");
ui_print("Installing Project_Bliss HD...");
show_progress(0.100000, 60);
package_extract_dir("system", "/system");
show_progress(1.000000, 0);
Anyone?
10 char
No one? Hmmmm?
I'm also interested in the same topic..
trying to build rom with dsixida kitchen and converting it from update to updater scripts remove all ui_print functions...
If I add them manually then clockwork refuses to boot that image...
Ditto... same issue about the ui_print... don't get it, because after the update-script gets created to the updater-script/update-binary cant be changed.
try this
show_progress(0.500000, 20);
run_program("/sbin/mount", "/system");
package_extract_dir("system", "/system");
unmount("/system");
show_progress(0.500000, 30);
ui_print("All done!");

help with edify scripting

I'm working on creating a script that allows me to clean up my system when I do ROM updates (like removing unnecessary system files).
I've got it working almost completely, but I'm having trouble figuring out how to mount the data partition so I can remove some apks from there.
Code:
mount("MTD", "data", "/data");
ui_print("Removing Data Apps");
delete("/data/app/com.estrongs.android.pop-1.apk", "/data/app/com.mx.browser-1.apk", "/data/app/com.twitter.android-1.apk");
umount("/data");
This is what I have so far...and I've attached the file that currently works.
For mounting data partition you can use busybox too and for deleting apks you can use delete_recursive parameter
Burned from my laser torch using pencil cells
Mount partitions:
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");
Unmount partitions:
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/data");
Delete files:
delete("/system/app/app_name.apk");
Delete dir:
delete_recursive("/path/path");
I hope that helps
Edit, you also might wanna get a log from the recovery session.
run_program("/sbin/busybox", "cp", "/tmp/recovery.log", "/sdcard");
Sent from my HTC One X
jdcnosse said:
I'm working on creating a script that allows me to clean up my system when I do ROM updates (like removing unnecessary system files).
I've got it working almost completely, but I'm having trouble figuring out how to mount the data partition so I can remove some apks from there.
Code:
mount("MTD", "data", "/data");
ui_print("Removing Data Apps");
delete("/data/app/com.estrongs.android.pop-1.apk", "/data/app/com.mx.browser-1.apk", "/data/app/com.twitter.android-1.apk");
umount("/data");
This is what I have so far...and I've attached the file that currently works.
Click to expand...
Click to collapse
Code:
ui_print("------------------"); ui_print("Revolution Cleaner"); ui_print("------------------");
show_progress(0.100000, 0);
run_program("/sbin/busybox", "mount", "data");
run_program("/sbin/busybox", "mount", "/system"); show_progress(0.300000, 0);
ui_print("Removing Modules...");
delete_recursive("/system/lib/modules");
ui_print("Removing System Apps"); delete("/system/app/AppLocker.apk",
"/system/app/AsusReader.apk",
"/system/app/DownloadProviderUi.apk",
"/system/app/GenieWidget.apk",
"/system/app/MEar.apk",
"/system/app/MyCloud.apk",
"/system/app/MyNet.apk",
"/system/app/MyZine.apk",
"/system/app/PixWe.apk",
"/system/app/SoundRecorder.apk",
"/system/app/Vibe2.apk");
ui_print("Adding system customizations"); package_extract_dir("system", "/system"); show_progress(0.200000, 10); show_progress(0.100000, 0); unmount("/system");
ui_print("Adding Kernel..."); package_extract_file("kern.blob", "/tmp/kern.blob"); run_program("/sbin/busybox", "dd", "if=/tmp/kern.blob", "of=/dev/block/mmcblk0p4"); delete("/tmp/kern.blob"); ui_print("Done!");
But I do not see why
Code:
mount("MTD", "data", "/data");
will not work.
Unless it is supposed to be
Code:
mount("MTD", "userdata", "/data");
Code:
mount("MTD", "userdata", "/data"); ui_print("Removing Data Apps"); delete("/data/app/com.estrongs.android.pop-1.apk",
"/data/app/com.mx.browser-1.apk",
"/data/app/com.twitter.android-1.apk"); umount("/data");

[CWM] BloatWare Remover V2

It took me a hour to make, a lots of restoring backup and a lot of Error 6 and stupid typo's inside the script xD (oops).
But I finnaly get a working script! :highfive:
Reminder: It is my first work here so be nice to me ​
The script is based of the one you can find here: click I have modified this completly.
This script simply removes bloatware apps.
The script:
Code:
ui_print(" Bloatware Remover Script ");
ui_print("+++++++++++++++++++++++++++");
ui_print(" prepared by ");
ui_print(" [email protected] ");
ui_print(" ");
ui_print("+++++++++++++++++++++++++++");
ui_print(" Modified by ");
ui_print(" [email protected] ");
ui_print("+++++++++++++++++++++++++++");
ui_print(" ");
ui_print("Start to remove the 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/aldiko-standard-1.2.6.1-samsung-s1.apk");
delete("/system/app/BuddiesNow.apk");
delete("/system/app/DualClock.apk");
delete("/system/app/Dlna.apk");
delete("/system/app/Days.apk");
delete("/system/app/Exchange.apk");
delete("/system/app/FactoryTest.apk");
delete("/system/app/GenieWidget.apk");
delete("/system/app/InfoAlarm.apk");
delete("/system/app/KiesAir.apk");
delete("/system/app/lcdtest.apk");
delete("/system/app/MiniDiary.apk");
delete("/system/app/PressReader.apk");
delete("/system/app/SamsungAppsUNA3.apk");
delete("/system/app/signin.apk");
delete("/system/app/SocialHub.apk");
delete("/system/app/Stk.apk");
delete("/system/app/syncmldm.apk");
delete("/system/app/syncmlds.apk");
delete("/system/app/wssyncmlnps.apk");
delete("/system/app/MusicHub.apk");
delete("/system/app/Layar-samsung.apk");
delete("/system/app/SamsungappsUNA3.apk");
delete("/system/app/Telegraaf.apk");
delete("/system/app/thinkdroid.apk");
delete("/system/app/WriteandGo.apk");
delete("/sytem/app/YouTube.apk");
delete("/system/app/MMM_for_Smartphone.1.7.3.apk");
delete("/system/app/Talk.apk");
delete("/system/app/PlusOne.apk");
delete("/system/app/UnifiedInbox.apk");
ui_print("DONE");
ui_print(" ");
ui_print("Deleting bloatware odexfiles...");
delete("/system/app/BuddiesNow.odex");
delete("/system/app/DualClock.odex");
delete("/system/app/Dlna.odex");
delete("/system/app/Days.odex");
delete("/system/app/Exchange.odex");
delete("/system/app/FactoryTest.odex");
delete("/system/app/GenieWidget.odex");
delete("/system/app/InfoAlarm.apk");
delete("/system/app/KiesAir.odex");
delete("/system/app/lcdtest.odex");
delete("/system/app/MiniDiary.odex");
delete("/system/app/PressReader.odex");
delete("/system/app/SamsungApps.odex");
delete("/system/app/signin.odex");
delete("/system/app/SocialHub.odex");
delete("/system/app/Stk.odex");
delete("/system/app/syncmldm.odex");
delete("/system/app/syncmlds.odex");
delete("/system/app/wssyncmlnps.odex");
delete("/system/app/WriteandGo.odex");
delete("/system/app/YouTube.odex");
delete("/system/app/Talk.odex");
delete("/system/app/PlusOne.odex");
delete("/system/app/UnifiedInbox.odex");
ui_print("DONE");
ui_print("Unmounting system...");
unmount("/system");
ui_print(" ");
ui_print(" ");
ui_print("Removing complete! YAAY");
ui_print("++++++++++++++++++");
show_progress(0.900000, 0);
ui_print(" ");
ui_print(" ");
ui_print("Reboot your phone! And leave a Thanks!");
show_progress(1.000000, 0);
I am very proud of it mainly because its my first work here on XDA!!
Instructions:
- Download attachment
- Put on SD
- Reboot recovery
- Flash Bloatware remover V2
- Reboot phone
- Done
REMINDER: The touchwiz launcher of Samsung is bugged as hell so you can do three thing to prevent pointless holes in your launcher
- Perform factory reset
- Reboot phone go to settings > apps > Manage apps > all > Touchwizlauncher/TWlauncher> delete data
- Apply this mod/zip right after flashing stock rom (CWM is required so flash that after flashing stock)
You can easy mod this script by your self.
To save any app remove the lines:
Example: You want to save youtube remove these two lines:
Code:
delete("/system/app/YouTube.odex")
delete("/system/app/YouTube.apk")
If you want to add files:
Add these lines inside the script
Code:
delete("/system/app/nameofapp.odex")
delete("/system/app/nameofapp.apk")
REMINDER: The script is pretty sensitive so copy/paste the name perfect (it will either results in an error or not removed app)
Lists of apps that can be removed safely:
Link 1
Link 2
CREDITS:
XeLLaR* and Stepie22 for help inside OT thread
encik_racun for original script
Regards and leave a thanks
Edit: Thread needs to be moved by a mod (reported already)
Nice! I used it for my gaming backup and worked very good! Thanks!
Gesendet von meinem QW TB-1517 mit Tapatalk 4

Recovery Flashable ZIP Error

Hi All,
I am trying to create a flash-able zip to remove some apps and I am getting this error
E: error executing updater binary in zip
Now here comes me question: is there a universal update-binary that I can use with CM11 / CM12 and is there a sample how to use it.
This is the updater-script I have written so far
Code:
ui_print("");
ui_print("Moutings Partitions");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "mount", "/system");
ui_print(" ");
ui_print("Cleaning System Apps");
delete("/system/app/BasicDreams/");
ui_print("Adding Codename Lungo Sounds & Apex Launcher")
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
ui_print(" ");
ui_print("Unmounting partitions");
ui_print(" ");
ui_print("Finish");
I am using a Mac if that makes a difference..

Stuck at Sony bootloop after *.zip

Hey,
today I got my Z5 and tried to make myself a Deodexed rom. but somehow after I flash it my phone stucks at the Sony logo for a few seconds and then reboots.
I extracted the /system from the ext4 file, deodexed priv-app, app, framework, and put them into a .zip as well as the updater-script file. It seems to be installed properly, just yea, it boot loops.
Thats my "update-script"-File
show_progress(0.2, 1);
run_program("/sbin/busybox", "mount", "/");
run_program("/sbin/busybox", "mount", "/system");
ui_print(" Extracting files... ");
ui_print(" ");
package_extract_dir("system", "/system");
ui_print(" Setting Permissions... ");
set_perm_recursive(0, 0, 0755, 0644, "/system");
ui_print(" Done... ");
run_program("/sbin/busybox", "umount", "/system");
show_progress(1, 1);
ui_print(" Please Reboot! ");
Click to expand...
Click to collapse

Categories

Resources