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

Commit 5baa9cab authored by Pavel Grafov's avatar Pavel Grafov
Browse files

Fix: allow turning audit log off.

Bug: 295324350
Test: atest CtsDevicePolicyTestCases:SecurityLoggingTest
Change-Id: I8bb1028a79b61e7c0c936841ed91e08cdbbea975
parent ed7f177a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -14071,7 +14071,7 @@ public class DevicePolicyManager {
    public void setAuditLogEnabled(boolean enabled) {
    public void setAuditLogEnabled(boolean enabled) {
        throwIfParentInstance("setAuditLogEnabled");
        throwIfParentInstance("setAuditLogEnabled");
        try {
        try {
            mService.setAuditLogEnabled(mContext.getPackageName(), true);
            mService.setAuditLogEnabled(mContext.getPackageName(), enabled);
        } catch (RemoteException re) {
        } catch (RemoteException re) {
            re.rethrowFromSystemServer();
            re.rethrowFromSystemServer();
        }
        }