ui_print("");
ui_print("");
ui_print("Remove some APPs");
ui_print("");
ui_print("");
ui_print("Mount System");
run_program("/sbin/busybox","mount","/system");
ui_print("");
ui_print("");
ui_print("Start to remove system apps.");
delete_recursive("/system/app/AntHalService");
delete_recursive("/system/app/BookmarkProvider");
delete_recursive("/system/app/BugReport");
delete_recursive("/system/app/BuiltInPrintService");
delete_recursive("/system/app/CatcherPatch");
delete_recursive("/system/app/Calculator");
delete_recursive("/system/app/ConfURIDialer");
delete_recursive("/system/app/Email");
delete_recursive("/system/app/FidoAuthen");
delete_recursive("/system/app/FidoClient");
delete_recursive("/system/app/FidoCryptoService");
delete_recursive("/system/app/FileExplorer");
delete_recursive("/system/app/greenguard");
delete_recursive("/system/app/HTMLViewer");delete_recursive("/system/app/HybridPlatform");
delete_recursive("/system/app/Joyose");
delete_recursive("/system/app/KSICibaEngine");
delete_recursive("/system/app/LiveWallpapersPicker");
delete_recursive("/system/app/MiDrive");
delete_recursive("/system/app/MiuiCompass");
delete_recursive("/system/app/MiuiContentCatcher");
delete_recursive("/system/app/MiuiScreenRecorder");
delete_recursive("/system/app/MiWallpaper");
delete_recursive("/system/app/Notes");
delete_recursive("/system/app/PaymentService");
delete_recursive("/system/app/PrintRecommendationService");
delete_recursive("/system/app/PrintSpooler");
delete_recursive("/system/app/SecurityAdd");
delete_recursive("/system/app/SecurityCoreAdd");
delete_recursive("/system/app/TouchAssistant");
delete_recursive("/system/app/UserDictionaryProvider");
delete_recursive("/system/app/WallpaperBackup");
delete_recursive("/system/app/XMCloudEngine");
ui_print("");
ui_print("");
ui_print("Start to remove priv-apps.");
delete_recursive("/system/priv-app/BackupRestoreConfirmation");
delete_recursive("/system/priv-app/Browser");
delete_recursive("/system/priv-app/Calendar");
delete_recursive("/system/priv-app/CallLogBackup");
delete_recursive("/system/priv-app/CellBroadcastReceiver");
delete_recursive("/system/priv-app/CleanMaster");
delete_recursive("/system/priv-app/CloudBackup");
delete_recursive("/system/priv-app/DownloadProviderUi");
delete_recursive("/system/priv-app/EmergencyInfo");
delete_recursive("/system/priv-app/MiDrop");
delete_recursive("/system/priv-app/MiGameCenterSDKService");
delete_recursive("/system/priv-app/MiuiScanner");
delete_recursive("/system/priv-app/MiuiVideo");
delete_recursive("/system/priv-app/MiuiGallery");
delete_recursive("/system/priv-app/Music");
delete_recursive("/system/priv-app/QuickSearchBox");
delete_recursive("/system/priv-app/SoundRecorder");
delete_recursive("/system/priv-app/SpacesManagerService");
delete_recursive("/system/priv-app/VirtualSim");
delete_recursive("/system/priv-app/WallpaperCropper");
delete_recursive("/system/priv-app/YellowPage");
ui_print("");
ui_print("");
ui_print("Un-Mount System");
unmount("/system");
ui_print("");
ui_print("");
ui_print("Done");
ui_print("");
ui_print("");
ref:
[Android] 升級包中的 updater-script 簡易撰寫教學
updater-script命令详解教你写刷机脚本
[TUTORIAL] The updater-script completely explained