app: aboot: check battery voltage before erase or flash the whole image

Halfway stop to erase or flash image is a risky when the battery's
voltage is too low. So it's reasonable to check the battery voltage
before to erase or flash image.

Change-Id: Ia31b9133f02b29c75cdc3c9c47b4500b009e5c01
2 files changed