* Ignored all the strings.xml since they are auto-synced Change-Id: I5d9e7aa5ae7b0079f792450f7e6dbf83216ebac4
24 lines
653 B
Bash
Executable File
24 lines
653 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
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
|