When playing around with android phones it may happen that the setup wizard crashes and refuses to work. Not nice per se and quite annoying as it prevents us from testing and developing. As I always forget how to get around that issue, here’s how it’s done:
adb shell settings put global setup_wizard_has_run 1
adb shell settings put secure user_setup_complete 1
adb shell settings put global device_provisioned 1
Marcellin says:
Thans a lot my brother! It’s working
brian says:
it worked thanks
Omer says:
Tried applying these but I am getting a Permission denial: writing to settings requires: android.permission.WRITE_SECURE_SETTINGS at (dozen different lines). I did make sure to enable the “disable permission monitoring” option under developer options but it still doesn’t work. Any advice?
ToeiRei says:
Sorry for the late reply. Spamfilter issue. WRITE_SECURE_SETTINGS looks like protected settings to me.
omaga says:
awesome! helped me get inside my old tablet that was not showing google sign in