Merge "Ignore testRestrictedNetworkPermission on Q"

This commit is contained in:
Treehugger Robot
2021-10-13 07:01:33 +00:00
committed by Gerrit Code Review

View File

@@ -1797,6 +1797,7 @@ public class ConnectivityManagerTest {
*/ */
@AppModeFull(reason = "Cannot get WifiManager in instant app mode") @AppModeFull(reason = "Cannot get WifiManager in instant app mode")
@Test @Test
@IgnoreUpTo(Build.VERSION_CODES.Q)
public void testRestrictedNetworkPermission() throws Exception { public void testRestrictedNetworkPermission() throws Exception {
// Ensure that CONNECTIVITY_USE_RESTRICTED_NETWORKS isn't granted to this package. // Ensure that CONNECTIVITY_USE_RESTRICTED_NETWORKS isn't granted to this package.
final PackageInfo app = mPackageManager.getPackageInfo(mContext.getPackageName(), final PackageInfo app = mPackageManager.getPackageInfo(mContext.getPackageName(),