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

Commit 31d83ae5 authored by Svet Ganov's avatar Svet Ganov Committed by Svetoslav Ganov
Browse files

Don't throw but wtf to help chase mismatched start/finish op calls

Bug: 74681706

Test: manual

Change-Id: I4661d46f953ad6dc6f11eccc5b3824bf51899374
parent bf190fd9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1346,8 +1346,9 @@ public class AppOpsService extends IAppOpsService.Stub {
                return;
            }
            if (!client.mStartedOps.remove(op)) {
                throw new IllegalStateException("Operation not started: uid" + op.uid
                Slog.wtf(TAG, "Operation not started: uid" + op.uid
                        + " pkg=" + op.packageName + " op=" + op.op);
                return;
            }
            finishOperationLocked(op, /*finishNested*/ false);
            if (op.nesting <= 0) {