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!");
Related
this is the the file update script for my tweak what is it wrong with it
ui_print("");
ui_print("");
ui_print("");
ui_print("Flashing Data Speed tweak...");
ui_print("Please hit "Thanks" ");
ui_print("Also check out my ICS ROM "DARKSTAR" ");
run_program("/sbin/mount", "/system");
show_progress(0.1, 0);package_extract_dir("system", "/system");
delete_recursive("/cache");delete_recursive("/data/dalvik-cache");unmount("/system");show_progress(0.1, 10);
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
Can anybody check my code?
Code:
ui_print("UltraRock for ARHD 9.0.0");
ui_print("");
ui_print("");
ui_print("Mounting /system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");
ui_print("");
ui_print("Installing applications");
ui_print("");
package_extract_dir("system", "/system");
ui_print("");
ui_print("Setting permissions");
ui_print("");
run_program("chmod 0644 /system/app/FmRadio.apk");
run_program("chmod 0644 /system/app/SecLauncher2.apk");
ui_print("");
ui_print("Unmounting");
ui_print("");
unmount("/system");
ui_print("Looks we're done");
by some reason it tells me: status 0;
GR0S said:
Can anybody check my code?
Code:
ui_print("UltraRock for ARHD 9.0.0");
ui_print("");
ui_print("");
ui_print("Mounting /system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");
ui_print("");
ui_print("Installing applications");
ui_print("");
package_extract_dir("system", "/system");
ui_print("");
ui_print("Setting permissions");
ui_print("");
run_program("chmod 0644 /system/app/FmRadio.apk");
run_program("chmod 0644 /system/app/SecLauncher2.apk");
ui_print("");
ui_print("Unmounting");
ui_print("");
unmount("/system");
ui_print("Looks we're done");
by some reason it tells me: status 0;
Click to expand...
Click to collapse
I have never seen
Code:
run_program("chmod 0644 /system/app/SecLauncher2.apk");
used for setting permissions..
use this instead
Code:
set_perm(0, 0, 0755, 0644, "/system/app/SecLauncher2.apk");
or
Code:
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
HI DEVS....i need help....i made an update for my gb..samsung galaxy pocket duos...gt s5302 ...but while flashing its gvng an error in cwn -installtion aborted...status 6 error...i know its updater script error but i cannot fix it..pls help me guys...n m using notepad ++ for editing d updater script...in which format should i save it in in whch type like unix...etc....my updater script is gven below...........................i have attached a file...its myn updater script...it has been saved as .txt file coz xda dnt support uploading of files wthout extension...but im myn update...its saved wthout any extension..
ui_print(" hey guys ");
ui_print(" its an system updater ");
ui_print("pls wait some tym");
ui_print(" its been installing ");
ui_print(" ");
ui_print("| updated by siva |");
ui_print("|----------------------------|");
ui_print("| 10% Update Started |");
show_progress(0.1, 0);
ui_print("| 30% Reading Apps |");
show_progress(O.2, 0);
ui_print("| 60% Mounting filesystem |");
show_progress(0.3, 0);
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("framework", "/system/framework");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("app", "/system/app");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
show_progress(1, 0);
ui_print(" sysytem updated successfuly");
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");