diff options
| author | 2017-05-11 18:36:38 +0000 | |
|---|---|---|
| committer | 2017-05-11 18:36:42 +0000 | |
| commit | 33644ff3f9270f471ec6c46cff7f848c3707f9c6 (patch) | |
| tree | e985bd87923f160c19e0a1c607f78257b36db5bf | |
| parent | c3b938ca5ed1385ea07a500abfba31ee4943c096 (diff) | |
| parent | 57fe48389f845709db23234088b97f4e30307ff4 (diff) | |
Merge "AAPT: Allow including dependencies in dump command" into oc-dev
| -rw-r--r-- | tools/aapt/Command.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/aapt/Command.cpp b/tools/aapt/Command.cpp index 15648bdd1b3b..ba731801e507 100644 --- a/tools/aapt/Command.cpp +++ b/tools/aapt/Command.cpp @@ -762,6 +762,15 @@ int doDump(Bundle* bundle) return 1; } + // Now add any dependencies passed in. + for (size_t i = 0; i < bundle->getPackageIncludes().size(); i++) { + const String8& assetPath = bundle->getPackageIncludes()[i]; + if (!assets.addAssetPath(assetPath, NULL)) { + fprintf(stderr, "ERROR: included asset path %s could not be loaded\n", assetPath.string()); + return 1; + } + } + // Make a dummy config for retrieving resources... we need to supply // non-default values for some configs so that we can retrieve resources // in the app that don't have a default. The most important of these is |