We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6be1f35 commit 2512151Copy full SHA for 2512151
services/core/java/com/android/server/SystemServiceManager.java
@@ -379,6 +379,13 @@ public void preSystemReady() {
379
}
380
381
private @NonNull TargetUser newTargetUser(@UserIdInt int userId) {
382
+ if (mUserManagerInternal == null) {
383
+ // see https://github.com/GrapheneOS/os-issue-tracker/issues/4510
384
+ var um = LocalServices.getService(UserManagerInternal.class);
385
+ if (um != null) {
386
+ mUserManagerInternal = um;
387
+ }
388
389
final UserInfo userInfo = mUserManagerInternal.getUserInfo(userId);
390
Preconditions.checkState(userInfo != null, "No UserInfo for " + userId);
391
return new TargetUser(userInfo);
0 commit comments