diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2021-11-16 10:20:08 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2021-11-16 10:20:08 +0800 |
commit | d60554cc410cacc3f44ccc0f588f12f0465e75a2 (patch) | |
tree | fb33b57862b1a743fdbb1bd60098357edc352fa8 | |
parent | 3fdddc4eb50bef9ddafbd7bd6e1cecb073d6feaa (diff) |
x15 flash.sh: use erase instead of format for metadata and cache partition
as the format command seems cause problem
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-x | android-tools/x15/flash.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/android-tools/x15/flash.sh b/android-tools/x15/flash.sh index df4cc50..d9da5b2 100755 --- a/android-tools/x15/flash.sh +++ b/android-tools/x15/flash.sh @@ -52,6 +52,9 @@ flash_image vbmeta_b ${img_dir}/vbmeta.img flash_image recovery ${img_dir}/recovery.img flash_image super ${img_dir}/super.img flash_image userdata ${img_dir}/userdata.img +# format would cause error of "FAILED (remote: failed to set partition)" +fastboot erase metadata +fastboot erase misc fastboot reboot exit 0 |