Skip to content
Snippets Groups Projects
Commit 013e8562 authored by Michael Vines's avatar Michael Vines
Browse files

Add |flash recovery|, |flash| now includes recovery image and uses 2knand images

Change-Id: I023fbde9b5113e2aedfd2c3993856907527f0ff5
parent 836a64f9
No related branches found
No related tags found
No related merge requests found
......@@ -48,15 +48,16 @@ __flash_device()
if [ -z $1 ]; then
$FASTBOOT erase cache &&
$FASTBOOT erase userdata &&
$FASTBOOT flash userdata out/target/product/$DEVICE/userdata.img.ext4 &&
$FASTBOOT flash boot out/target/product/$DEVICE/boot.img &&
$FASTBOOT flash system out/target/product/$DEVICE/system.img.ext4 &&
$FASTBOOT flash persist out/target/product/$DEVICE/persist.img.ext4 &&
$FASTBOOT flash userdata out/target/product/$DEVICE/2kpagenand_images/userdata.2knand.img &&
$FASTBOOT flash boot out/target/product/$DEVICE/2kpagenand_images/boot.img &&
$FASTBOOT flash recovery out/target/product/$DEVICE/2kpagenand_images/recovery.img &&
$FASTBOOT flash system out/target/product/$DEVICE/2kpagenand_images/system.2knand.img &&
$FASTBOOT flash persist out/target/product/$DEVICE/2kpagenand_images/persist.2knand.img &&
$FASTBOOT reboot
else
case $1 in
"system" | "boot" | "userdata" | "persist")
$FASTBOOT flash $1 out/target/product/$DEVICE/$1.img.ext4 &&
"system" | "boot" | "recovery" | "userdata" | "persist")
$FASTBOOT flash $1 out/target/product/$DEVICE/2kpagenand_images/$1.2knand.img &&
$FASTBOOT reboot
;;
*)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment