Summary:
Methods
| Inherited Methods
ProcessCompat
public
final
class
ProcessCompat
extends Object
| java.lang.Object | |
| ↳ | androidx.core.os.ProcessCompat |
Helper for accessing features in Process.
Summary
Public methods | |
|---|---|
static
boolean
|
isApplicationUid(int uid)
Returns whether the given |
Inherited methods | |
|---|---|
Public methods
isApplicationUid
public static boolean isApplicationUid (int uid)
Returns whether the given uid belongs to an application.
Compatibility behavior:
- SDK 24 and above, this method matches platform behavior.
- SDK 16 through 23, this method is a best-effort to match platform behavior, but may
default to returning
trueif an accurate result is not available. - SDK 15 and below, this method always returns
trueas application UIDs and isolated processes did not exist yet.
| Parameters | |
|---|---|
uid |
int: a kernel uid |
| Returns | |
|---|---|
boolean |
true if the uid corresponds to an application sandbox running in a
specific user, false if the uid corresponds to an isolated user ID process or
does not otherwise correspond to an application user ID, or a value based on
platform-specific fallback behavior
|