LoginSignup
1
1

More than 3 years have passed since last update.

windows10でadbが起動しなかったのはmicrosoft万歳だった件

Last updated at Posted at 2019-09-05

数か月触れずにいたAndroid Studio。

>adb start-server
* daemon not running; starting now at tcp:5037
could not read ok from ADB Server
* failed to start daemon
error: cannot connect to daemon

みたいなエラーが発生し、Android Studioからのエミュレータ接続、adbコマンドによる実機接続ができなくなった。前回使用時には発生していなかった現象である。

どないなっとんのか、netstatで見てみる。

  TCP         192.168.xxx.xxx:5037       40.90.189.152:https    ESTABLISHED

なんやこれ。Wiresharkとかで見ると、数分おきに通信しているように見える。

調べてみると、以下のようなサイトを発見。
windows10の無用な通信を停止させる方法 2

client.wns.windows.com  40.90.189.152

なんだかよくわからないが、microsoftの関係者と通信をしているようだ。よりにもよって5037ポートで。ちなみにブラウザでそのようなサイトは開いていない。
詳細はリンク先を参照のこと。

実機にインストールするのが目的だったので、以下の要領で応急措置。

adb -P 5038 install -r app-release.apk

まいくろそふと、ばんざい!!!

2019/09/07 追記:
以下の記事を参考に、ルータに禁足事項を設定してみた。激おこ。
Windows プッシュ通知サービス (WNS)を拒否する

svchostがやってることなのでいたちごっこだと思うが、5037の不如意な占有という事態は避けられている。
HUAWEIのこと、他人事じゃないねM$さん。

1
1
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
1
1