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

Commit e8aff329 authored by Manjeet Rulhania's avatar Manjeet Rulhania Committed by Android (Google) Code Review
Browse files

Merge "Add noteop command to note app ops from adb" into main

parents dfd9bc25 365fe0ce
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -5543,6 +5543,20 @@ public class AppOpsService extends IAppOpsService.Stub {
                    }
                    return 0;
                }
                case "note": {
                    int res = shell.parseUserPackageOp(true, err);
                    if (res < 0) {
                        return res;
                    }
                    if (shell.packageName != null) {
                        shell.mInterface.noteOperation(shell.op, shell.packageUid,
                                shell.packageName, shell.attributionTag, true,
                                "appops note shell command", true);
                    } else {
                        return -1;
                    }
                    return 0;
                }
                case "start": {
                    int res = shell.parseUserPackageOp(true, err);
                    if (res < 0) {