I am having issues switching profiles only after rebooting and updating to the latest release 2024061400. I get the following error whenever I switch from Owner to any secondary profile:
java.lang.RuntimeException: Keyguard is not shown in 20 seconds
at com.android.server.am.UserController$Injector.lockDeviceNowAndWaitForKeyguardShown(UserController.java:3860)
at com.android.server.am.UserController.startUserInternal(UserController.java:1812)
at com.android.server.am.UserController.startUserNoChecks(UserController.java:1663)
at com.android.server.am.UserController.startUser(UserController.java:1617)
at com.android.server.am.UserController.startUser(UserController.java:1576)
at com.android.server.am.UserController.startUserInForeground(UserController.java:1921)
at com.android.server.am.UserController.handleMessage(UserController.java:3220)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.os.HandlerThread.run(HandlerThread.java:68)
at com.android.server.ServiceThread.run(ServiceThread.java:46)
Phone will hang for several seconds and then perform a soft reboot with a system crash error. Prior to this update, I was not having any issue switching profiles as I use my phone as my daily driver. I have three different secondary profiles alongside Owner, named Work, Personal and Test; I generally use Personal after booting into the Owner profile.
After discovering the issue, I went into theGeneral.grapheneos.org channel and was told to try rebooting to safe mode to see if maybe app configuration may have been causing the issue, which did not seem to change anything. I decided to try the following as well, repeating the same process to see if anything changed:
- Delete an existing profile (Test)
- Disable all secondary profiles from staying in the background
Nothing changed. I then decided to create a new profile and was luckily able to switch from this new profile to my other secondary profile (Personal). From here, profile switching somewhat works as expected (secondary to secondary, secondary to Owner) however if you try again to switch from Owner to another secondary the same problem occurs again.
I generally wouldn't complain about an issue (bugs happen) however since I designed my phone to utilize secondary profiles from day 1 instead of relying on a single Owner profile you can see how this might be a problem for a power user like myself who is constantly switching between profiles (i.e I want to use X feature like the hotspot, which can only be toggled on from the Owner profile). I do see several issues mentioning the same/similar problem in the os-issue-tracker repo suggesting it's an upstream error (see: https://github.com/GrapheneOS/os-issue-tracker/issues/3527#issuecomment-2121284512), however I have yet to see evidence this has been reported in Google's issue tracker. I am unsure what to do if this problem isn't fixed or will even get fixed in the near future and whether or not I should just move everything to the Owner profile for the time being or downgrade if its possible.
Any suggestions would be much appreciated.