commit | 700e6b0b4e9896ada433d48b7a2cb2ad468eb173 | [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 11:16:31 2020 -0700 |
tree | 4f93d358f768d59299e8d37a1eb5b8ff74d29fb9 | |
parent | cba9c46108cc230c20ecdebfd7d48b597a4e3faf [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 (cherry picked from commit 77141004ba643a1d6b9d8a663cfb0791c2fe6b92) Merged-In: I51ae3e5918b0c00054f309832c45823d80e46c69