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

Commit 56534fb8 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Fix issue with non-dismissibility

Skip appop check for SYSTEM_UID, because it has all
appops granted.

Test: manual
Fixes: 338094859
Flag: BUGFIX_ONLY
Change-Id: I37ddeaced3d4befb55fcecff0cc44a00e46121ad
parent 2f0a53eb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7722,6 +7722,9 @@ public class NotificationManagerService extends SystemService {
            return true;
        }
        // Check if an app has been given system exemption
        if (ai.uid == Process.SYSTEM_UID) {
            return false;
        }
        return mAppOps.checkOpNoThrow(
                AppOpsManager.OP_SYSTEM_EXEMPT_FROM_DISMISSIBLE_NOTIFICATIONS, ai.uid,
                ai.packageName) == MODE_ALLOWED;