Example usage for Java android.app AppOpsManager fields, constructors, methods, implement or subclass
The text is from its open source code.
int | MODE_ALLOWED Result from #checkOp , #noteOp , #startOp : the given caller is allowed to perform the given operation. |
String | OPSTR_GET_USAGE_STATS Access to android.app.usage.UsageStatsManager . |
String | OPSTR_MOCK_LOCATION Inject mock location into the system. |
String | OPSTR_SYSTEM_ALERT_WINDOW Required to draw on top of other apps. |
int | checkOp(String op, int uid, String packageName) Do a quick check for whether an application might be able to perform an operation. |
int | checkOp(int op, int uid, String packageName) Do a quick check for whether an application might be able to perform an operation. |
int | checkOpNoThrow(String op, int uid, String packageName) Like #checkOp but instead of throwing a SecurityException it returns #MODE_ERRORED . |
int | checkOpNoThrow(int op, int uid, String packageName) Like #checkOp but instead of throwing a SecurityException it returns #MODE_ERRORED . |
void | checkPackage(int uid, String packageName) Do a quick check to validate if a package name belongs to a UID. |
Class> | getClass() Returns the runtime class of this Object . |
void | resetAllModes() |