Files
lineageos_setupwizard/exit_wizard.sh
Oliver Scott 1db317b962 Remove old tests
Change-Id: I4344408d7e72093606e0cf90ada4f6bc02831a6b
2024-02-26 00:25:43 +02:00

21 lines
556 B
Bash
Executable File

#!/bin/bash
adb root
wait ${!}
has_google_suw=$(adb shell pm list packages com.google.android.setupwizard)
adb shell pm enable org.lineageos.setupwizard/.FinishActivity || true
if [[ ! -z "$has_google_suw" ]]
then
wait ${!}
adb shell pm enable com.google.android.setupwizard/.SetupWizardExitActivity || true
wait ${!}
fi
sleep 1
adb shell am start org.lineageos.setupwizard/.FinishActivity || true
if [[ ! -z "$has_google_suw" ]]
then
wait ${!}
sleep 1
adb shell am start com.google.android.setupwizard/.SetupWizardExitActivity
fi