Java android.app AppOpsManager fields, constructors, methods, implement or subclass

Example usage for Java android.app AppOpsManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.app AppOpsManager.

The text is from its open source code.

Field

intMODE_ALLOWED
Result from #checkOp , #noteOp , #startOp : the given caller is allowed to perform the given operation.
StringOPSTR_GET_USAGE_STATS
Access to android.app.usage.UsageStatsManager .
StringOPSTR_MOCK_LOCATION
Inject mock location into the system.
StringOPSTR_SYSTEM_ALERT_WINDOW
Required to draw on top of other apps.

Method

intcheckOp(String op, int uid, String packageName)
Do a quick check for whether an application might be able to perform an operation.
intcheckOp(int op, int uid, String packageName)
Do a quick check for whether an application might be able to perform an operation.
intcheckOpNoThrow(String op, int uid, String packageName)
Like #checkOp but instead of throwing a SecurityException it returns #MODE_ERRORED .
intcheckOpNoThrow(int op, int uid, String packageName)
Like #checkOp but instead of throwing a SecurityException it returns #MODE_ERRORED .
voidcheckPackage(int uid, String packageName)
Do a quick check to validate if a package name belongs to a UID.
ClassgetClass()
Returns the runtime class of this Object .
voidresetAllModes()