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

Commit 365fe0ce authored by mrulhania's avatar mrulhania Committed by Manjeet Rulhania
Browse files

Add noteop command to note app ops from adb

Bug: 334705493
Test: manual
Change-Id: I103cd5eac7f33c96bf3e134b615e7acf674378c1
parent e25101a2
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) {