blob: 5031c2abd10429b90d77ac162da70776c9083f2c [file] [log] [blame]
cretin45d4cea552016-04-25 11:00:04 -07001#!/bin/bash
2
3adb root
4wait ${!}
Michael W563a38c2022-03-20 13:42:50 +01005has_google_suw=$(adb shell pm list packages com.google.android.setupwizard)
Michael Bestasc83309e2018-02-03 17:42:13 +02006adb shell pm enable org.lineageos.setupwizard/org.lineageos.setupwizard.SetupWizardExitActivity || true
Michael W563a38c2022-03-20 13:42:50 +01007if [[ ! -z "$has_google_suw" ]]
8then
9 wait ${!}
10 adb shell pm enable com.google.android.setupwizard/com.google.android.setupwizard.SetupWizardExitActivity || true
11 wait ${!}
12fi
cretin45d4cea552016-04-25 11:00:04 -070013sleep 1
Michael Bestasc83309e2018-02-03 17:42:13 +020014adb shell am start org.lineageos.setupwizard/org.lineageos.setupwizard.SetupWizardExitActivity || true
Michael W563a38c2022-03-20 13:42:50 +010015if [[ ! -z "$has_google_suw" ]]
16then
17 wait ${!}
18 sleep 1
19 adb shell am start com.google.android.setupwizard/com.google.android.setupwizard.SetupWizardExitActivity
20fi