• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

system/corennnnn


コミットメタ情報

リビジョン0f83253596e7c23c98c141224238841a3102e5f6 (tree)
日時2009-08-27 04:56:58
作者Mike Lockwood <lockwood@andr...>
コミッターAndroid Git Automerger

ログメッセージ

am a3e8a6ad: adb: Fix emulator support.

Merge commit 'a3e8a6ad56d60d2ad6c580004f86920d73acc62c' into eclair-plus-aosp

* commit 'a3e8a6ad56d60d2ad6c580004f86920d73acc62c':

adb: Fix emulator support.

変更サマリ

差分

--- a/adb/adb.c
+++ b/adb/adb.c
@@ -851,7 +851,7 @@ int adb_main(int is_daemon)
851851 HOST = 1;
852852 usb_vendors_init();
853853 usb_init();
854- local_init();
854+ local_init(ADB_LOCAL_TRANSPORT_PORT);
855855
856856 if(install_listener("tcp:5037", "*smartsocket*", NULL)) {
857857 exit(1);
@@ -923,13 +923,15 @@ int adb_main(int is_daemon)
923923 ** is not set, otherwise start the network transport.
924924 */
925925 property_get("service.adb.tcp.port", value, "0");
926- if (sscanf(value, "%d", &port) == 0) {
927- port = 0;
928- }
929- if (port == 0 && access("/dev/android_adb", F_OK) == 0) {
926+ if (sscanf(value, "%d", &port) == 1 && port > 0) {
927+ // listen on TCP port specified by service.adb.tcp.port property
928+ local_init(port);
929+ } else if (access("/dev/android_adb", F_OK) == 0) {
930+ // listen on USB
930931 usb_init();
931932 } else {
932- local_init(port);
933+ // listen on default port
934+ local_init(ADB_LOCAL_TRANSPORT_PORT);
933935 }
934936 init_jdwp();
935937 #endif
--- a/adb/adb.h
+++ b/adb/adb.h
@@ -33,7 +33,7 @@
3333 #define ADB_VERSION_MAJOR 1 // Used for help/version information
3434 #define ADB_VERSION_MINOR 0 // Used for help/version information
3535
36-#define ADB_SERVER_VERSION 24 // Increment this when we want to force users to start a new adb server
36+#define ADB_SERVER_VERSION 25 // Increment this when we want to force users to start a new adb server
3737
3838 typedef struct amessage amessage;
3939 typedef struct apacket apacket;
@@ -360,7 +360,7 @@ typedef enum {
360360 #define ADB_PROTOCOL 0x1
361361
362362
363-void local_init();
363+void local_init(int port);
364364 int local_connect(int port);
365365
366366 /* usb host/client interface */