diff options
| author | 2022-09-13 10:58:49 +0800 | |
|---|---|---|
| committer | 2022-11-30 17:46:25 +0000 | |
| commit | 8ceb39c94f3269dc91ff80eafdc31c12455bd019 (patch) | |
| tree | 7cb7466df83f88c57a836df8e4ae5ff68d6fe897 /libs/androidfw/Util.cpp | |
| parent | 0eef7918aab2a7582b019d88967e8437b101991c (diff) | |
Use lambda to refactor the obfuscating resource name.
There are 2 copy codes for handling the obfuscating resources names
between serializing to pb format file and writing to apks. The
obfuscator also needs to dump resources names. It means there are
3 places to handle the obfuscating resources names.
So, using C++ lambda to apply the callback mechanism refactors the
codes.
Obfuscator
* Initial a Obfuscator according to Optimizer's options
* Add Obfuscator.IsEnabled() function.
return true either shorten_resource_paths_ is true or
collapse_key_stringpool_ is true.
Bug: 228192695
Test: atest aapt2_test idmap2_test
Change-Id: Idd2442beecf41e9392620ff801a36fd1285e06f9
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions