adb based scripts to update and launch the wizard.

Useful to quickly test modifications on a system where the wizard
already run.
adhoc-dev
Nestor Kwak 3 years ago
parent 61e51943de
commit d800cecc66

@ -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

@ -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…
Cancel
Save