Hi Guys,
I was wondering if there was a way that i can create a simply script to remove the apps i never want on my phone. Can i simply take the same concept from the below script?
Basically adding in lines of "delete("/system/app/????.apk")?
Code:
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print(" %% %%");
ui_print(" %%% %%%");
ui_print(" %%%% %%%%");
ui_print(" %%%%%% %%%%%%");
ui_print(" %%%%%%%%%%%%%%%%%%%%%%%%%%");
ui_print("%%%%% TRULYCLEAN SCRIPT %%%%%");
ui_print(" %%%%%%%%%%%%%%%%%%%%%%%%%%");
ui_print(" %% v1.6 by schoolsux %%");
ui_print(" %%%%%%%%%%%%%%%%%%%");
ui_print("");
ui_print("");
ui_print("Running script & cleaning up...");
package_extract_file("busybox", "/tmp/busybox");
set_perm(0, 0, 0777, "/tmp/busybox");
run_program("/tmp/busybox", "mount", "/system");
run_program("/tmp/busybox", "mount", "/data");
ui_print("");
ui_print("Removing sounds...");
delete("/system/media/audio/ui/PowerOn.ogg");
delete("/system/media/audio/ui/LowBattery.ogg");
delete("/system/media/audio/ui/TW_Volume_control.ogg");
ui_print("Removing apps and releated stuff...");
delete("/system/app/Chrome.apk");
delete("/system/app/SBrowser.apk");
delete("/system/app/SBrowserTry.apk");
delete("/system/app/sCloudSyncSBrowserBookmark.apk");
delete("/system/app/sCloudSyncSBrowserTabs.apk");
delete("/system/app/AccuweatherPhone2013.apk");
delete("/system/app/WeatherWidgetDaemon.apk");
delete("/system/app/SMemo2.apk");
delete("/system/app/sCloudSyncSNote.apk");
delete("/system/app/SNoteProvider.apk");
delete("/system/lib/libsnote_core.so");
delete("/system/lib/libSPenGesturePE.so");
delete("/system/lib/libSPenSDKImageFilterLibsPE.so");
delete("/system/app/SHealth2.apk");
delete("/system/app/HealthContentProvider.apk");
delete("/system/app/SensorService.apk");
delete("/system/lib/libhealth_jni.so");
delete("/system/app/S-Voice_Android_phone_J.apk");
delete("/system/app/SamsungTTS.apk");
delete_recursive("/system/tts/lang_SMT");
delete_recursive("/system/tts/lang_SVOX");
delete_recursive("/system/tts/lang_SVOXP");
delete_recursive("/system/wakeupdata");
delete_recursive("/system/voicebargeindata");
delete_recursive("/system/VODB");
delete("/system/app/Earth.apk");
delete("/system/lib/libearthmobile.so");
delete("/system/app/PolarisViewer5.apk");
delete("/system/lib/libpolarisviewer5.so");
delete("/system/lib/libpolarisofficedump.so");
delete("/system/app/Talk.apk");
delete("/system/lib/libgtalk_jni.so");
delete("/system/app/ChatON_feature.apk");
delete("/system/app/ChatONV_J.apk");
delete("/system/lib/libChatOnAMSImageFilterLibs-1.0.2.so");
delete("/system/app/FaceLock.apk");
delete("/system/lib/libfacelock_jni.so");
delete("/system/app/ColorBlind.apk");
delete("/system/app/DioDict3Service.apk");
delete("/system/app/EasyFavoritesContactsWidget.apk");
delete("/system/app/EasyLauncher.apk");
delete("/system/app/EasySettings.apk");
delete("/system/app/GMS_Maps.apk");
delete("/system/app/Street.apk");
delete("/system/app/KNOXAgent.apk");
delete("/system/app/KNOXStore.apk");
delete("/system/app/MobilePrint2.apk");
delete("/system/app/MobilePrintSvc_CUPS.apk");
delete("/system/app/MobilePrintSvc_CUPS_Backend.apk");
delete("/system/app/MobilePrintSvc_Epson.apk");
delete("/system/app/MobilePrintSvc_HP.apk");
delete("/system/app/MobilePrintSvc_Samsung.apk");
delete("/system/app/SamsungOCR2.apk");
delete_recursive("/system/opticalreader");
delete("/system/app/PageBuddyNotiSvc2.apk");
delete("/system/app/PlusOne.apk");
delete("/system/app/S_Translator_CSLi.apk");
delete("/system/app/SamsungVideo.apk");
delete("/system/app/SimpleWidget.apk");
delete("/system/app/SmartBriefing4x2.apk");
delete("/system/app/SNS.apk");
delete("/system/app/talkback.apk");
delete("/system/app/WebManual.apk");
delete("/system/app/YouTube.apk");
delete("/system/app/GoogleSearchWidget.apk");
delete("/system/app/AllSharePlay15.apk");
delete("/system/app/CHS_J_Device_only.apk");
delete("/system/app/Com2usPoker_ASGC.apk");
delete("/system/app/Dropbox.apk");
delete("/system/app/DropboxOOBE.apk");
delete("/system/app/Episodes.apk");
delete("/system/app/Flipboard.apk");
delete("/system/app/GoogleFeedback.apk");
delete("/system/app/GroupPlay_20.apk");
delete("/system/app/InteractiveTutorial.apk");
delete("/system/app/Magazines.apk");
delete("/system/app/Match3VS.apk");
delete("/system/app/Music2.apk");
delete("/system/app/Peel.apk");
delete("/system/app/PlusOne.apk.apk");
delete("/system/app/S_Translator_CSLi.apk.apk");
delete("/system/app/SamsungApps_J_Only.apk");
delete("/system/app/SamsungAppsUNA3.apk");
delete("/system/app/SamsungBooks.apk");
delete("/system/app/SamsungGames.apk");
delete("/system/app/SamsungHub.apk");
delete("/system/app/SamsungHubUpdater.apk");
delete("/system/app/SamsungLearning.apk");
delete("/system/app/SamsungMusic.apk");
delete("/system/app/SamsungWatchON.apk");
delete("/system/app/TravelWidget.apk");
delete("/system/app/TravelService.apk");
delete("/system/app/TripAdvisor.apk");
delete("/system/app/YahoostockPhone2013.apk");
delete("/system/app/YahoonewsPhone2013.apk");
delete("/system/app/Blurb.apk");
delete("/system/app/Books.apk");
delete("/system/app/StoryAlbumWidget.apk");
delete("/system/app/Gmail2.apk");
delete("/system/app/secRCS.apk");
delete("/system/app/Videos.apk");
delete("/system/app/ContainerAgent.apk");
delete("/system/app/SPDClient.apk");
delete("/system/app/SyncmlDM.apk");
delete("/system/app/SyncmlDS.apk");
delete("/system/app/DSMForwarding.apk");
delete("/system/app/DSMLawmo.apk");
delete("/system/app/ELMAgent.apk");
delete("/system/app/BluetoothTest.apk");
delete("/system/app/WlanTest.apk");
delete("/system/app/wssyncmlnps.apk");
ui_print("Deleting folders and misc...");
delete_recursive("/system/media/video");
delete_recursive("/system/containers");
delete_recursive("/system/lost+found");
delete_recursive("/system/preloaddata");
delete_recursive("/system/app/pak");
delete_recursive("/system/app/mcRegistry");
delete("/system/app/CSC.apk");
delete("/system/CSCVersion.txt");
delete("/system/csc_contents");
delete_recursive("/system/csc");
run_program("/tmp/busybox", "umount", "/system");
run_program("/tmp/busybox", "umount", "/data");
ui_print("Done, enjoy!");
Hi,
I've used the bloatware-removal-skript from this post http://forum.xda-developers.com/android/software/gapps-google-apps-minimal-edition-t2943330 on my Galaxy S5 with CM12.1 for over a year and it worked very fine.
Now I've updated to CM13 and tried the skript again, it won't work. TWRP 2.8.7.0 just says:
Error flashing zip '/sdcard/postinstall.zip'
No further information.
I don't know how to fix this. Here's the content of my "updater-script":
Code:
ui_print("******************************************");
ui_print("Bloatware Removal Script for Android 6.x.x");
ui_print("");
ui_print("Release Date: 2016-01-09");
ui_print("******************************************");
show_progress(1, 15);
ui_print("Unmounting system");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Mounting system");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
ui_print("Removing system bloat, if any...");
delete_recursive(
"/system/app/BasicDreams",
"/system/app/Browser",
"/system/app/Calendar",
"/system/app/Camera2",
"/system/app/CMWallpapers",
"/system/app/Eleven",
"/system/app/Email",
"/system/app/Exchange2",
"/system/app/Galaxy4",
"/system/app/HoloSpiralWallpaper",
"/system/app/LiveWallpapers",
"/system/app/LiveWallpapersPicker",
"/system/app/NoiseField",
"/system/app/PhaseBeam",
"/system/app/PhotoPhase",
"/system/app/PhotoTable",
"/system/app/SoundRecorder",
);
delete_recursive(
"/system/priv-app/AudioFX",
);
show_progress(1, 15);
ui_print("Copying files");
package_extract_dir("system", "/system");
show_progress(1, 15);
ui_print("Unmounting system");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
Any suggestions / ideas?
thx,
bigtreiber
DELETE
Thanks
Thanks for this great tool, I will text this with a new Rom for my GalaxyS6 and see how this works
Gonna test this looks very promising
Thanks for this.
What apps are debloated?
edit:
Made one Rom for the A5 20015 using stock firmware but when I try to flash it TWRP gives me an error: "Updater process ended with ERROR: 6". My updater script looks like this:
ui_print(" ");
ui_print(" ");
ui_print(" Sunny ");
show_progress(1.0,0);
run_pogram("/sbin/busybox", "mount", "/system");
run_pogram("/sbin/busybox", "mount", "/cache");
set_progress(0.33);
ui_print("Formating /System/ ...");
delete_recursive("/system/app", "/system/framework", "/system/priv-app");
delete("/system/build.prop");
ui_print("Installing /System/ ...");
package_extract_dir("system", "/system");
ui_print("Root...");
package_extract_dir("ss", "/tmp/supersu");
run_program("/sbin/busybox", "unzip", "/tmp/supersu/ss.zip", "META-INF/com/google/android/*", "-d", "/tmp/supersu");
run_program("/sbin/busybox", "sh", "/tmp/supersu/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/supersu/ss.zip");
ui_print("BusyBox...");
package_extract_dir("bb", "/tmp/busybox");
run_program("/sbin/busybox", "unzip", "/tmp/busybox/bb.zip", "META-INF/com/google/android/*", "-d", "/tmp/busybox");
run_program("/sbin/busybox", "sh", "/tmp/busybox/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/busybox/bb.zip");
delete("/system/bin/bootanimation");
package_extract_dir("bt", "/system/bin");
delete("/system/etc/permissions/com.sec.feature.findo.xml");
set_progress(1.00);
ui_print(" ");
ui_print(" ");
ui_print(" Zip created by SamsungKitchen ");
ui_print("Sunny installed");
ui_print(" Reboot and wait 6-15min ");
set_progress(1.00);
ui_print(" ");
ui_print(" ");
ui_print(" Zip created by SamsungKitchen ");
ui_print("Sunny installed");
ui_print(" Reboot and wait 6-15min ");
n0need4introductions said:
Thanks for this.
What apps are debloated?
edit:
Made one Rom for the A5 20015 using stock firmware but when I try to flash it TWRP gives me an error: "Updater process ended with ERROR: 6". My updater script looks like this:
ui_print(" ");
ui_print(" ");
ui_print(" Sunny ");
show_progress(1.0,0);
run_pogram("/sbin/busybox", "mount", "/system");
run_pogram("/sbin/busybox", "mount", "/cache");
set_progress(0.33);
ui_print("Formating /System/ ...");
delete_recursive("/system/app", "/system/framework", "/system/priv-app");
delete("/system/build.prop");
ui_print("Installing /System/ ...");
package_extract_dir("system", "/system");
ui_print("Root...");
package_extract_dir("ss", "/tmp/supersu");
run_program("/sbin/busybox", "unzip", "/tmp/supersu/ss.zip", "META-INF/com/google/android/*", "-d", "/tmp/supersu");
run_program("/sbin/busybox", "sh", "/tmp/supersu/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/supersu/ss.zip");
ui_print("BusyBox...");
package_extract_dir("bb", "/tmp/busybox");
run_program("/sbin/busybox", "unzip", "/tmp/busybox/bb.zip", "META-INF/com/google/android/*", "-d", "/tmp/busybox");
run_program("/sbin/busybox", "sh", "/tmp/busybox/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/busybox/bb.zip");
delete("/system/bin/bootanimation");
package_extract_dir("bt", "/system/bin");
delete("/system/etc/permissions/com.sec.feature.findo.xml");
set_progress(1.00);
ui_print(" ");
ui_print(" ");
ui_print(" Zip created by SamsungKitchen ");
ui_print("Sunny installed");
ui_print(" Reboot and wait 6-15min ");
set_progress(1.00);
ui_print(" ");
ui_print(" ");
ui_print(" Zip created by SamsungKitchen ");
ui_print("Sunny installed");
ui_print(" Reboot and wait 6-15min ");
Click to expand...
Click to collapse
You created 2 times the zip in same project???? set progress(1.00); are 2 times in script, try deleting one:
set_progress(1.00);
ui_print(" ");
ui_print(" ");
ui_print(" Zip created by SamsungKitchen ");
ui_print("Sunny installed");
ui_print(" Reboot and wait 6-15min ");
And debloated apps are a little list now, but i'm preparing a new update for best control of kitchen, sorry for the people doesn't working fine... good luck :good:
TheAbraham696 said:
You created 2 times the zip in same project???? set progress(1.00); are 2 times in script, try deleting one:
set_progress(1.00);
ui_print(" ");
ui_print(" ");
ui_print(" Zip created by SamsungKitchen ");
ui_print("Sunny installed");
ui_print(" Reboot and wait 6-15min ");
And debloated apps are a little list now, but i'm preparing a new update for best control of kitchen, sorry for the people doesn't working fine... good luck :good:
Click to expand...
Click to collapse
Thank you, I will try and report back.
Hello
Thank you for the tool. I will test the
Hello, when the files go to the firmware folder all fades away the folder became empty!
any help?
zoko said:
Hello, when the files go to the firmware folder all fades away the folder became empty!
any help?
Click to expand...
Click to collapse
yep. same problem here. even when you try to place a zip or md5 file (from previous samfirm dl) on the kitchen's tmp folder. was really hoping that this could work. nada
Hello
Try this kitchen, it's the best on windows
http://forum.xda-developers.com/chef-central/android/best-android-roms-editor-assayyedkitchen-t3410545
maxq1 said:
yep. same problem here. even when you try to place a zip or md5 file (from previous samfirm dl) on the kitchen's tmp folder. was really hoping that this could work. nada
Click to expand...
Click to collapse
I don't have time for update the kitchen :crying: :crying: :crying:
The kitchen copy the app, priv-app and framework carpet before deleted. it makes a custom rom only with their carpets (needed for deodex)
Better try the Kitchen ASSAYYED for Windows, it's more better :good:
What is the problem in the code? It flashes successfully, but, I have noticed the the system is still mounted even though the script unmounts it...
Also, the folders which where meant to be deleted still remain...
I need help!
Code:
ui_print(" ");
ui_print(" Debloating... ");
ui_print(" ");
run_program("/sbin/busybox", "mount", "/data");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/cache");
delete("/system/app/YouTube");
delete("/system/app/YouTubeKaraokePlugin");
delete("/system/app/YouTubePlugin");
run_program("/sbin/busybox", "unmount", "/data");
run_program("/sbin/busybox", "unmount", "/system");
run_program("/sbin/busybox", "unmount", "/cache");
ui_print(" ");
ui_print(" Done !!! ");
ui_print(" ");
Hello there, I've recently made a Mod called '' Enhanced experience'' and i want to set permissions for Google phone in Updater script also want to make it as default app when flashed. What code should I write?
Here's my thread link: https://forum.xda-developers.com/showpost.php?p=71834634
Here's my updater script.
Code:
ui_print(" ************************** ");
ui_print("* ENHANCED EXPERIENCE *");
ui_print("* By chetz1215 *");
ui_print(" ************************** ");
ui_print(" Version: V3.5 ");
show_progress(0.1, 0);
ui_print(" Removing LineageOS apps ");
mount("yaffs2", "MTD", "system", "/system");
delete_recursive("/system/app/Phonograph");
delete_recursive("/system/app/Camera2");
delete_recursive("/system/app/Calendar");
delete_recursive("/system/app/DeskClock");
delete_recursive("/system/app/Eleven");
delete_recursive("/system/app/ExactCalculator");
delete_recursive("/system/app/LockClock");
delete_recursive("/system/app/messaging");
delete_recursive("/system/priv-app/Dialer");
show_progress(0.2, 15);
ui_print(" _________________________________________________ ");
ui_print(" ");
ui_print(" Replacing Stock apps with Google + unlock effect ");
ui_print(" _________________________________________________ ");
package_extract_dir("system", "/system");
ui_print("Setting permissions");
ui_print(" ");
ui_print(" Thank you for installing :) ");
show_progress(1, 15);
unmount("/system");