diff options
Diffstat (limited to 'core/java/android/os/Process.java')
| -rw-r--r-- | core/java/android/os/Process.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java index 7654e9b6ee22..a932d01946e3 100644 --- a/core/java/android/os/Process.java +++ b/core/java/android/os/Process.java @@ -574,6 +574,14 @@ public class Process { } /** + * Returns whether the given uid belongs to a system core component or not. + * @hide + */ + public static boolean isCoreUid(int uid) { + return UserHandle.isCore(uid); + } + + /** * Returns whether the given uid belongs to an application. * @param uid A kernel uid. * @return Whether the uid corresponds to an application sandbox running in |
