因為 adb server 被重啟動,所以沒有辦法建立兩個連線。
查這段 message "adb server is out of date. killing",是在
./system/core/adb/adb_client.c:251: printf("adb server is out of date. killing...\n");
是 compare version:
int adb_connect(const char *service)
{
// first query the adb server's version
int fd = _adb_connect("host:version");
....
char buf[100];
int n;
int version = ADB_SERVER_VERSION - 1;
// if we have a file descriptor, then parse version result
if(readx(fd, buf, 4)) goto error;
buf[4] = 0;
n = strtoul(buf, 0, 16);
if(readx(fd, buf, n)) goto error;
adb_close(fd);
if (sscanf(buf, "%04x", &version) != 1) goto error;
} else {
........
}
....
if(version != ADB_SERVER_VERSION) {
printf("adb server is out of date. killing...\n");
就是去詢問 host adb server 的版本,然後和自己比較。不一樣就 print msg & restart
就在我加上 debug message (print out version),重新 run 後,就 OK 了
===> 所以說,我 pc 上的 adb 版本太舊了...
沒有留言:
張貼留言