Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4760f080 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Help on issue #128350014: runInstallCreate from pm command asks...

...to run as user -1 but is calling from user 0

Improve the message to give the full uid of the caller to help identify
where such problems are coming from:

Bug: 128350014
Test: manual
Change-Id: Ibb88224e706f6d5c0d5bb495239d4abcfe24f671
parent 835282ec
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1547,8 +1547,8 @@ class UserController implements Handler.Callback {
                    }
                    builder.append(" asks to run as user ");
                    builder.append(userId);
                    builder.append(" but is calling from user ");
                    builder.append(UserHandle.getUserId(callingUid));
                    builder.append(" but is calling from uid ");
                    UserHandle.formatUid(builder, callingUid);
                    builder.append("; this requires ");
                    builder.append(INTERACT_ACROSS_USERS_FULL);
                    if (allowMode != ALLOW_FULL_ONLY) {