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. Wow, you are a life saver. Much appreciated. 😊😊

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

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

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

    ReplyDelete
  8. Where will I get the Setup Wizard?

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

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

    ReplyDelete
  11. 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
  12. Thank you very much.. it saves me

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

    ReplyDelete
  14. 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

Post a Comment

Popular posts from this blog

from: can't read /var/mail/ in Python scripts

How to install a WhatsApp bot based on Python