Updater: Check for available space on install/update/resume
Description
Prompt user to clean up internal storage space when almost full to be able to proceed with the update/upgrade process
Screenshots
![](/-/project/144/uploads/17a6bb6f30d4b27e7ebad2808d51c343/Screenshot_20230127-170442_Updater.png)
![](/-/project/144/uploads/e7a0c37f1a8126d62c11ff9d7949f66f/Screenshot_20230127-170201_Updater.png)
Technical details
- Added dialog to inform user about low memory space.
- Added dialog for install/download/resume
- Using MB instead of GB for larger file. Rounded GB size does confuses users.
Tests
- Download an ota update
- Fill up phone storage with data or dummy files. To create 10gb dummy file via adb
adb shell fallocate -l 10G /storage/emulated/0/temp.file
- Tap install button in Updater app
Issues
https://gitlab.e.foundation/e/os/backlog/-/issues/863
10 commandments of code reviews
Edited by Mohammed Althaf Thayyil