X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/0dad19a601cb95d1c6fdaaa3e655a1687f557d66..1f17091791d4dc6edace3b96caae83a78711989e:/Package.cpp?ds=sidebyside diff --git a/Package.cpp b/Package.cpp index 5d9e140..8424169 100644 --- a/Package.cpp +++ b/Package.cpp @@ -5,9 +5,12 @@ // #include "Main.h" #include "AaptAssets.h" +#include "ResourceTable.h" -#include -#include +#include +#include +#include +#include #include #include @@ -190,11 +193,20 @@ bail: ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp& assets) { + ResourceFilter filter; + status_t status = filter.parse(bundle->getConfigurations()); + if (status != NO_ERROR) { + return -1; + } + ssize_t count = 0; const size_t N = assets->getGroupEntries().size(); for (size_t i=0; igetGroupEntries()[i]; + if (!filter.match(ge.toParams())) { + continue; + } ssize_t res = processAssets(bundle, zip, assets, ge); if (res < 0) { return res;