Merge "Logging of setting ro.device_owner property" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
44aca78d45
@@ -1664,12 +1664,14 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
|||||||
} else {
|
} else {
|
||||||
if (mOwners.hasDeviceOwner()) {
|
if (mOwners.hasDeviceOwner()) {
|
||||||
mInjector.systemPropertiesSet(PROPERTY_DEVICE_OWNER_PRESENT, "true");
|
mInjector.systemPropertiesSet(PROPERTY_DEVICE_OWNER_PRESENT, "true");
|
||||||
|
Slog.i(LOG_TAG, "Set ro.device_owner property to true");
|
||||||
disableDeviceLoggingIfNotCompliant();
|
disableDeviceLoggingIfNotCompliant();
|
||||||
if (mInjector.securityLogGetLoggingEnabledProperty()) {
|
if (mInjector.securityLogGetLoggingEnabledProperty()) {
|
||||||
mSecurityLogMonitor.start();
|
mSecurityLogMonitor.start();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
mInjector.systemPropertiesSet(PROPERTY_DEVICE_OWNER_PRESENT, "false");
|
mInjector.systemPropertiesSet(PROPERTY_DEVICE_OWNER_PRESENT, "false");
|
||||||
|
Slog.i(LOG_TAG, "Set ro.device_owner property to false");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user