How to resume firmware update if it stops or freezes before finishing for Android