Implement filter-product
filter-product option is added to aapt2 compile, which filters values with a given product and removes all other values (including default). The motivation of this change is to generate product-specific RRO automatically, making a main resource APK (e.g. framework-res.apk) identical in all targets. Bug: 294799593 Test: build (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5fe521e5b3bd5e7ef17dc50425060680cadb4e0e) Merged-In: I42eb3e134c7aa120f6bbe2d26d311bd46b586595 Change-Id: I42eb3e134c7aa120f6bbe2d26d311bd46b586595
Showing
- tools/aapt2/Android.bp 1 addition, 1 deletiontools/aapt2/Android.bp
- tools/aapt2/cmd/Compile.cpp 10 additions, 0 deletionstools/aapt2/cmd/Compile.cpp
- tools/aapt2/cmd/Compile.h 5 additions, 0 deletionstools/aapt2/cmd/Compile.h
- tools/aapt2/cmd/Link.cpp 2 additions, 1 deletiontools/aapt2/cmd/Link.cpp
- tools/aapt2/link/Linkers.h 3 additions, 25 deletionstools/aapt2/link/Linkers.h
- tools/aapt2/process/ProductFilter.cpp 52 additions, 18 deletionstools/aapt2/process/ProductFilter.cpp
- tools/aapt2/process/ProductFilter.h 65 additions, 0 deletionstools/aapt2/process/ProductFilter.h
- tools/aapt2/process/ProductFilter_test.cpp 76 additions, 19 deletionstools/aapt2/process/ProductFilter_test.cpp
Loading
Please register or sign in to comment