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

Commit e11982f7 authored by Hai Zhang's avatar Hai Zhang
Browse files

Downgrade logging level for not finding a permission in DPGP.

The system apps being granted all permissions may request a permission
that doesn't exist, but that's fine and they just won't get it (e.g.
they requested a car permission on phone), so downgrade the log to be a
warning.

Bug: 181269159
Test: presubmit
Change-Id: I18a2f65d336c0e8414704c91a24329180d7e9752
parent 964eafdc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -272,7 +272,7 @@ final class DefaultPermissionGrantPolicy {
            try {
                return mContext.getPackageManager().getPermissionInfo(permissionName, 0);
            } catch (NameNotFoundException e) {
                Slog.e(TAG, "Permission not found: " + permissionName);
                Slog.w(TAG, "Permission not found: " + permissionName);
                return null;
            }
        }