commit | 73b558d9b57307ad6c44cd651fc720efb42d2cd9 | [log] [tgz] |
---|---|---|
author | Sahana Rao <sahanas@google.com> | Mon Jul 06 20:24:09 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Jul 06 20:24:09 2020 +0000 |
tree | 3710fde1649494c49adf137fadb840b718ceb415 | |
parent | d26299f507ae124c2fe2623bb3a78c6e63f56add [diff] | |
parent | 429cdf1021175676c817b64b2c9c248c5526d2e9 [diff] |
DO NOT MERGE Remove failing tests am: 429cdf1021 Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/12085407 Change-Id: Ic25e3bae060400eb620311cf1921f356adc6145b
diff --git a/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/MediaStorageTest.java b/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/MediaStorageTest.java index 7ff47f7..e3545b9 100644 --- a/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/MediaStorageTest.java +++ b/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/MediaStorageTest.java
@@ -211,18 +211,6 @@ fail("Expected write access to be blocked"); } catch (SecurityException | FileNotFoundException expected) { } - - // Verify that we can't grant ourselves access - for (int flag : new int[] { - Intent.FLAG_GRANT_READ_URI_PERMISSION, - Intent.FLAG_GRANT_WRITE_URI_PERMISSION - }) { - try { - mContext.grantUriPermission(mContext.getPackageName(), blue, flag); - fail("Expected granting to be blocked for flag 0x" + Integer.toHexString(flag)); - } catch (SecurityException expected) { - } - } } @Test