diff options
author | Jeff Sharkey <jsharkey@google.com> | 2015-11-05 20:30:12 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-11-05 20:30:12 +0000 |
commit | 73d60ff36fbf656d022c2d4f35b8e9f2d25e795f (patch) | |
tree | cd1918c4bdf60c2acfb8e0838ff3688ea0f4a94f /services | |
parent | d829ab76831a0c323f669385c54f666f8a91e4f1 (diff) | |
parent | 2de7e39ffa387b370e5997542811fd05a73cb8fc (diff) | |
download | frameworks_base-73d60ff36fbf656d022c2d4f35b8e9f2d25e795f.zip frameworks_base-73d60ff36fbf656d022c2d4f35b8e9f2d25e795f.tar.gz frameworks_base-73d60ff36fbf656d022c2d4f35b8e9f2d25e795f.tar.bz2 |
Merge "Kick movement preconditions onto handler thread." into mnc-dr-dev am: e10faaa410
am: 2de7e39ffa
* commit '2de7e39ffa387b370e5997542811fd05a73cb8fc':
Kick movement preconditions onto handler thread.
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/pm/PackageManagerService.java | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java index 4e49312..c1d091b 100644 --- a/services/core/java/com/android/server/pm/PackageManagerService.java +++ b/services/core/java/com/android/server/pm/PackageManagerService.java @@ -15986,13 +15986,18 @@ public class PackageManagerService extends IPackageManager.Stub { mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MOVE_PACKAGE, null); final int moveId = mNextMoveId.getAndIncrement(); - try { - movePackageInternal(packageName, volumeUuid, moveId); - } catch (PackageManagerException e) { - Slog.w(TAG, "Failed to move " + packageName, e); - mMoveCallbacks.notifyStatusChanged(moveId, - PackageManager.MOVE_FAILED_INTERNAL_ERROR); - } + mHandler.post(new Runnable() { + @Override + public void run() { + try { + movePackageInternal(packageName, volumeUuid, moveId); + } catch (PackageManagerException e) { + Slog.w(TAG, "Failed to move " + packageName, e); + mMoveCallbacks.notifyStatusChanged(moveId, + PackageManager.MOVE_FAILED_INTERNAL_ERROR); + } + } + }); return moveId; } |