【Android】让机器重启进入开机向导 Google SetupWizard

让机器重启进入开机向导

平常测试的时候经常需要进入多次开机向导,但又不想恢复出厂设置执行下面命令即可:

把下面内容保存成test.bat

@Echo off
adb wait-for-device
adb shell settings put secure user_setup_complete 0
adb shell settings put global device_provisioned 0
adb root
adb shell pm enable com.google.android.setupwizard/com.google.android.setupwizard.SetupWizardActivity
adb shell pm enable com.google.android.setupwizard/com.google.android.setupwizard.deferred.ComponentStateMitigationReceiver
adb shell pm clear com.google.android.setupwizard
adb reboot

pause

android 13 测试有效

猜你喜欢

转载自blog.csdn.net/zengxx1989/article/details/134309978