Stay organized with collections
Save and categorize content based on your preferences.
public final class ProcessCompat
Helper for accessing features in Process.
Summary
Public methods |
static boolean |
Returns whether the given uid belongs to an application.
|
Public methods
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 23 and earlier, this method is a best-effort to match platform behavior, but may default to returning
true if an accurate result is not available.
| Parameters |
int uid |
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
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[]]