From 75ab08fd9c9c1645335d12eeef734ff493bd0070 Mon Sep 17 00:00:00 2001 From: d34d Date: Mon, 19 Jan 2015 08:13:59 -0800 Subject: Themes: Restructure resource cache [1/2] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new structure is as follows: /data/resource-cache/ ├─ theme1_pkg_name | ├─ target1_pkg_name | | ├─ idmap | | └─ resources.apk | ├─ target2_pkg_name | · | · | · | ├─ targetN_pkg_name | └─ icons | ├─ hash | └─ resources.apk ├─ theme2_pkg_name · · · └─ themeN_pkg_name Change-Id: Id39688c88929733b42368c1f20ef0e25848a3390 --- tests/ThemesTest/src/com/example/themetests/MainActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/ThemesTest/src/com/example/themetests/MainActivity.java b/tests/ThemesTest/src/com/example/themetests/MainActivity.java index 2793272..430c997 100644 --- a/tests/ThemesTest/src/com/example/themetests/MainActivity.java +++ b/tests/ThemesTest/src/com/example/themetests/MainActivity.java @@ -147,7 +147,7 @@ public class MainActivity extends Activity { String targetPackagePath = piTarget.applicationInfo.sourceDir; String prefixPath = ThemeUtils.getOverlayPathToTarget(basePackageName); - String resCachePath = ThemeUtils.getResDir(basePackageName, piTheme); + String resCachePath = ThemeUtils.getTargetCacheDir(basePackageName, piTheme); String resTablePath = resCachePath + "/resources.arsc"; String resApkPath = resCachePath + "/resources.apk"; int cookie = assets.addOverlayPath(themePath, resTablePath, resApkPath, @@ -160,7 +160,7 @@ public class MainActivity extends Activity { } if (!piTarget.isThemeApk && piTheme.mOverlayTargets.contains("android")) { - String resCachePath= ThemeUtils.getResDir(piAndroid.packageName, piTheme); + String resCachePath= ThemeUtils.getTargetCacheDir(piAndroid.packageName, piTheme); String prefixPath = ThemeUtils.getOverlayPathToTarget(piAndroid.packageName); String targetPackagePath = piAndroid.applicationInfo.publicSourceDir; String resTablePath = resCachePath + "/resources.arsc"; -- cgit v1.1