のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

android emulator オフラインになる。

Android emulator-5554 offline - Stack Overflow

adb connect localhost:5555

error:protocol fault (status read)
のメッセージが続く。

C:\>set adb_trace=all

>set adb_trace=1
>adb logcat
system/core/adb/adb.c::main():Handling commandline()
system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:version
system/core/adb/sysdeps_win32.c::socket_loopback_client():socket_loopback_client: port 5037 type tcp => fd 100
system/core/adb/transport.c::writex():writex: fd=100 len=4: 30303063 000c
system/core/adb/transport.c::writex():writex: fd=100 len=12: 686f73743a76657273696f6e host:version
system/core/adb/transport.c::readx():readx: fd=100 wanted=4
system/core/adb/transport.c::readx():readx: fd=100 wanted=4 got=4
4f4b4159 OKAY
system/core/adb/adb_client.c::_adb_connect():_adb_connect: return fd 100
system/core/adb/adb_client.c::adb_connect():adb_connect: service shell:export ANDROID_LOG_TAGS="" ; exec logcat
system/core/adb/transport.c::readx():readx: fd=100 wanted=4
system/core/adb/transport.c::readx():readx: fd=100 wanted=4 got=4
30303034 0004
system/core/adb/transport.c::readx():readx: fd=100 wanted=4
system/core/adb/transport.c::readx():readx: fd=100 wanted=4 got=4
30303164 001d
system/core/adb/sysdeps_win32.c::adb_close():adb_close: 100(lo-client:5037)
system/core/adb/adb_client.c::_adb_connect():_adb_connect: shell:export ANDROID_LOG_TAGS="" ; exec logcat
system/core/adb/sysdeps_win32.c::socket_loopback_client():socket_loopback_client: port 5037 type tcp => fd 101
system/core/adb/transport.c::writex():writex: fd=101 len=4: 30303132 0012
system/core/adb/transport.c::writex():writex: fd=101 len=18: 686f73743a7472616e73706f72742d61 host:transport-a
system/core/adb/adb_client.c::switch_socket_transport():Switch transport in progress
system/core/adb/transport.c::readx():readx: fd=101 wanted=4
system/core/adb/transport.c::readx():readx: fd=101 wanted=4 got=4
4641494c FAIL
system/core/adb/transport.c::readx():readx: fd=101 wanted=4
system/core/adb/transport.c::readx():readx: fd=101 wanted=4 got=4
30303130 0010
system/core/adb/transport.c::readx():readx: fd=101 wanted=16
system/core/adb/transport.c::readx():readx: fd=101 wanted=16 got=16
646576696365206e6f7420666f756e64 device not found
system/core/adb/sysdeps_win32.c::adb_close():adb_close: 101(lo-client:5037)
system/core/adb/adb_client.c::switch_socket_transport():Switch transport failed
system/core/adb/adb_client.c::adb_connect():adb_connect: return fd -1
- waiting for device -
system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:version
system/core/adb/sysdeps_win32.c::socket_loopback_client():socket_loopback_client: port 5037 type tcp => fd 102
system/core/adb/transport.c::writex():writex: fd=102 len=4: 30303063 000c
system/core/adb/transport.c::writex():writex: fd=102 len=12: 686f73743a76657273696f6e host:version
system/core/adb/transport.c::readx():readx: fd=102 wanted=4
system/core/adb/transport.c::readx():readx: fd=102 wanted=4 got=4
4f4b4159 OKAY
system/core/adb/adb_client.c::_adb_connect():_adb_connect: return fd 102
system/core/adb/adb_client.c::adb_connect():adb_connect: service host:wait-for-any
system/core/adb/transport.c::readx():readx: fd=102 wanted=4
system/core/adb/transport.c::readx():readx: fd=102 wanted=4 got=4
30303034 0004
system/core/adb/transport.c::readx():readx: fd=102 wanted=4
system/core/adb/transport.c::readx():readx: fd=102 wanted=4 got=4
30303164 001d
system/core/adb/sysdeps_win32.c::adb_close():adb_close: 102(lo-client:5037)
system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:wait-for-any
system/core/adb/sysdeps_win32.c::socket_loopback_client():socket_loopback_client: port 5037 type tcp => fd 103
system/core/adb/transport.c::writex():writex: fd=103 len=4: 30303131 0011
system/core/adb/transport.c::writex():writex: fd=103 len=17: 686f73743a776169742d666f722d616e host:wait-for-an
system/core/adb/transport.c::readx():readx: fd=103 wanted=4
system/core/adb/transport.c::readx():readx: fd=103 wanted=4 got=4
4f4b4159 OKAY
system/core/adb/adb_client.c::_adb_connect():_adb_connect: return fd 103
system/core/adb/adb_client.c::adb_connect():adb_connect: return fd 103
system/core/adb/transport.c::readx():readx: fd=103 wanted=4