当前位置: 首页 > 工具软件 > CM-Updater > 使用案例 >

android updater-scrip

商嘉木
2023-12-01
ui_print("*********************************************");
ui_print("           Google Apps for X HIKe            ");
ui_print("*********************************************");

ui_print("Installing...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system");
delete("/system/app/QuickSearchBox.apk","/system/app/SetupWizard.apk","/system/app/Velvet.apk","/system/app/Vending.apk","/system/app/BrowserProviderProxy.apk","/system/app/PartnerBookmarksProvider.apk");
show_progress(1, 15);
package_extract_dir("system", "/system");
ui_print("Cleaning up...");

set_perm(0, 0, 0755, "/system/");
set_perm(0, 0, 0755, "/system/framework");
set_perm(0, 0, 0755, "/system/app");
set_perm(0, 0, 0755, "/system/lib");
set_perm(0, 0, 0755, "/system/usr");
set_perm(0, 0, 0755, "/system/usr/srec");
set_perm(0, 0, 0755, "/system/usr/srec/en-US");
set_perm(0, 0, 0755, "/system/tts");
set_perm(0, 0, 0755, "/system/tts/lang_pico");
set_perm(0, 0, 0755, "/system/etc");
set_perm(0, 0, 0755, "/system/etc/permissions");
set_perm(0, 0, 0755, "/system/etc/preferred-apps");
set_perm(0, 0, 0755, "/system/addon.d");
set_perm(0, 0, 0755, "/system/vendor");
set_perm(0, 0, 0755, "/system/vendor/pittpatt");
set_perm(0, 0, 0755, "/system/vendor/pittpatt/models");
set_perm(0, 0, 0755, "/system/vendor/pittpatt/models/detection");
set_perm(0, 0, 0755, "/system/vendor/pittpatt/models/recognition");
set_perm(0, 0, 0755, "/system/vendor/pittpatt/models/recognition/face.face.y0-y0-22-b-N");
set_perm(0, 0, 0755, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6");
set_perm(0, 0, 0755, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7");
set_perm(0, 0, 0755, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-rn30-ri30.5-v24");
set_perm(0, 0, 0755, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-rp30-ri30.5-v24");
set_perm(0, 0, 0755, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-r0-ri30.4a-v24");
set_perm(0, 0, 0755, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/nose_base-y0-yi45-p0-pi45-r0-ri20.lg_32");
set_perm(0, 0, 0755, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/left_eye-y0-yi45-p0-pi45-r0-ri20.lg_32");
set_perm(0, 0, 0755, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/right_eye-y0-yi45-p0-pi45-r0-ri20.lg_32-2");
set_perm(0, 0, 0644, "/system/lib/libjni_latinime.so");
set_perm(0, 0, 0644, "/system/lib/librs.retrolux.so");
set_perm(0, 0, 0644, "/system/lib/librsjni.so");
set_perm(0, 0, 0644, "/system/lib/libvorbisencoder.so");
set_perm(0, 0, 0644, "/system/lib/libfilterpack_facedetect.so");
set_perm(0, 0, 0644, "/system/lib/librs.image_wrapper.so");
set_perm(0, 0, 0644, "/system/lib/libwebp_android.so");
set_perm(0, 0, 0644, "/system/lib/libRSSupport.so");
set_perm(0, 0, 0644, "/system/lib/librs.film_base.so");
set_perm(0, 0, 0644, "/system/lib/libfilterframework_jni.so");
set_perm(0, 0, 0644, "/system/lib/libnetjni.so");
set_perm(0, 0, 0644, "/system/lib/librs.antblur_constant.so");
set_perm(0, 0, 0644, "/system/lib/libmoviemaker-jni.so");
set_perm(0, 0, 0644, "/system/lib/libgames_rtmp_jni.so");
set_perm(0, 0, 0644, "/system/lib/librs.drama.so");
set_perm(0, 0, 0644, "/system/lib/libgoogle_recognizer_jni.so");
set_perm(0, 0, 0644, "/system/lib/libAppDataSearch.so");
set_perm(0, 0, 0644, "/system/lib/libvcdecoder_jni.so");
set_perm(0, 0, 0644, "/system/lib/libplus_jni_v8.so");
set_perm(0, 0, 0644, "/system/lib/libspeexwrapper.so");
set_perm(0, 0, 0644, "/system/lib/libgtalk_stabilize.so");
set_perm(0, 0, 0644, "/system/lib/librs.antblur_drama.so");
set_perm(0, 0, 0644, "/system/lib/libgcomm_jni.so");
set_perm(0, 0, 0644, "/system/lib/librs.grey.so");
set_perm(0, 0, 0644, "/system/lib/librs.fixedframe.so");
set_perm(0, 0, 0644, "/system/lib/libfrsdk.so");
set_perm(0, 0, 0644, "/system/lib/libgoogle_recognizer_jni_l.so");
set_perm(0, 0, 0644, "/system/lib/libpatts_engine_jni_api.so");
set_perm(0, 0, 0644, "/system/lib/libgtalk_jni.so");
set_perm(0, 0, 0644, "/system/lib/librs.antblur.so");
set_perm(0, 0, 0644, "/system/lib/libfacelock_jni.so");
set_perm(0, 0, 0644, "/system/etc/permissions/com.google.widevine.software.drm.xml");
set_perm(0, 0, 0644, "/system/etc/permissions/features.xml");
set_perm(0, 0, 0644, "/system/etc/permissions/com.google.android.maps.xml");
set_perm(0, 0, 0644, "/system/etc/permissions/com.google.android.media.effects.xml");
set_perm(0, 0, 0644, "/system/etc/g.prop");
set_perm(0, 0, 0644, "/system/etc/preferred-apps/google.xml");
set_perm(0, 0, 0644, "/system/tts/lang_pico/fr-FR_nk0_sg.bin");
set_perm(0, 0, 0644, "/system/tts/lang_pico/es-ES_zl0_sg.bin");
set_perm(0, 0, 0644, "/system/tts/lang_pico/de-DE_ta.bin");
set_perm(0, 0, 0644, "/system/tts/lang_pico/it-IT_cm0_sg.bin");
set_perm(0, 0, 0644, "/system/tts/lang_pico/it-IT_ta.bin");
set_perm(0, 0, 0644, "/system/tts/lang_pico/de-DE_gl0_sg.bin");
set_perm(0, 0, 0644, "/system/tts/lang_pico/es-ES_ta.bin");
set_perm(0, 0, 0644, "/system/tts/lang_pico/fr-FR_ta.bin");
set_perm(0, 0, 0644, "/system/addon.d/70-gapps.sh");
set_perm(0, 0, 0644, "/system/addon.d/71-gapps-faceunlock.sh");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/grammar.config");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/acoustic_model");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/norm_fst");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/hotword_symbols");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/contacts.abnf");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/g2p_fst");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/hmmsyms");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/c_fst");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/compile_grammar.config");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/phonelist");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/offensive_word_normalizer");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/dict");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/google_hotword_clg");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/embed_phone_nn_model");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/endpointer_voicesearch.config");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/dictation.config");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/normalizer");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/endpointer_dictation.config");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/rescoring_lm");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/clg");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/lintrans_model");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/google_hotword.config");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/embed_phone_nn_state_sym");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/metadata");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/google_hotword_logistic");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/symbols");
set_perm(0, 0, 0644, "/system/usr/srec/en-US/ep_acoustic_model");
set_perm(0, 0, 0644, "/system/framework/com.google.widevine.software.drm.jar");
set_perm(0, 0, 0644, "/system/framework/com.google.android.maps.jar");
set_perm(0, 0, 0644, "/system/framework/com.google.android.media.effects.jar");
set_perm(0, 0, 0644, "/system/app/GoogleCalendarSyncAdapter.apk");
set_perm(0, 0, 0644, "/system/app/com.google.android.gms.apk");
set_perm(0, 0, 0644, "/system/app/GoogleFeedback.apk");
set_perm(0, 0, 0644, "/system/app/GoogleContactsSyncAdapter.apk");
set_perm(0, 0, 0644, "/system/app/NetworkLocation.apk");
set_perm(0, 0, 0644, "/system/app/GoogleBackupTransport.apk");
set_perm(0, 0, 0644, "/system/app/GooglePartnerSetup.apk");
set_perm(0, 0, 0644, "/system/app/MediaUploader.apk");
set_perm(0, 0, 0644, "/system/app/SetupWizard.apk");
set_perm(0, 0, 0644, "/system/app/LatinImeDictionaryPack.apk");
set_perm(0, 0, 0644, "/system/app/GoogleEars.apk");
set_perm(0, 0, 0644, "/system/app/com.google.android.marvin.talkback.apk");
set_perm(0, 0, 0644, "/system/app/GoogleServicesFramework.apk");
set_perm(0, 0, 0644, "/system/app/GenieWidget.apk");
set_perm(0, 0, 0644, "/system/app/GoogleLoginService.apk");
set_perm(0, 0, 0644, "/system/app/com.google.android.tts.apk");
set_perm(0, 0, 0644, "/system/app/Gmail.apk");
set_perm(0, 0, 0644, "/system/app/com.google.android.googlequicksearchbox.apk");
set_perm(0, 0, 0644, "/system/app/com.google.android.apps.plus.apk");
set_perm(0, 0, 0644, "/system/app/ChromeBookmarksSyncAdapter.apk");
set_perm(0, 0, 0644, "/system/app/com.google.android.apps.maps.apk");
set_perm(0, 0, 0644, "/system/app/OneTimeInitializer.apk");
set_perm(0, 0, 0644, "/system/app/VoiceSearchStub.apk");
set_perm(0, 0, 0644, "/system/app/ConfigUpdater.apk");
set_perm(0, 0, 0644, "/system/app/com.android.vending.apk");

unmount("/system");
ui_print("Installation complete!");
 类似资料: