Java Code Examples for android.os.Process#LAST_APPLICATION_UID
The following examples show how to use
android.os.Process#LAST_APPLICATION_UID .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VUserHandle.java From container with GNU General Public License v3.0 | 5 votes |
/** @hide */ public static boolean isApp(int uid) { if (uid > 0) { final int appId = getAppId(uid); return appId >= Process.FIRST_APPLICATION_UID && appId <= Process.LAST_APPLICATION_UID; } else { return false; } }
Example 2
Source File: Utils.java From Ezalor with Apache License 2.0 | 4 votes |
public static boolean isAppProcess() { int uid = Process.myUid(); return uid >= Process.FIRST_APPLICATION_UID && uid <= Process.LAST_APPLICATION_UID; }
Example 3
Source File: PrivacyManager.java From XPrivacy with GNU General Public License v3.0 | 4 votes |
public static boolean isApplication(int uid) { uid = Util.getAppId(uid); return (uid >= Process.FIRST_APPLICATION_UID && uid <= Process.LAST_APPLICATION_UID); }