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

Commit a38e9a6c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Added if DEBUG_PERMISSIONS statement to "Un-granting permission" log in...

Merge "Added if DEBUG_PERMISSIONS statement to "Un-granting permission" log in PermissionManagerServices"
parents a9b6294f ed67bdd2
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -1283,11 +1283,13 @@ public class PermissionManagerService {
                        permissionsState.updatePermissionFlags(bp, UserHandle.USER_ALL,
                                MASK_PERMISSION_FLAGS_ALL, 0);
                        changedInstallPermission = true;
                        if (DEBUG_PERMISSIONS) {
                            Slog.i(TAG, "Un-granting permission " + perm
                                    + " from package " + pkg.packageName
                                    + " (protectionLevel=" + bp.getProtectionLevel()
                                    + " flags=0x" + Integer.toHexString(pkg.applicationInfo.flags)
                                    + ")");
                        }
                    } else if (bp.isAppOp()) {
                        // Don't print warning for app op permissions, since it is fine for them
                        // not to be granted, there is a UI for the user to decide.