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

Commit 92aa9cba authored by Song Chun Fan's avatar Song Chun Fan
Browse files

[pm] fix "pm path" on devices where the current user is not the system user

App might not be installed on USER_SYSTEM by default.

BUG: 414329689
FIXES: 414329689
Test: manual
FLAG: EXEMPT bug fix
Change-Id: I03a80965c95bb00949555b2ad8a3995bf4c7b8b7
parent dae32f36
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -741,7 +741,7 @@ class PackageManagerShellCommand extends ShellCommand {
    }

    private int runPath() throws RemoteException {
        int userId = UserHandle.USER_SYSTEM;
        int userId = UserHandle.USER_CURRENT;
        String option = getNextOption();
        if (option != null && option.equals("--user")) {
            userId = UserHandle.parseUserArg(getNextArgRequired());