Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84ba6b0f authored by Vladislav Kuzkokov's avatar Vladislav Kuzkokov Committed by android-build-merger
Browse files

Fix logic in disabling BackupTransport in DO mode. am: bbaadc01 am: cfaef428

am: da82fa0a

Change-Id: Ib2215eda1c95b6e04429ca30011bb84789bb9b6e
parents 2911901a da82fa0a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -9064,10 +9064,12 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
        if (!isDeviceOwnerManagedSingleUserDevice()) {
            mInjector.securityLogSetLoggingEnabledProperty(false);
            Slog.w(LOG_TAG, "Security logging turned off as it's no longer a single user device.");
            if (mOwners.hasDeviceOwner()) {
                setBackupServiceEnabledInternal(false);
                Slog.w(LOG_TAG, "Backup is off as it's a managed device that has more that one user.");
            }
        }
    }

    @Override
    public void setSecurityLoggingEnabled(ComponentName admin, boolean enabled) {