commit | 4d7c5eb7a1903278b951069ba278484f8381c728 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Fri Apr 03 11:31:50 2020 -0700 |
committer | Yifan Hong <elsk@google.com> | Wed Apr 08 23:45:11 2020 +0000 |
tree | d9de980c6691361a2a2ab4c641a381643045bbfd | |
parent | e757420cd6042fb68d9a3630a0d00e795c3f2ffe [diff] |
Allow to skip mounting metadata in recovery. After factory data reset, metadata has no valid ext4 fs, and it is not formatted when recovery is started. Hence, it is possible that recovery can't mount metadata. Use fallback path for sideloading full OTAs on Virtual A/B devices in this case. Test: the following: fastboot reboot fastboot -w fastboot reboot recovery adb root adb shell mount -t ext4 /dev/block/by-name/metadata /metadata # fails adb reboot sideload adb sideload ota.zip # successful Bug: 152352037 Change-Id: I51ae3e5918b0c00054f309832c45823d80e46c69