Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a84a4af9 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android (Google) Code Review
Browse files

Merge "Fix adb install" into jb-mr1-dev

parents 63dc027b 2b914652
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -729,7 +729,7 @@ public class ActiveServices {
                ServiceInfo sInfo =
                    rInfo != null ? rInfo.serviceInfo : null;
                if (sInfo == null) {
                    Slog.w(TAG, "Unable to start service " + service +
                    Slog.w(TAG, "Unable to start service " + service + " U=" + userId +
                          ": not found");
                    return null;
                }
+7 −1
Original line number Diff line number Diff line
@@ -473,6 +473,9 @@ public class PackageManagerService extends IPackageManager.Stub {
            mContainerServiceUserId = 0;
            if (mPendingInstalls.size() > 0) {
                mContainerServiceUserId = mPendingInstalls.get(0).getUser().getIdentifier();
                if (mContainerServiceUserId == UserHandle.USER_ALL) {
                    mContainerServiceUserId = 0;
                }
            }
            if (mContext.bindService(service, mDefContainerConn,
                    Context.BIND_AUTO_CREATE, mContainerServiceUserId)) {
@@ -554,7 +557,10 @@ public class PackageManagerService extends IPackageManager.Stub {
                        if (params != null) {
                            // Check if we're connected to the correct service, if it's an install
                            // request.
                            if (params.getUser().getIdentifier() != mContainerServiceUserId) {
                            final int installFor = params.getUser().getIdentifier();
                            if (installFor != mContainerServiceUserId
                                    && (installFor == UserHandle.USER_ALL
                                            && mContainerServiceUserId != 0)) {
                                mHandler.sendEmptyMessage(MCS_RECONNECT);
                                return;
                            }