From 28b7ee05148579cccf1d0ec27c5ce437d5dc8979 Mon Sep 17 00:00:00 2001 From: Alex Deryskyba Date: Sat, 22 Oct 2016 12:08:12 +0200 Subject: [PATCH] scripts/image: Wipe (format) data and cache partitions for clean NAND installs on Amlogic-based devices --- scripts/image | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/image b/scripts/image index 28cffb476e..8aead342c9 100755 --- a/scripts/image +++ b/scripts/image @@ -399,6 +399,8 @@ if [ "$1" = "release" -o "$1" = "mkimage" -o "$1" = "amlpkg" -o "$1" = "noobs" ] echo "Creating Amlogic ZIP auto-install package" pushd sign > /dev/null echo --update_package=/sdcard/$IMAGE_NAME-update.zip > factory_update_param.aml + echo --wipe_data >> factory_update_param.aml + echo --wipe_cache >> factory_update_param.aml if [ -f "$INSTALL_SRC_DIR/files/recovery.img" ]; then cp $INSTALL_SRC_DIR/files/recovery.img . fi