With my S4 running CM13 I'm now getting this error,
Unfortunately, Setup Wizard has stopped.
How do I resolve it?
I noticed when clicking
report that the issue was a permissions issue.
adb shell dumpsys package com.google.android.setupwizard
you will see two lists related to permissions, one requested permissions, and one install permissions.
Comparing these lists, there were 8 items requested, but not installed. I fixed this using:
pm grant com.google.android.setupwizard android.permission.CALL_PHONE pm grant com.google.android.setupwizard android.permission.GET_ACCOUNTS pm grant com.google.android.setupwizard android.permission.PROCESS_OUTGOING_CALLS pm grant com.google.android.setupwizard android.permission.READ_CONTACTS pm grant com.google.android.setupwizard android.permission.READ_PHONE_STATE pm grant com.google.android.setupwizard android.permission.WRITE_CONTACTS pm grant com.google.android.setupwizard android.permission.READ_OWNER_DATA pm grant com.google.android.setupwizard android.permission.WRITE_OWNER_DATA
Note that the last two items gave an error message:
Bad argument: java.lang.IllegalArgumentException: Unknown permission: android.permission.READ_OWNER_DATA.
But ignoring those, now my phone worked again.
I tried all the solutions listed here, and in my case they didn't work. Removing the setupwizard alltogether did work, but it also broke multiuser functionality (apparently the default user gets created in the wizard, and without the user you can't create more users!). Also the home-button and square-button didn't work at all. So I decided to flash the image again and solve the problem instead of curing the symptoms.
In my case, I had to get into the settings menu and enable+connect to WiFi. Apparently the wizard "forgets" to show the connect to wifi dialog! Getting into the settings menu took a few tries, but it's absolutely doable.
Once I was connected to wifi, it worked as it should. I'm running AOSP 7.1.2 on a Nexus 7 2012.
For me this solution worked. It might be annoying as you have to do all the clicks in between the Setup Wizard error messages.
And yes, this method will work in all the versions of android (including 7.1.1-Tested)
The error message disappeared as soon as I did this. Hope it helps ;)
adbinstalled and working (assuming it is available in PATH).
adb root adb shell 'pm disable com.google.android.setupwizard'
If you don't have root or if
adb root fails, then you can use instead
adb shell 'pm hide com.google.android.setupwizard'.
NOTE: This problem usually happens when installing a major CM update without wiping the data partition, so probably a cleaner solution would be backing up all the relevant apps, doing a clean install, installing the correct version of gapps, and then restoring your app data from backups.
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?