summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2015-06-10 18:03:24 -0700
committerClark Scheff <clark@cyngn.com>2015-10-27 18:20:06 -0700
commit6a12022505077f2c6cc06d89aa6214d1de1de978 (patch)
tree9d8485b5c3a556dac77f806184b55445c7dd8717 /services
parent97e8fb4586a9693dfcdc917fc136ce08492e6144 (diff)
downloadframeworks_base-6a12022505077f2c6cc06d89aa6214d1de1de978.zip
frameworks_base-6a12022505077f2c6cc06d89aa6214d1de1de978.tar.gz
frameworks_base-6a12022505077f2c6cc06d89aa6214d1de1de978.tar.bz2
Add File.separator to end of internalPath
When compiling theme resources, packages that start with the same internal path end up being processed by AAPT which can cause conflicts and not allow the theme to be installed. An example of this is a theme that overlays both com.google.android.gm and com.google.android.gms. When the overlay for com.google.android.gm is being processed, resources from com.google.android.gms are also included. This is easily resolved by appending a file separator to the end of internalPath. Change-Id: I98f7e0fd65c54bdd854df1539e815ad76cfa44ae
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/pm/PackageManagerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
index 55ee716..1247c07 100644
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
@@ -8190,7 +8190,7 @@ public class PackageManagerService extends IPackageManager.Stub {
private void compileResourcesWithAapt(String target, PackageParser.Package pkg)
throws Exception {
- String internalPath = APK_PATH_TO_OVERLAY + target;
+ String internalPath = APK_PATH_TO_OVERLAY + target + File.separator;
String resPath = ThemeUtils.getTargetCacheDir(target, pkg);
final int sharedGid = UserHandle.getSharedAppGid(pkg.applicationInfo.uid);
int pkgId;