From 6a9b2cb7feb96fe17878089cf48e0e27e3ff531d Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Mon, 17 Sep 2012 14:02:39 -0700 Subject: Use shared app gid for dalvik cache For forward-locked apps, we need to be able to read the optimized dex file from a common place. Make it owned by the shared app GID as well. Bug: 7178231 Change-Id: Ib36d79e8df69d58e8e1e0f167659df995dc84b84 --- services/java/com/android/server/pm/PackageManagerService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'services/java') diff --git a/services/java/com/android/server/pm/PackageManagerService.java b/services/java/com/android/server/pm/PackageManagerService.java index ce52d2b..536c612 100644 --- a/services/java/com/android/server/pm/PackageManagerService.java +++ b/services/java/com/android/server/pm/PackageManagerService.java @@ -3535,8 +3535,8 @@ public class PackageManagerService extends IPackageManager.Stub { return DEX_OPT_DEFERRED; } else { Log.i(TAG, "Running dexopt on: " + pkg.applicationInfo.packageName); - ret = mInstaller.dexopt(path, pkg.applicationInfo.uid, - !isForwardLocked(pkg)); + final int sharedGid = UserHandle.getSharedAppGid(pkg.applicationInfo.uid); + ret = mInstaller.dexopt(path, sharedGid, !isForwardLocked(pkg)); pkg.mDidDexOpt = true; performed = true; } -- cgit v1.1