summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2012-09-17 15:29:38 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-17 15:29:38 -0700
commit4215017c12a4d522e20a6164ff33e8ca7da3a3bd (patch)
tree016dca8b80e9de0dd756566eb4d3e22693daff3b /services/java
parentd6991106b02760749b974a2e369f72b2e0eed5a0 (diff)
parent6a9b2cb7feb96fe17878089cf48e0e27e3ff531d (diff)
downloadframeworks_base-4215017c12a4d522e20a6164ff33e8ca7da3a3bd.zip
frameworks_base-4215017c12a4d522e20a6164ff33e8ca7da3a3bd.tar.gz
frameworks_base-4215017c12a4d522e20a6164ff33e8ca7da3a3bd.tar.bz2
Merge "Use shared app gid for dalvik cache" into jb-mr1-dev
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/pm/PackageManagerService.java4
1 files changed, 2 insertions, 2 deletions
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;
}