adb based scripts to update and launch the wizard.

Useful to quickly test modifications on a system where the wizard
already run.
This commit is contained in:
Nestor Kwak 2019-11-16 04:49:03 +00:00
parent 61e51943de
commit d800cecc66
2 changed files with 24 additions and 0 deletions

15
replace-priv-apk.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
adb root
wait ${!}
adb remount
wait ${!}
adb shell mount -o rw,remount /system
wait ${!}
adb push $1 /system/priv-app/CyanogenSetupWizard/CyanogenSetupWizard.apk
wait ${!}
adb shell chmod 644 /system/priv-app/CyanogenSetupWizard/CyanogenSetupWizard.apk
wait ${!}
adb shell chown root:root /system/priv-app/CyanogenSetupWizard/CyanogenSetupWizard.apk
wait ${!}
adb reboot

9
start-wizard.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
adb root
wait ${!}
adb shell pm disable com.android.provision || true
wait ${!}
adb shell pm enable com.cyanogenmod.setupwizard/com.cyanogenmod.setupwizard.ui.SetupWizardActivity || true
wait ${!}
adb shell am start com.cyanogenmod.setupwizard/com.cyanogenmod.setupwizard.ui.SetupWizardActivity