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

Commit 08f0ee00 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Show phone usage app op for microphone" into main

parents dc9ef12a 60226001
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ public class RecentAppOpsAccess {
    };
    private static final int[] MICROPHONE_OPS = new int[]{
            AppOpsManager.OP_RECORD_AUDIO,
            AppOpsManager.OP_PHONE_CALL_MICROPHONE,
    };
    private static final int[] CAMERA_OPS = new int[]{
            AppOpsManager.OP_CAMERA,
@@ -144,6 +145,11 @@ public class RecentAppOpsAccess {
            if (!showSystemApps) {
                for (int op : mOps) {
                    final String permission = AppOpsManager.opToPermission(op);
                    if (permission == null) {
                        // Some ops like OP_PHONE_CALL_MICROPHONE don't have corresponding
                        // permissions. No need to check in this case.
                        continue;
                    }
                    final int permissionFlags = mPackageManager.getPermissionFlags(permission,
                            packageName,
                            user);