Add READ_CONTACTS permission to NoManSerTest shell

Test: atest SystemUITests
Fixes: 149740458
Change-Id: I1ed768ee07dd13bdf6a8b1c8564618606b856ee8
This commit is contained in:
Beverly
2020-02-18 17:40:57 -05:00
committed by Beverly Tai
parent 46d77cf71c
commit 24d103b16a

View File

@@ -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);