Skip to content

Commit 4076bc5

Browse files
author
Amith Yamasani
committed
Fix service binding for singleUser services
Bug: 7137147 No need to try to retrieve the service again as user 0. Change-Id: I910aca3fae91dc709ef2265ed0fce09f46f5b769
1 parent 4be2975 commit 4076bc5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

services/java/com/android/server/am/ActiveServices.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -478,12 +478,6 @@ int bindServiceLocked(IApplicationThread caller, IBinder token,
478478
if (res.record == null) {
479479
return -1;
480480
}
481-
if (mAm.isSingleton(res.record.processName, res.record.appInfo,
482-
res.record.serviceInfo.name, res.record.serviceInfo.flags)) {
483-
userId = 0;
484-
res = retrieveServiceLocked(service, resolvedType, Binder.getCallingPid(),
485-
Binder.getCallingUid(), 0, true);
486-
}
487481
ServiceRecord s = res.record;
488482

489483
final long origId = Binder.clearCallingIdentity();

0 commit comments

Comments
 (0)