Move startWatchingModeWithFlags to the native supported binder calls

Bug: 247768581
Test: Add logging to verify invocation
Change-Id: I54eefca5f0aa4f924debc1817b04a103b6e8e2e6
This commit is contained in:
Evan Severson
2023-04-04 14:49:26 -07:00
parent 1e9f6dc40e
commit b1f82ee374

View File

@@ -52,6 +52,8 @@ interface IAppOpsService {
int checkAudioOperation(int code, int usage, int uid, String packageName);
boolean shouldCollectNotes(int opCode);
void setCameraAudioRestriction(int mode);
void startWatchingModeWithFlags(int op, String packageName, int flags,
IAppOpsCallback callback);
// End of methods also called by native code.
// Any new method exposed to native must be added after the last one, do not reorder
@@ -110,8 +112,6 @@ interface IAppOpsService {
void startWatchingStarted(in int[] ops, IAppOpsStartedCallback callback);
void stopWatchingStarted(IAppOpsStartedCallback callback);
void startWatchingModeWithFlags(int op, String packageName, int flags, IAppOpsCallback callback);
void startWatchingNoted(in int[] ops, IAppOpsNotedCallback callback);
void stopWatchingNoted(IAppOpsNotedCallback callback);