Browse Source

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 10 months ago
parent
commit
d800cecc66
2 changed files with 24 additions and 0 deletions
  1. +15
    -0
      replace-priv-apk.sh
  2. +9
    -0
      start-wizard.sh

+ 15
- 0
replace-priv-apk.sh 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
- 0
start-wizard.sh 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

Loading…
Cancel
Save