cretin45 | d4cea55 | 2016-04-25 11:00:04 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | adb root |
| 4 | wait ${!} |
Michael W | 563a38c | 2022-03-20 13:42:50 +0100 | [diff] [blame] | 5 | has_google_suw=$(adb shell pm list packages com.google.android.setupwizard) |
Michael Bestas | c83309e | 2018-02-03 17:42:13 +0200 | [diff] [blame] | 6 | adb shell pm enable org.lineageos.setupwizard/org.lineageos.setupwizard.SetupWizardExitActivity || true |
Michael W | 563a38c | 2022-03-20 13:42:50 +0100 | [diff] [blame] | 7 | if [[ ! -z "$has_google_suw" ]] |
| 8 | then |
| 9 | wait ${!} |
| 10 | adb shell pm enable com.google.android.setupwizard/com.google.android.setupwizard.SetupWizardExitActivity || true |
| 11 | wait ${!} |
| 12 | fi |
cretin45 | d4cea55 | 2016-04-25 11:00:04 -0700 | [diff] [blame] | 13 | sleep 1 |
Michael Bestas | c83309e | 2018-02-03 17:42:13 +0200 | [diff] [blame] | 14 | adb shell am start org.lineageos.setupwizard/org.lineageos.setupwizard.SetupWizardExitActivity || true |
Michael W | 563a38c | 2022-03-20 13:42:50 +0100 | [diff] [blame] | 15 | if [[ ! -z "$has_google_suw" ]] |
| 16 | then |
| 17 | wait ${!} |
| 18 | sleep 1 |
| 19 | adb shell am start com.google.android.setupwizard/com.google.android.setupwizard.SetupWizardExitActivity |
| 20 | fi |