diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2018-01-24 05:47:30 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-01-24 05:47:30 +0000 |
| commit | a937c5b7ed1469561de8eb565e054c871ad2e60d (patch) | |
| tree | 423bb75ad36981c6aeaec2bfa3211bd25c8e2a87 /core/java/android/os/Process.java | |
| parent | 39937d4b8d396ea7e3b658bf7d99f1b12f8a868b (diff) | |
| parent | 9cc471ce76539ea24dc258d08778fa88e3eeaaae (diff) | |
Merge "Fix wrong use if "!UserHandle.isApp()""
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 76838807acc5..6833908b5c1f 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 |
