History log of /frameworks/base/tools/aapt2/filter/Filter_test.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0a5b201156f1dd01a7da7b7674798ed57cfafc5a 22-Jun-2017 Shane Farmer <safarmer@google.com> AAPT2: Add a APK filtering.

Allow resource files to be removed from the final artifact based on the
density and locale configuration in the config file. The APK is split
along the density, locale and ABI axis. Each split is generated from the
original APK without modifying the original. The new resource table is
written back to the file system with unneeded assets etc removed.

Test: Unit tests
Test: Manually run optimize command against an APK and inspect results
Test: Installed split searchlite APK (after resigning) and ran on N6

Change-Id: If73597dcfd88c02d2616518585d0e25a5c6a84d1
/frameworks/base/tools/aapt2/filter/Filter_test.cpp
5766943f558c8fccc714bb3d0a96af70816a5545 19-Jun-2017 Shane Farmer <safarmer@google.com> AAPT2: Split APK by ABI.

Added a FilterChain that can apply multiple filter steps to an APK file
as it is being written to disk. The first filter applied is by ABI. If
a library in the APK does not match the filter it is skipped.

Added an AbiFilter that keeps files that are either not native libs or
are for the set of wanted ABIs

Test: ran unit tests locally
Test: ran against an APK with ARM and x68 libs and diffed the results

Change-Id: I3fb901d3de3513e85f2a2763a8e4487a28ed4881
/frameworks/base/tools/aapt2/filter/Filter_test.cpp