Files
lineageos_setupwizard/start_lineage_wizard.sh
Michael Bestas ec05005cfe SetupWizard: Make it REUSE compliant
* Ignored all the strings.xml since they are auto-synced

Change-Id: I5d9e7aa5ae7b0079f792450f7e6dbf83216ebac4
2024-02-26 00:25:43 +02:00

21 lines
660 B
Bash
Executable File

#!/bin/bash
# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
adb root
wait ${!}
adb shell pm enable org.lineageos.setupwizard || true
wait ${!}
adb shell pm enable org.lineageos.setupwizard/.SetupWizardActivity || true
wait ${!}
if adb shell pm list packages | grep com.google.android.setupwizard; then
adb shell pm disable com.google.android.setupwizard || true
wait ${!}
fi
if adb shell pm list packages | grep com.android.provision; then
adb shell pm disable com.android.provision || true
wait ${!}
fi
adb shell am start -c android.intent.category.HOME org.lineageos.setupwizard/.SetupWizardActivity