Revert "Whitelist for DebuggableTest#testNoDebuggable"
This reverts commit 43db7d1a686daf430452fc7295ff6c54d7d4489c.
This works in GB without the whitelist.
Change-Id: Iceda16a626b78d8f761293d70f0381ff6ed80378
diff --git a/tests/tests/permission/src/android/permission/cts/DebuggableTest.java b/tests/tests/permission/src/android/permission/cts/DebuggableTest.java
index 58751a5..fe4ed57 100644
--- a/tests/tests/permission/src/android/permission/cts/DebuggableTest.java
+++ b/tests/tests/permission/src/android/permission/cts/DebuggableTest.java
@@ -20,10 +20,7 @@
import android.content.pm.PackageManager;
import android.test.AndroidTestCase;
-import java.util.Arrays;
-import java.util.HashSet;
import java.util.List;
-import java.util.Set;
/**
* Verify that pre-installed packages don't have the debuggable
@@ -32,21 +29,14 @@
*/
public class DebuggableTest extends AndroidTestCase {
- // Remove whitelist in future release.
- private static final Set<String> WHITELISTED_APPS = new HashSet<String>(Arrays.asList(
- "com.google.android.apps.uploader"
- ));
-
public void testNoDebuggable() {
List<ApplicationInfo> apps = getContext()
.getPackageManager()
.getInstalledApplications(PackageManager.GET_UNINSTALLED_PACKAGES);
for (ApplicationInfo app : apps) {
String appName = app.packageName;
- if (!WHITELISTED_APPS.contains(appName)) {
- assertTrue("Package " + appName + " is marked as debuggable.",
- (app.flags & ApplicationInfo.FLAG_DEBUGGABLE) == 0);
- }
+ assertTrue("Package " + appName + " is marked as debuggable.",
+ (app.flags & ApplicationInfo.FLAG_DEBUGGABLE) == 0);
}
}
}