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

Commit dedc8f18 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use DevicePolicyManager#isSecurityLoggingEnabled"

parents 849d38b5 296f7c4f
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ package com.android.settings.enterprise;
import android.annotation.NonNull;
import android.app.admin.DevicePolicyManager;
import android.content.ComponentName;
import android.os.SystemProperties;
import android.os.UserHandle;
import android.support.annotation.Nullable;

@@ -70,9 +69,7 @@ public class DevicePolicyManagerWrapperImpl implements DevicePolicyManagerWrappe

    @Override
    public boolean isSecurityLoggingEnabled(@Nullable ComponentName admin) {
        // TODO(b/36584321): Switch to DevicePolicyManager#isSecurityLoggingEnabled once that is
        // callable by the system.
        return SystemProperties.getBoolean("persist.logd.security", false);
        return mDpm.isSecurityLoggingEnabled(admin);
    }

    @Override