X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/4a77f032cf8e69a9a29e3d722d5a8bf36736dc6d..174b814c17a1d3e80534db7949b6f49b51756128:/AaptAssets.cpp diff --git a/AaptAssets.cpp b/AaptAssets.cpp index d6cfb12..e4f447e 100644 --- a/AaptAssets.cpp +++ b/AaptAssets.cpp @@ -1830,6 +1830,16 @@ ssize_t AaptAssets::slurpResourceTree(Bundle* bundle, const String8& srcDir) continue; } + if (bundle->getMaxResVersion() != NULL && group.version.length() != 0) { + int maxResInt = atoi(bundle->getMaxResVersion()); + const char *verString = group.version.string(); + int dirVersionInt = atoi(verString + 1); // skip 'v' in version name + if (dirVersionInt > maxResInt) { + fprintf(stderr, "max res %d, skipping %s\n", maxResInt, entry->d_name); + continue; + } + } + FileType type = getFileType(subdirName.string()); if (type == kFileTypeDirectory) {