Release compressed blocks in case /data is f2fs-compressed fs
This change handles 3 different scenarios when new .apex file is written
on /data:
* Staged install. In this scenario blocks are released at the end of
SubmitStagedSession function.
* Non-staged install. Blocks are released at the end of InstallPackage
function.
* Decompression of a compressed .capex APEX (for A/B OTAs this is done
during postinstall step, for non-A/B OTAs this is done on the boot
that applies OTA). Blocks are released at the end of
ProcessCompressedApex function.
Test: adb install art.apex
Test: checked logcat
Test: flashall -w
Test: checked logcat
Test: adb install --force-non-staged rebootless.apex
Test: checked logcat
Bug: 188859167
Change-Id: I3b6a8d3365427fd34acdfb1fac084ae05d99bb8a
1 file changed