Forked from LineageOS android_packages_apps_SetupWizard. Changes from upstream: - Package renamed from org.lineageos.setupwizard to me.pawlet.setupwizard - Module renamed from LineageSetupWizard to PawletSetupWizard - Source tree moved from src/org/lineageos/ to src/me/pawlet/ - WelcomeActivity and FinishActivity migrated to Kotlin/Compose - PawletTheme: Material3 lavender color scheme with Ubuntu font family - WelcomeScreen and FinishScreen Compose composables - Added Ubuntu font assets (regular/medium/bold) - Added missing strings: setup_welcome_description, setup_complete_title, setup_complete_description; os_name set to PawletOS - Android.bp: added Compose deps, pawlet-system framework API - Privapp-permissions file renamed to me.pawlet.setupwizard.xml - Helper scripts renamed from start_lineage_wizard to start_pawlet_wizard - Removed unused org.lineageos.platform.internal dependency
24 lines
635 B
Bash
Executable File
24 lines
635 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# SPDX-FileCopyrightText: 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 me.pawlet.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 me.pawlet.setupwizard/.FinishActivity || true
|
|
if [[ ! -z "$has_google_suw" ]]
|
|
then
|
|
wait ${!}
|
|
sleep 1
|
|
adb shell am start com.google.android.setupwizard/.SetupWizardExitActivity
|
|
fi
|