fastboot flashall -w cannot work

5,223 views
Skip to first unread message

龚泽龙

unread,
Jan 19, 2017, 10:55:42 AM1/19/17
to Android Building

After I build the source code of AOSP. I try to flash the images into Nexus 5.

source build/envsetup.sh

lunch

19

adb reboot bootloader

sudo $(which fastboot) flashall -w

error: neither -p product specified nor ANDROID_PRODUCT_OUT set

But ANDROID_PRODUCT_OUT is already set.

env | grep ANDROID_PRODUCT_OUT

ANDROID_PRODUCT_OUT=/home/gongzelong/OpenSource/Android/out/target/product/hammerhead

Dan Willemsen

unread,
Jan 19, 2017, 1:31:16 PM1/19/17
to Android Building
Don't use "sudo", it may be clearing the environment. It shouldn't be necessary once you've configured USB access: https://source.android.com/source/initializing.html#configuring-usb-access

- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages