Remove silent provisioning hack from DPMS
Fixes: 178187130 Test: atest android.devicepolicy.cts.DevicePolicyManagerTest Change-Id: I18f23a7bf3686ed17f5aab479ed461d857d8a63c
This commit is contained in:
@@ -16866,18 +16866,13 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
|
||||
|
||||
final long identity = Binder.clearCallingIdentity();
|
||||
try {
|
||||
// TODO(b/178187130): This check fails silent provisioning, uncomment once silent
|
||||
// provisioning is no longer used.
|
||||
if (false) {
|
||||
int result = checkProvisioningPreConditionSkipPermission(
|
||||
ACTION_PROVISION_MANAGED_DEVICE, deviceAdmin.getPackageName());
|
||||
if (result != CODE_OK) {
|
||||
throw new ServiceSpecificException(
|
||||
PROVISIONING_RESULT_PRE_CONDITION_FAILED,
|
||||
"Provisioning preconditions failed with result: " + result);
|
||||
}
|
||||
int result = checkProvisioningPreConditionSkipPermission(
|
||||
ACTION_PROVISION_MANAGED_DEVICE, deviceAdmin.getPackageName());
|
||||
if (result != CODE_OK) {
|
||||
throw new ServiceSpecificException(
|
||||
PROVISIONING_RESULT_PRE_CONDITION_FAILED,
|
||||
"Provisioning preconditions failed with result: " + result);
|
||||
}
|
||||
|
||||
setTimeAndTimezone(provisioningParams.getTimeZone(), provisioningParams.getLocalTime());
|
||||
setLocale(provisioningParams.getLocale());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user