| 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) |
| Oliver Scott | 1db317b | 2024-01-10 16:30:37 -0500 | [diff] [blame^] | 6 | adb shell pm enable org.lineageos.setupwizard/.FinishActivity || true |
| Michael W | 563a38c | 2022-03-20 13:42:50 +0100 | [diff] [blame] | 7 | if [[ ! -z "$has_google_suw" ]] |
| 8 | then |
| 9 | wait ${!} |
| Oliver Scott | 1db317b | 2024-01-10 16:30:37 -0500 | [diff] [blame^] | 10 | adb shell pm enable com.google.android.setupwizard/.SetupWizardExitActivity || true |
| Michael W | 563a38c | 2022-03-20 13:42:50 +0100 | [diff] [blame] | 11 | wait ${!} |
| 12 | fi |
| cretin45 | d4cea55 | 2016-04-25 11:00:04 -0700 | [diff] [blame] | 13 | sleep 1 |
| Oliver Scott | 1db317b | 2024-01-10 16:30:37 -0500 | [diff] [blame^] | 14 | adb shell am start org.lineageos.setupwizard/.FinishActivity || 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 |
| Oliver Scott | 1db317b | 2024-01-10 16:30:37 -0500 | [diff] [blame^] | 19 | adb shell am start com.google.android.setupwizard/.SetupWizardExitActivity |
| Michael W | 563a38c | 2022-03-20 13:42:50 +0100 | [diff] [blame] | 20 | fi |