Merge "Root (uid=0) should be core. Fix UserHandle.isCore()." into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f3faf62adc
@@ -158,7 +158,7 @@ public final class UserHandle implements Parcelable {
|
||||
* @hide
|
||||
*/
|
||||
public static boolean isCore(int uid) {
|
||||
if (uid > 0) {
|
||||
if (uid >= 0) {
|
||||
final int appId = getAppId(uid);
|
||||
return appId < Process.FIRST_APPLICATION_UID;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user