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

Commit 4a52e380 authored by Alex Johnston's avatar Alex Johnston Committed by Android (Google) Code Review
Browse files

Merge "Added DevicePolicyEventLogger for method Set_Application_Exemptions"

parents 259b03e7 4d349895
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -18308,6 +18308,15 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
                }
            });
        }
        String[] appOpExemptions = new String[exemptions.length];
        for (int i = 0; i < exemptions.length; i++) {
            appOpExemptions[i] = APPLICATION_EXEMPTION_CONSTANTS_TO_APP_OPS.get(exemptions[i]);
        }
        DevicePolicyEventLogger
            .createEvent(DevicePolicyEnums.SET_APPLICATION_EXEMPTIONS)
            .setAdmin(caller.getPackageName())
            .setStrings(packageName, appOpExemptions)
            .write();
    }
    @Override