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

Commit 4d349895 authored by Ilyas Sung's avatar Ilyas Sung
Browse files

Added DevicePolicyEventLogger for method Set_Application_Exemptions

Bug: 246330879
Test: atest ApplicationExemptionsTest
Change-Id: I868d54d0f642b9b8f68e8a547ef1da110d48f0d9
parent 4f69147f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -18137,6 +18137,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