commit | 75a449737cd13a97f8ddb70ce8d4aae021a8885b | [log] [tgz] |
---|---|---|
author | Diksha Gohlyan <dikshag@google.com> | Wed Jun 24 16:07:58 2020 -0700 |
committer | Diksha Gohlyan <dikshag@google.com> | Fri Jun 26 18:12:47 2020 +0000 |
tree | 1935f83cc1865d394f9707ec2e2cfe6d2637233c | |
parent | 56c7c2b28d22e22e11cccaebd9257c0e9d23a906 [diff] |
Add package name to handle root intent. FilesByGoogle was recently shipped with handling the same intent. In the tests we would explicitly wants DocumentsUI to handle the intent Test: android.appsecurity.cts.DocumentsTest#testOpenRootWithoutRootIdAtInitialLocation Bug: 159733860 Change-Id: Ia664a674fe1ee33e14939d6d60ea4bce1d0593db
diff --git a/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java b/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java index 40d8ff4..03746fe 100644 --- a/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java +++ b/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
@@ -713,6 +713,7 @@ final Uri rootsUri = DocumentsContract.buildRootsUri(PROVIDER_PACKAGE); final Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setPackage(getDocumentsUiPackageId()); intent.setDataAndType(rootsUri, "vnd.android.document/root"); mActivity.startActivity(intent); mDevice.waitForIdle();