summaryrefslogtreecommitdiff
path: root/aosp/apex_handler_interface.h
AgeCommit message (Collapse)Author
2021-03-17Make update_engine reserve space for decompression via apexdMohammad Samiul Islam
Bug: 172911822 Test: atest ApexHandlerAndroidTest (checked that file was created) Change-Id: I8024695ebba1a9c1796c05b27a0eec3da3b3d1bc
2021-02-23Allow update_engine to communicate with apexd for size calculationMohammad Samiul Islam
In this CL, we created a ApexHandlerAndroid that can communicate with apexd via binders to get better estimate for how much space the update_engine should reserve for capex decompression. The size check is placed in update_attempter_android, which is also used in binary for sideloading OTA. Sideloading binary runs during recovery when binder calls, apexd and data parition are all not available. As such, it doesn't make sense to reserve space when sideloading. Bug: 172911822 Test: atest ApexHandlerAndroidTest Test: atest UpdateAttempterAndroidTest Test: manually served ota using `update_engine_client --allocate` and observed full.tmp was written in /data/apex/ota_reserved Change-Id: Iccf3d8c2db24e8d8f3406d0aaa65cbf707c9ae51