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.
This commit is contained in:
parent
b4add9b745
commit
31dbed7b60
2 changed files with 3 additions and 1 deletions
|
@ -97,7 +97,7 @@ void help()
|
|||
" returns an error if more than one emulator is running.\n"
|
||||
" -s <serial number> - 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 <product name or path> - simple product name like 'sooner', or\n"
|
||||
" a relative/absolute path to a product\n"
|
||||
" out directory like 'out/target/product/sooner'.\n"
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue