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

Commit dee19473 authored by Priyanka Advani's avatar Priyanka Advani Committed by Android (Google) Code Review
Browse files

Revert "Change default mode for ACCESS_NOTIFICATIONS"

Revert submission 26637494-allow_notifications_mode

Reason for revert: Droid-monitor created revert due to test breakages in b/330807059. Will be verifying through ABTD for confirmation and before submitting the revert.

Reverted changes: /q/submissionid:26637494-allow_notifications_mode

Change-Id: I120b6d305181563214ad2ff0ff709032531c08fe
parent 842df25e
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -2677,7 +2677,8 @@ public class AppOpsManager {
            .setDefaultMode(getSystemAlertWindowDefault()).build(),
            .setDefaultMode(getSystemAlertWindowDefault()).build(),
        new AppOpInfo.Builder(OP_ACCESS_NOTIFICATIONS, OPSTR_ACCESS_NOTIFICATIONS,
        new AppOpInfo.Builder(OP_ACCESS_NOTIFICATIONS, OPSTR_ACCESS_NOTIFICATIONS,
                "ACCESS_NOTIFICATIONS")
                "ACCESS_NOTIFICATIONS")
            .setPermission(android.Manifest.permission.ACCESS_NOTIFICATIONS).build(),
            .setPermission(android.Manifest.permission.ACCESS_NOTIFICATIONS)
            .setDefaultMode(AppOpsManager.MODE_ALLOWED).build(),
        new AppOpInfo.Builder(OP_CAMERA, OPSTR_CAMERA, "CAMERA")
        new AppOpInfo.Builder(OP_CAMERA, OPSTR_CAMERA, "CAMERA")
            .setPermission(android.Manifest.permission.CAMERA)
            .setPermission(android.Manifest.permission.CAMERA)
            .setRestriction(UserManager.DISALLOW_CAMERA)
            .setRestriction(UserManager.DISALLOW_CAMERA)