OSDN Git Service

Backbone of the new aapt2 strip command.
authorPierre Lecesne <lecesne@google.com>
Tue, 31 Jan 2017 23:58:27 +0000 (23:58 +0000)
committerPierre Lecesne <lecesne@google.com>
Wed, 1 Feb 2017 18:49:19 +0000 (18:49 +0000)
commit8a7b4cb99290ec8c1b7d7df4f6e64999a9f4de6e
tree19ec30b335440f6fd50e7b371c55261083bd5adc
parentdf7278d842eb89e24b94305890c3932c77e27cf2
Backbone of the new aapt2 strip command.

The strip command takes an APK as argument and a --target-densities flag which
contains the list of screen densities for which to optimize the APK. All
the resources that would be unused for a device having the given
densities are stripped from the APK leaving only the ones actually being
used.

Test: Manual.

Change-Id: I68368b00876a18ccdbbfc0a8dd265bd361117933
tools/aapt2/Android.bp
tools/aapt2/Main.cpp
tools/aapt2/strip/Strip.cpp [new file with mode: 0644]