hikey960: flash-all: Make sure to format cache partition am: 980b130852

Original change: https://android-review.googlesource.com/c/device/linaro/hikey/+/1595517

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I11e5e8ac7c0228e93f4f948de5320924e23724fb
diff --git a/installer/hikey960/flash-all.sh b/installer/hikey960/flash-all.sh
index 2828089..a2c97a0 100755
--- a/installer/hikey960/flash-all.sh
+++ b/installer/hikey960/flash-all.sh
@@ -26,4 +26,5 @@
 fastboot flash dts "${ANDROID_PRODUCT_OUT}"/dt.img
 fastboot flash super "${ANDROID_PRODUCT_OUT}"/super.img
 fastboot flash userdata "${ANDROID_PRODUCT_OUT}"/userdata.img
+fastboot format cache
 fastboot reboot
diff --git a/installer/hikey960/uefi-flash-all.sh b/installer/hikey960/uefi-flash-all.sh
index 9c7301d..c2f06af 100755
--- a/installer/hikey960/uefi-flash-all.sh
+++ b/installer/hikey960/uefi-flash-all.sh
@@ -46,6 +46,7 @@
 	fastboot flash boot "${ANDROID_PRODUCT_OUT}"/boot.img
 	fastboot flash super "${ANDROID_PRODUCT_OUT}"/super.img
 	fastboot flash userdata "${ANDROID_PRODUCT_OUT}"/userdata.img
+	fastboot format cache
 }
 
 function upgrading_ptable_1mb_aligned () {