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

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

Merge "Add READ_CONTACTS permission to NoManSerTest shell"

parents ceba4464 24d103b1
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -359,8 +359,12 @@ public class NotificationManagerServiceTest extends UiServiceTestCase {

    @Before
    public void setUp() throws Exception {
        // Shell permisssions will override permissions of our app, so add all necessary permissions
        // fo this test here:
        InstrumentationRegistry.getInstrumentation().getUiAutomation().adoptShellPermissionIdentity(
                "android.permission.WRITE_DEVICE_CONFIG", "android.permission.READ_DEVICE_CONFIG");
                "android.permission.WRITE_DEVICE_CONFIG",
                "android.permission.READ_DEVICE_CONFIG",
                "android.permission.READ_CONTACTS");

        MockitoAnnotations.initMocks(this);