belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
AppOpsManagerCompat
public
final
class
AppOpsManagerCompat
extends Object
java.lang.Object | |
↳ | android.support.v4.app.AppOpsManagerCompat |
Helper for accessing features in AppOpsManager
.
Summary
Constants | |
---|---|
int |
MODE_ALLOWED
Result from |
int |
MODE_DEFAULT
Result from |
int |
MODE_ERRORED
Result from |
int |
MODE_IGNORED
Result from |
Public methods | |
---|---|
static
int
|
noteOp(Context context, String op, int uid, String packageName)
Make note of an application performing an operation. |
static
int
|
noteOpNoThrow(Context context, String op, int uid, String packageName)
Like |
static
int
|
noteProxyOp(Context context, String op, String proxiedPackageName)
Make note of an application performing an operation on behalf of another application when handling an IPC. |
static
int
|
noteProxyOpNoThrow(Context context, String op, String proxiedPackageName)
Like |
static
String
|
permissionToOp(String permission)
Gets the app op name associated with a given permission. |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Constants
MODE_ALLOWED
int MODE_ALLOWED
Result from noteOp(Context, String, int, String)
: the given caller is allowed to
perform the given operation.
Constant Value: 0 (0x00000000)
MODE_DEFAULT
int MODE_DEFAULT
Result from noteOp(Context, String, int, String)
: the given caller should use its default
security check. This mode is not normally used; it should only be used
with appop permissions, and callers must explicitly check for it and
deal with it.
Constant Value: 3 (0x00000003)