接到个奇葩需求,要求每次启动设备时都要启动Google的SetupWizard,设备Android版本8.1,
改动如下:
-
先把两个标志位置位0: adb shell settings put global device_provisioned 0 adb shell settings put secure user_setup_complete 0 -
将要启动的activity和package使能: adb root adb shell pm enable com.google.android.setupwizard/.WizardManagerActivity adb shell pm enable com.google.android.setupwizard/.SetupWizardActivity adb shell pm enable com.google.android.setupwizard
重启后,SetupWizard再次启动。
|