Merge pull request #137 from kszaq/wetek-userdata-wipe

projects/WeTek_*: Move userdata wipe to factory_update_param script
This commit is contained in:
Lukas Rusak 2016-04-11 23:43:19 -07:00
commit 4069754edd
3 changed files with 2 additions and 6 deletions

View File

@ -1,9 +1,6 @@
show_progress(0.500000, 3);
set_bootloader_env("upgrade_step", "3");
ui_print("Wiping Userdata");
format("ext4", "EMMC", "/dev/block/data", "0", "/data");
ui_print("Writing kernel image");
assert(package_extract_file("KERNEL", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),

View File

@ -1,9 +1,6 @@
show_progress(0.500000, 3);
set_bootloader_env("upgrade_step", "3");
ui_print("Wiping Userdata");
format("ext4", "EMMC", "/dev/block/data", "0", "/data");
show_progress(0.020000, 0);
ui_print("Wiping System");

View File

@ -407,6 +407,8 @@ fi
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
cp $INSTALL_SRC_DIR/files/recovery.img .
if [ -f $INSTALL_SRC_DIR/files/aml_autoscript ]; then
cp $INSTALL_SRC_DIR/files/aml_autoscript .