summaryrefslogtreecommitdiff
path: root/scripts/update_payload/test_utils.py
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2020-04-03 11:31:50 -0700
committerYifan Hong <elsk@google.com>2020-04-08 11:16:31 -0700
commit700e6b0b4e9896ada433d48b7a2cb2ad468eb173 (patch)
tree4f93d358f768d59299e8d37a1eb5b8ff74d29fb9 /scripts/update_payload/test_utils.py
parentcba9c46108cc230c20ecdebfd7d48b597a4e3faf (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
Diffstat (limited to 'scripts/update_payload/test_utils.py')
0 files changed, 0 insertions, 0 deletions