How to fix Android when developer options are not available for this user

I have an Android One with Oreo version and suddenly my Android rebooted and after that it started to behave strangely:

1) Notification section doesn't work. I can't see notifications from my apps and the arrow and the screw icon to settings access don't work.



2) As I can't access to the notification area, I can't enable Use USB to Transfer Files to access to my phone memory.

3) I can't access to developer mode (I before active it with a lot of taps over Build number). Clicking on developer options just shows developer options are not available to this user.



4) I can't update or install the apps on google play. They freeze on Download pending... message



5) Home and Switch buttons don't work. They light up and vibrate when I tap them but they do nothing.

This issue is apparently related to a deconfiguration of user accounts. To fix it, you need re-setup the users.
As you can't access to the user manager (you are in guest mode user), I read that you could run SetupWizard from adb with the following command:

adb shell am start -n com.google.android.setupwizard/.SetupWizardTestActivity

Unfortunately my user doesn't have permissions although SetupWizard has all permissions enabled and I got this error:

Starting: Intent { cmp=com.google.android.setupwizard/.SetupWizardTestActivity }
Security exception: Permission Denial: starting Intent { flg=0x10000000 cmp=com.google.android.setupwizard/.SetupWizardTestActivity } from null (pid=9491, uid=2000) not exported from uid 10031

java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000 cmp=com.google.android.setupwizard/.SetupWizardTestActivity } from null (pid=9491, uid=2000) not exported from uid 10031
at com.android.server.am.ActivityStackSupervisor.checkStartAnyActivityPermission(ActivityStackSupervisor.java:1630)
at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:436)
at com.android.server.am.ActivityStarter.startActivityLocked(ActivityStarter.java:277)
at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:829)
at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:4573)
at com.android.server.am.ActivityManagerShellCommand.runStartActivity(ActivityManagerShellCommand.java:410)
at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityManagerShellCommand.java:141)
at android.os.ShellCommand.exec(ShellCommand.java:96)
at com.android.server.am.ActivityManagerService.onShellCommand(ActivityManagerService.java:15059)
at android.os.Binder.shellCommand(Binder.java:573)
at android.os.Binder.onTransact(Binder.java:473)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:4256)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2983)
at android.os.Binder.execTransact(Binder.java:674)

If you have super user access maybe you can try this following command (I don't tested it):

adb shell
su
pm enable com.google.android.setupwizard/com.google.android.setupwizard.SetupWizardActivity 

adb shell settings put secure user_setup_complete 0

If you don't have super user privilegies you must do the following steps:

1) Download Nova Launcher from their site (click on Direct Download APK) and set it as your default Launcher.


2) Long press on the home screen.
3) Choose Widgets.
4) At the top, under Nova Launcher, scroll to the right & press & hold on Activities and place it somewhere empty on the home screen.



5) Scroll down to Setup Wizard and click on it.
6) Select .SetupWizardUpgradeActivity to create the widget shortcut.


8) Open it. Now you can run SetupWizard and fix the issue.
Enjoy it!

Comments

  1. Fixed an issue .....many thanks...saved lot of time....

    ReplyDelete
  2. Could you explain how to "Download Nova Launcher" (step 1) when, as you stated, one cannot " I update or install the apps on google play"? Direct download and install of the apk? Is there a safe and legal source where to get the apk, besides going through the Play store ? Thank you for any help !

    ReplyDelete
    Replies
    1. You can use an alternative market as aptoide or download the apk from some site as apk-dl.com

      Delete
    2. Thank you. I guess I am not comfortable installing apps from alternative sources like that. In your intro, you mentioned something about not being able to "access to the user manager (in notification area)". I just happen to be able to access the "users & accounts" sections (is this what you were referring to?) because I have a "Settings" app in my app drawer that still works. However I am not too sure what to do from there. I can't seem to be able to do much with the "users". Should I remove the users and re-install them ? Or is there a less "destructive" option.

      Delete
    3. Try to add a new user, because maybe you are in guest mode (for this reason your user is restricted)

      Delete
    4. I was not able to do anything as far as users are concerned (that's part of the things that are gone actually, I can access the main "users" menu but can't enter the sub-menu where users can be added, modified etc ...). So I went ahead and downloaded the Nova Launcher apk. However, I went to the Play store to find the developer website and fortunately they were offering the apk for direct download. I trust that this should have been fairly safe. Then I followed your instructions using the launcher and now everything works smoothly ! (including adding/modifying users :( ) Thank you very much ! This thing drove me crazy ... I hope it does not happen regularly.

      Delete
    5. I update the post with the link to download nova launcher from the official site.
      You are welcome!

      Delete
  3. Thanks a ton bro.... Such a saver :) :)

    ReplyDelete
  4. Thank you so much for this.....

    ReplyDelete
  5. Wow, you are a life saver. Much appreciated. šŸ˜ŠšŸ˜Š

    ReplyDelete
  6. It doesn't work on mine, I tried doing it ur way many times yet sane problem. What else can I do??

    ReplyDelete
  7. Thanks you so much, it worked for me..

    ReplyDelete
  8. Thank you so much. It worked for me.

    ReplyDelete
  9. Where will I get the Setup Wizard?

    ReplyDelete
  10. Worked very well for me with Mi-A1, thanks for saving me...

    ReplyDelete
  11. Why there are "Activating mobile service..." under the Setup Wizard?

    ReplyDelete
  12. Hi..I exactly followed the steps in my MI A1 mobile but atlast finally I am getting this error...."Launcher 3 keeps stopping"
    Can anyone please help me on this....

    ReplyDelete
  13. Thank you very much.. it saves me

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. When i tried for the first time it works well but same issue happens again and this time "app not installed" error is coming...........Please Help!!

    ReplyDelete
  16. SetupSetUpWizardTestActivity or SetUpWizardUpgradeActivity none of these options available for me under SetupWizard option in activities after firing Nova Widgets. Where can I get those?
    I'm currently as guest user in custom stock ROM

    ReplyDelete
  17. Thank you very much i tried the super user adb commands and worked perfectly :))))

    ReplyDelete
  18. I could not find setup wizard under activities?

    ReplyDelete
    Replies
    1. Same here. I too can't find setup wizard under activities.

      Delete
    2. Hi, instead of Setup Wizard look for something like "Android Settings".

      (the comment didnt post for me so im writing it again)

      Delete
  19. Hi, I tried what you said and it tells me permission denied.. what should i do..

    ReplyDelete
  20. tanks. work for me. "setup new user" activity

    ReplyDelete
  21. I manage to solve the problem by wiping from the recovery mode,
    I tried the nova launcher one and didn't succeed.
    Thanks

    ReplyDelete
  22. Mine is redmi4.
    Past 2 years i dnt use this fon.
    Now idnt have number, id, pw.

    I try to unlock mi account with the help of 'YouTube' videos.

    Showing "Developer options not available for this user". Then, I add and then delete second space .
    After that it shows developer options.
    Then i On "OEM unlock"
    Then also mi account is not opening.
    What can i do now

    Plz help me

    ReplyDelete
  23. You just saved my life man. Thank you!

    ReplyDelete
  24. Under setup wizard, I didn't find .setupwizardupgradeactivities option

    ReplyDelete
  25. it save my time. Finally home button and notification problem at my infinix hot s3 is already solved. Thank you so much 3000x.

    ReplyDelete
    Replies
    1. Help mamang sama2 infunix ni, setup wisard bisa dapet dimana bang?

      Delete
  26. Don't works here, Android 7.1.1 Zenfone 3 Max zc553kl

    ReplyDelete
  27. Hi, I followed the procedure but the nova launcher I installed didn't seen to have the sub application of .setupwizardupgradeactivity it showed something else and now I'm back to square one, why does this happen tho. So I can avoid this for future references

    ReplyDelete

Post a Comment

Popular posts from this blog

Exception: Could not find a default OpenFlow controller in Mininet

v4l2: open /dev/video0: Permission denied