Merge "AAPT: Allow including dependencies in dump command" into oc-dev am: 33644ff3f9
am: 32b7e187e1
Change-Id: Ia6f903b93aa2d8024e6ae03bac0e4bcae1149ac3
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user