diff --git a/config.sh b/config.sh index 21816bbb..745c0e7c 100755 --- a/config.sh +++ b/config.sh @@ -90,6 +90,11 @@ case "$1" in repo_sync nexus-4 ;; +"nexus-5") + echo DEVICE=hammerhead >> .tmp-config && + repo_sync nexus-5 + ;; + "optimus-l5") echo DEVICE=m4 >> .tmp-config && repo_sync $1 diff --git a/flash.sh b/flash.sh index ceb64c1a..6401e7e0 100755 --- a/flash.sh +++ b/flash.sh @@ -114,7 +114,8 @@ flash_fastboot() "") # helix doesn't support erase command in fastboot mode. VERB="erase" - if [ "$DEVICE" == "mako" ] || [ "$DEVICE" == "flo" ]; then + if [ "$DEVICE" == "hammerhead" ] || [ "$DEVICE" == "mako" ] || + [ "$DEVICE" == "flo" ]; then VERB="format" fi if [ "$DEVICE" != "helix" ]; then @@ -325,7 +326,7 @@ case "$DEVICE" in flash_fastboot nounlock $PROJECT ;; -"panda"|"maguro"|"m4"|"crespo"|"crespo4g"|"mako"|"flo") +"panda"|"maguro"|"m4"|"crespo"|"crespo4g"|"mako"|"hammerhead"|"flo") flash_fastboot unlock $PROJECT ;;