Merge "Add UserHandle.getAppId to SystemApi"
This commit is contained in:
@@ -4305,6 +4305,7 @@ package android.os {
|
||||
}
|
||||
|
||||
public final class UserHandle implements android.os.Parcelable {
|
||||
method public static int getAppId(int);
|
||||
method public int getIdentifier();
|
||||
method @Deprecated public boolean isOwner();
|
||||
method public boolean isSystem();
|
||||
|
||||
@@ -226,6 +226,7 @@ public final class UserHandle implements Parcelable {
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
@SystemApi
|
||||
public static @AppIdInt int getAppId(int uid) {
|
||||
return uid % PER_USER_RANGE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user