Fix logic in disabling BackupTransport in DO mode. am: bbaadc0166
am: cfaef4287d
Change-Id: I171072819fb93c671a30c7576c1150673a38c617
This commit is contained in:
@@ -8989,8 +8989,10 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
|||||||
if (!isDeviceOwnerManagedSingleUserDevice()) {
|
if (!isDeviceOwnerManagedSingleUserDevice()) {
|
||||||
mInjector.securityLogSetLoggingEnabledProperty(false);
|
mInjector.securityLogSetLoggingEnabledProperty(false);
|
||||||
Slog.w(LOG_TAG, "Security logging turned off as it's no longer a single user device.");
|
Slog.w(LOG_TAG, "Security logging turned off as it's no longer a single user device.");
|
||||||
setBackupServiceEnabledInternal(false);
|
if (mOwners.hasDeviceOwner()) {
|
||||||
Slog.w(LOG_TAG, "Backup is off as it's a managed device that has more that one user.");
|
setBackupServiceEnabledInternal(false);
|
||||||
|
Slog.w(LOG_TAG, "Backup is off as it's a managed device that has more that one user.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user