Updating the powerprofile xml file in framework res package
Enabling this option results in a faster execution, but increases the output file size.
Treats errors that are permissible when using earlier versions of AAPT as warnings.
However, the generated APK does not contain DEX bytecode and is unsigned.
To do so, you can find AAPT2 as a standalone tool in Android SDK Build Tools 26.0.2 and higher.
When you specify a preferred density, AAPT2 selects and stores the closest matching density in the resource table and removes all others.
Prior to AAPT2, AAPT was the default version of Android Asset Packaging Tool and it has now been deprecated.
When you invoke AAPT2 for compilation, you should pass a single resource file as an input per invocation.
AAPT2 then parses the file and generates an intermediate binary file with a flag, you do not gain the benefits of incremental resource compilation when doing so.
Search for updating the powerprofile xml file in framework res package:
In the link phase, AAPT2 merges all the intermediate files generated from the compilation phase such as resource tables, binary XML files, and processed PNG files and packages them into a single APK.