diff options
author | Ryan Mitchell <rtmitchell@google.com> | 2020-04-02 09:54:23 -0700 |
---|---|---|
committer | Ryan Mitchell <rtmitchell@google.com> | 2020-04-09 11:01:54 -0700 |
commit | 192400cf334e0e8befe336861a6d214c6a88c993 (patch) | |
tree | e5702b6ffbf4bd02012766ebada03e3ceec8f460 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 2d8d9812e9925ed017c5ce10208b3d807258a2cc (diff) |
Fail install when resources.arsc is compressed
If an application targets R+, prevent the application from being
installed if the app has a compressed resources.arsc or if the
resources.arsc is not aligned on a 4-byte boundary. Resources tables
that cannot be memory mapped have to be read into a buffer in RAM
and exert unnecessary memory pressure on the system.
Bug: 132742131
Test: manual (adding CTS tests)
Change-Id: Ieef764c87643863de24531fac12cc520fe6d90d0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions