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

Commit 0303f0b1 authored by utzcoz's avatar utzcoz
Browse files

Handle non-exist permission group correctly for pm list permissions



Test: adb shell pm list permissions non-exist-permission-group

Change-Id: I4e1a36ec673c9b3cc813346f6fce79f5017a099a
Signed-off-by: default avatarutzcoz <utzcoz@gmail.com>
parent ebcfe1c6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3516,7 +3516,7 @@ class PackageManagerShellCommand extends ShellCommand {
            }
            List<PermissionInfo> ps = mPermissionManager
                    .queryPermissionsByGroup(groupList.get(i), 0 /*flags*/);
            final int count = ps.size();
            final int count = (ps == null ? 0 : ps.size());
            boolean first = true;
            for (int p = 0 ; p < count ; p++) {
                PermissionInfo pi = ps.get(p);