OSDN Git Service

Remove the DMAgent whitelisting
authorMakoto Onuki <omakoto@google.com>
Fri, 15 Jul 2016 23:31:15 +0000 (16:31 -0700)
committerMakoto Onuki <omakoto@google.com>
Fri, 15 Jul 2016 23:31:15 +0000 (16:31 -0700)
Bug 30075554

Change-Id: Ib089353ff9f58eb175a7b5d9addfb371655afc6b

services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java

index 2120be1..159ec4c 100644 (file)
@@ -5111,10 +5111,6 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
         boolean legacyApp = false;
         if (ai.targetSdkVersion <= Build.VERSION_CODES.M) {
             legacyApp = true;
-        } else if ("com.google.android.apps.enterprise.dmagent".equals(ai.packageName)
-                && ai.versionCode == 697) {
-            // TODO: STOPSHIP remove this (revert ag/895987) once a new prebuilt is dropped
-            legacyApp = true;
         }
 
         final int rawStatus = getEncryptionStatus();