summaryrefslogtreecommitdiff
path: root/tools/aapt/AaptAssets.cpp
diff options
context:
space:
mode:
author Adam Lesinski <adamlesinski@google.com> 2014-08-27 16:21:08 -0700
committer Adam Lesinski <adamlesinski@google.com> 2014-08-27 18:28:49 -0700
commitad2d07d2d98a46babb2a9472413fe9ce5080ca76 (patch)
tree40be93c366de29a74421b20cf8ae10c34ac34dfd /tools/aapt/AaptAssets.cpp
parent032402cff1fe5dc3a6b2adae3d4c13fb771cd91f (diff)
Stamp platform version code into app Apks
The versionCode of theframework resources that an app is built against gets stamped inside an app's AndroidManifest.xml in the <manifest> tag as "platformBuildVersionCode" and "platformBuildVersionName" attributes. Bug:17207635 Change-Id: Id573c3dffcbca38eec9c0eb3e89f4a547e3361d3
Diffstat (limited to 'tools/aapt/AaptAssets.cpp')
-rw-r--r--tools/aapt/AaptAssets.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/aapt/AaptAssets.cpp b/tools/aapt/AaptAssets.cpp
index b44e2d139a95..117fc2435076 100644
--- a/tools/aapt/AaptAssets.cpp
+++ b/tools/aapt/AaptAssets.cpp
@@ -1594,6 +1594,11 @@ const ResTable& AaptAssets::getIncludedResources() const
return mIncludedAssets.getResources(false);
}
+AssetManager& AaptAssets::getAssetManager()
+{
+ return mIncludedAssets;
+}
+
void AaptAssets::print(const String8& prefix) const
{
String8 innerPrefix(prefix);