From 31dbed7b60d8237d6d05dc6bf230167a5854b77a Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 7 Oct 2009 15:38:53 -0700 Subject: [PATCH] Add adb's ANDROID_SERIAL to fastboot too. We noticed this when trying to script on-device testing for the dalvik continuous build. Also fix a typo in adb's help. --- adb/commandline.c | 2 +- fastboot/fastboot.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/adb/commandline.c b/adb/commandline.c index 411bb82a3..f41146bf5 100644 --- a/adb/commandline.c +++ b/adb/commandline.c @@ -97,7 +97,7 @@ void help() " returns an error if more than one emulator is running.\n" " -s - directs command to the USB device or emulator with\n" " the given serial number. Overrides ANDROID_SERIAL\n" - " envivornment variable.\n" + " environment variable.\n" " -p - simple product name like 'sooner', or\n" " a relative/absolute path to a product\n" " out directory like 'out/target/product/sooner'.\n" diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c index 8e92017d8..911c3f60c 100644 --- a/fastboot/fastboot.c +++ b/fastboot/fastboot.c @@ -557,6 +557,8 @@ int main(int argc, char **argv) return 0; } + serial = getenv("ANDROID_SERIAL"); + while (argc > 0) { if(!strcmp(*argv, "-w")) { wants_wipe = 1;