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

Commit 8e5580b5 authored by Evan Severson's avatar Evan Severson
Browse files

Fix AppOpsStartedWatcherTest

These tests are testing with an illegal system state where the runtime
permission is not granted but the appop state is MODE_ALLOWED. Since the
test is granted all permissions when installed we can just add those
permissions to the manifest.

Test: AppOpsStartedWatcherTest
Bug: 266164193
Change-Id: I9dee3f8caa1df7072f116282615a1bc869106046
parent e61f3fb0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -111,6 +111,8 @@
    <uses-permission android:name="android.permission.USE_BIOMETRIC_INTERNAL" />
    <uses-permission android:name="android.permission.MANAGE_MEDIA_PROJECTION" />
    <uses-permission android:name="android.permission.MANAGE_ROLE_HOLDERS" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.CAMERA" />

    <queries>
        <package android:name="com.android.servicestests.apps.suspendtestapp" />
+0 −1
Original line number Diff line number Diff line
@@ -67,7 +67,6 @@ public class AppOpsStartedWatcherTest {
        // Start some ops
        appOpsManager.startOp(AppOpsManager.OP_FINE_LOCATION);
        appOpsManager.startOp(AppOpsManager.OP_CAMERA);
        appOpsManager.startOp(AppOpsManager.OP_RECORD_AUDIO);

        // Verify that we got called for the ops being started
        final InOrder inOrder = inOrder(listener);