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

Commit f5bf0de1 authored by Xiaohui Chen's avatar Xiaohui Chen
Browse files

clean up USER_OWNER in Pm command

Change-Id: I3092cdf1ca619b4c1ba881955b8a55b97ba10e24
parent b1423dde
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -283,7 +283,7 @@ public final class Pm {
            } else if (args.length == 2) {
                if (args[0].equalsIgnoreCase("-p")) {
                    validCommand = true;
                    return displayPackageFilePath(args[1], UserHandle.USER_OWNER);
                    return displayPackageFilePath(args[1], UserHandle.USER_SYSTEM);
                }
            }
            return 1;
@@ -767,7 +767,7 @@ public final class Pm {
    }

    private int runPath() {
        int userId = UserHandle.USER_OWNER;
        int userId = UserHandle.USER_SYSTEM;
        String option = nextOption();
        if (option != null && option.equals("--user")) {
            String optionData = nextOptionData();
@@ -1650,7 +1650,7 @@ public final class Pm {
    }

    private int runClear() {
        int userId = UserHandle.USER_OWNER;
        int userId = UserHandle.USER_SYSTEM;
        String option = nextOption();
        if (option != null && option.equals("--user")) {
            String optionData = nextOptionData();
@@ -1722,7 +1722,7 @@ public final class Pm {
    }

    private int runSetEnabledSetting(int state) {
        int userId = UserHandle.USER_OWNER;
        int userId = UserHandle.USER_SYSTEM;
        String option = nextOption();
        if (option != null && option.equals("--user")) {
            String optionData = nextOptionData();
@@ -1771,7 +1771,7 @@ public final class Pm {
    }

    private int runSetHiddenSetting(boolean state) {
        int userId = UserHandle.USER_OWNER;
        int userId = UserHandle.USER_SYSTEM;
        String option = nextOption();
        if (option != null && option.equals("--user")) {
            String optionData = nextOptionData();