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

Commit ce1b92a3 authored by arangelov's avatar arangelov
Browse files

Add SET_GLOBAL_SETTING logs in DPMS.

Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testSetGlobalSettingLogged
Fixes: 135267796
Fixes: 138919132
Fixes: 138097434
Change-Id: I353f2cc4c4b0ac7d6ae1f5a2c7976e798afd263c
parent 19419ccc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -10846,6 +10846,12 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
    public void setGlobalSetting(ComponentName who, String setting, String value) {
        Preconditions.checkNotNull(who, "ComponentName is null");
        DevicePolicyEventLogger
                .createEvent(DevicePolicyEnums.SET_GLOBAL_SETTING)
                .setAdmin(who)
                .setStrings(setting, value)
                .write();
        synchronized (getLockObject()) {
            getActiveAdminForCallerLocked(who, DeviceAdminInfo.USES_POLICY_DEVICE_OWNER);