Merge "Hide setPolicyDataEnabled" into rvc-dev
diff --git a/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java b/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java
index de40198..476166eb 100644
--- a/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java
+++ b/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java
@@ -2483,28 +2483,6 @@
     }
 
     @Test
-    public void testSetPolicyDataEnabled() {
-        if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) {
-            return;
-        }
-        // test without permission: verify SecurityException
-        try {
-            mTelephonyManager.setPolicyDataEnabled(true);
-            fail("testSetPolicyDataEnabled: SecurityException expected");
-        } catch (SecurityException se) {
-            // expected
-        }
-        // test with permission
-        try {
-            ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(
-                    mTelephonyManager,
-                    (tm) -> tm.setPolicyDataEnabled(true));
-        } catch (SecurityException se) {
-            fail("testSetPolicyDataEnabled: SecurityException not expected");
-        }
-    }
-
-    @Test
     public void testSetAllowedNetworkTypes() {
         if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) {
             return;