diff options
author | MÃ¥rten Kongstad <marten.kongstad@sonymobile.com> | 2014-01-31 14:01:52 +0100 |
---|---|---|
committer | Zoran Jovanovic <zoran.jovanovic@sonymobile.com> | 2014-02-03 09:47:16 +0100 |
commit | 65a05fd56dbc9fd9c2511a97f49c445a748fb3c5 (patch) | |
tree | f832a1d344dc2102ebbf247a46dcd2839761161a /include/androidfw/AssetManager.h | |
parent | c064a1b5d9a68bb5513e6ed64a067ab822e98764 (diff) | |
download | frameworks_base-65a05fd56dbc9fd9c2511a97f49c445a748fb3c5.zip frameworks_base-65a05fd56dbc9fd9c2511a97f49c445a748fb3c5.tar.gz frameworks_base-65a05fd56dbc9fd9c2511a97f49c445a748fb3c5.tar.bz2 |
New command line tool 'idmap'
Introduce a new tool 'idmap' to handle generation and verification of
idmap files. The tool is modelled on 'dexopt', and is intended to be
used similarly, notably by 'installd'.
See cmds/idmap/idmap.cpp for further documentation on 'idmap'.
Note: this commit is interdependent on a commit in project build/ to add
'idmap' to PRODUCT_PACKAGES.
Note: the changes to androidfw are only stubs. The actual implementation
will be provided in Runtime resource overlay, iteration 2.
Change-Id: I7131b74ece1e46c8a9c0a31d103e686aa07da2bb
Diffstat (limited to 'include/androidfw/AssetManager.h')
-rw-r--r-- | include/androidfw/AssetManager.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/androidfw/AssetManager.h b/include/androidfw/AssetManager.h index a010957..e0c6183 100644 --- a/include/androidfw/AssetManager.h +++ b/include/androidfw/AssetManager.h @@ -69,6 +69,7 @@ struct ResTable_config; */ class AssetManager : public AAssetManager { public: + static const char* RESOURCES_FILENAME; typedef enum CacheMode { CACHE_UNKNOWN = 0, CACHE_OFF, // don't try to cache file locations @@ -218,6 +219,13 @@ public: */ void getLocales(Vector<String8>* locales) const; + /** + * Generate idmap data to translate resources IDs between a package and a + * corresponding overlay package. + */ + bool createIdmap(const char* targetApkPath, const char* overlayApkPath, + uint32_t targetCrc, uint32_t overlayCrc, uint32_t** outData, uint32_t* outSize); + private: struct asset_path { |