0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ADBでkill-serverできないときは

Last updated at Posted at 2018-09-08

ある時から、ADBを実行すると応答しなくなるようになりました。

たとえば、

$ adb start-server

$ adb devices
List of devices attached

のあと、待機状態のまま応答しなくなります。

そしてkill-serverも同様に応答がなくなり使えません。

このような場合の対処としては、lsofで5037番ポートでLISTENしているプロセスをkillしてADBを落としてやりましょう。

$ sudo lsof -i | grep 5037
adb        4864    user    6u  IPv4 0xbc565019343e37eb      0t0    TCP localhost:5037->localhost:64155 (CLOSE_WAIT)
adb        4864    user    8u  IPv4 0xbc565019363c87eb      0t0    TCP localhost:5037 (LISTEN)
adb        5918    user    3u  IPv4 0xbc565019363eaaab      0t0    TCP localhost:50581->localhost:5037 (ESTABLISHED)
adb        7411    user    3u  IPv4 0xbc56501936384aab      0t0    TCP localhost:51923->localhost:5037 (ESTABLISHED)
adb        7790    user    3u  IPv4 0xbc5650192d8de7eb      0t0    TCP localhost:52002->localhost:5037 (ESTABLISHED)
adb        8190    user    3u  IPv4 0xbc565019365007eb      0t0    TCP localhost:52385->localhost:5037 (ESTABLISHED)
$ sudo kill 4864

kill-serverできないときの奥の手ということで。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?