blob: efc3a769c69d80c64a1b3e88097221746462dec4 [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)
Oliver Scott1db317b2024-01-10 16:30:37 -05006adb shell pm enable org.lineageos.setupwizard/.FinishActivity || true
Michael W563a38c2022-03-20 13:42:50 +01007if [[ ! -z "$has_google_suw" ]]
8then
9 wait ${!}
Oliver Scott1db317b2024-01-10 16:30:37 -050010 adb shell pm enable com.google.android.setupwizard/.SetupWizardExitActivity || true
Michael W563a38c2022-03-20 13:42:50 +010011 wait ${!}
12fi
cretin45d4cea552016-04-25 11:00:04 -070013sleep 1
Oliver Scott1db317b2024-01-10 16:30:37 -050014adb shell am start org.lineageos.setupwizard/.FinishActivity || true
Michael W563a38c2022-03-20 13:42:50 +010015if [[ ! -z "$has_google_suw" ]]
16then
17 wait ${!}
18 sleep 1
Oliver Scott1db317b2024-01-10 16:30:37 -050019 adb shell am start com.google.android.setupwizard/.SetupWizardExitActivity
Michael W563a38c2022-03-20 13:42:50 +010020fi