Merge "Remove the DMAgent whitelisting" into nyc-mr1-dev

This commit is contained in:
Makoto Onuki
2016-07-18 17:50:17 +00:00
committed by Android (Google) Code Review

View 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();