• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


Commit MetaInfo

Revision46f208e40d226b881736036088317c918cc5d5e7 (tree)
Zeit2009-05-09 01:07:09
AutorAndroid (Google) Code Review <android-gerrit@goog...>
CommiterAndroid (Google) Code Review

Log Message

Merge change 1171

* changes:

Allow adb to use ANDORID_SERIAL env variable to specify the device to talk to.

Ändern Zusammenfassung

Diff

--- a/adb/commandline.c
+++ b/adb/commandline.c
@@ -96,7 +96,8 @@ void help()
9696 " -e - directs command to the only running emulator.\n"
9797 " returns an error if more than one emulator is running.\n"
9898 " -s <serial number> - directs command to the USB device or emulator with\n"
99- " the given serial number\n"
99+ " the given serial number. Overrides ANDROID_SERIAL\n"
100+ " envivornment variable.\n"
100101 " -p <product name or path> - simple product name like 'sooner', or\n"
101102 " a relative/absolute path to a product\n"
102103 " out directory like 'out/target/product/sooner'.\n"
@@ -766,6 +767,8 @@ int adb_commandline(int argc, char **argv)
766767 }
767768 // TODO: also try TARGET_PRODUCT/TARGET_DEVICE as a hint
768769
770+ serial = getenv("ANDROID_SERIAL");
771+
769772 /* modifiers and flags */
770773 while(argc > 0) {
771774 if(!strcmp(argv[0],"nodaemon")) {