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

Commit b992f8cc authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Handle ALL_OPs case in ModeCallBack.toString

Fixes: 149543615
Test: dumpsys appops
Change-Id: I461dd65231a9fbc29dd033d08cc5082ae1c2e92b
parent 47f42fed
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -1236,9 +1236,16 @@ public class AppOpsService extends IAppOpsService.Stub {
            UserHandle.formatUid(sb, mWatchingUid);
            sb.append(" flags=0x");
            sb.append(Integer.toHexString(mFlags));
            if (mWatchedOpCode != OP_NONE) {
            switch (mWatchedOpCode) {
                case OP_NONE:
                    break;
                case ALL_OPS:
                    sb.append(" op=(all)");
                    break;
                default:
                    sb.append(" op=");
                    sb.append(opToName(mWatchedOpCode));
                    break;
            }
            sb.append(" from uid=");
            UserHandle.formatUid(sb, mCallingUid);