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:
parent
61e51943de
commit
d800cecc66
15
replace-priv-apk.sh
Executable file
15
replace-priv-apk.sh
Executable 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
9
start-wizard.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user