diff options
author | Dianne Hackborn <hackbod@google.com> | 2013-10-25 22:30:35 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-10-25 22:30:35 +0000 |
commit | 19d79659ee4c0e85775422ccbed3fa14c82fa66b (patch) | |
tree | b64e9c446f1ab03cb2a8ae98214d7d27ec80dcb2 /services/java/com/android/server/am | |
parent | c802a6614095660bccfd0cdf4f15404ad1863b76 (diff) | |
parent | de0e83bc39b5585e700f6d3fa0adbc6fea10ae6d (diff) | |
download | frameworks_base-19d79659ee4c0e85775422ccbed3fa14c82fa66b.zip frameworks_base-19d79659ee4c0e85775422ccbed3fa14c82fa66b.tar.gz frameworks_base-19d79659ee4c0e85775422ccbed3fa14c82fa66b.tar.bz2 |
Merge "Fix issue #11374840: adb shell am startservice not working any more" into klp-dev
Diffstat (limited to 'services/java/com/android/server/am')
-rw-r--r-- | services/java/com/android/server/am/ActivityManagerService.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java index 8b7fd8e..ab9d9bd 100644 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java @@ -12367,7 +12367,6 @@ public final class ActivityManagerService extends ActivityManagerNative synchronized(this) { final int callingPid = Binder.getCallingPid(); final int callingUid = Binder.getCallingUid(); - checkValidCaller(callingUid, userId); final long origId = Binder.clearCallingIdentity(); ComponentName res = mServices.startServiceLocked(caller, service, resolvedType, callingPid, callingUid, userId); @@ -12397,8 +12396,6 @@ public final class ActivityManagerService extends ActivityManagerNative throw new IllegalArgumentException("File descriptors passed in Intent"); } - checkValidCaller(Binder.getCallingUid(), userId); - synchronized(this) { return mServices.stopServiceLocked(caller, service, resolvedType, userId); } @@ -16389,13 +16386,6 @@ public final class ActivityManagerService extends ActivityManagerNative return mUserManager; } - private void checkValidCaller(int uid, int userId) { - if (UserHandle.getUserId(uid) == userId || uid == Process.SYSTEM_UID || uid == 0) return; - - throw new SecurityException("Caller uid=" + uid - + " is not privileged to communicate with user=" + userId); - } - private int applyUserId(int uid, int userId) { return UserHandle.getUid(userId, uid); } |