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