Merge "app: aboot: Change to refactor the code, prevent TOCTOU issues."