Merge "Fix service binding for singleUser services" into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5efc533be6
@@ -478,12 +478,6 @@ public class ActiveServices {
|
|||||||
if (res.record == null) {
|
if (res.record == null) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (mAm.isSingleton(res.record.processName, res.record.appInfo,
|
|
||||||
res.record.serviceInfo.name, res.record.serviceInfo.flags)) {
|
|
||||||
userId = 0;
|
|
||||||
res = retrieveServiceLocked(service, resolvedType, Binder.getCallingPid(),
|
|
||||||
Binder.getCallingUid(), 0, true);
|
|
||||||
}
|
|
||||||
ServiceRecord s = res.record;
|
ServiceRecord s = res.record;
|
||||||
|
|
||||||
final long origId = Binder.clearCallingIdentity();
|
final long origId = Binder.clearCallingIdentity();
|
||||||
|
|||||||
Reference in New Issue
Block a user