android_adb: Listen for ADB connections on 127.0.0.1, not localhost

QEMU's inet_listen() routine only listens on the first result
it gets back for the hostname it is passed; if that is an IPv6
address, as it is on Windows, then we end up listening on the
IPv6 loopback address, and the adb server fails to connect to
us because it is expecting to use IPv4. Use the explicit IPv4
loopback address 127.0.0.1 to ensure we are listening where
the adb server expects to find us.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
1 file changed
tree: a09825ad7480b74902548696bd4ff2a79c2645b6
  1. .exrc
  2. .gitignore
  3. .gitmodules
  4. .mailmap
  5. .travis.yml
  6. CODING_STYLE
  7. COPYING
  8. COPYING.LIB
  9. Changelog
  10. HACKING
  11. LICENSE
  12. MAINTAINERS
  13. Makefile
  14. Makefile.objs
  15. Makefile.target
  16. README
  17. VERSION
  18. aio-posix.c
  19. aio-win32.c
  20. android-commands.h
  21. android-console.c
  22. android-console.h
  23. arch_init.c
  24. async.c
  25. audio/
  26. backends/
  27. balloon.c
  28. block-migration.c
  29. block.c
  30. block/
  31. blockdev-nbd.c
  32. blockdev.c
  33. blockjob.c
  34. bsd-user/
  35. bt-host.c
  36. bt-vhci.c
  37. configure
  38. coroutine-gthread.c
  39. coroutine-sigaltstack.c
  40. coroutine-ucontext.c
  41. coroutine-win32.c
  42. cpu-exec.c
  43. cpus.c
  44. cputlb.c
  45. default-configs/
  46. device-hotplug.c
  47. device_tree.c
  48. disas.c
  49. disas/
  50. dma-helpers.c
  51. docs/
  52. dump.c
  53. exec.c
  54. fpu/
  55. fsdev/
  56. gdb-xml/
  57. gdbstub.c
  58. hmp-commands.hx
  59. hmp.c
  60. hmp.h
  61. hw/
  62. include/
  63. iohandler.c
  64. ioport.c
  65. iothread.c
  66. kvm-all.c
  67. kvm-stub.c
  68. libcacard/
  69. linux-headers/
  70. linux-user/
  71. main-loop.c
  72. memory.c
  73. memory_mapping.c
  74. migration-exec.c
  75. migration-fd.c
  76. migration-rdma.c
  77. migration-tcp.c
  78. migration-unix.c
  79. migration.c
  80. module-common.c
  81. monitor.c
  82. nbd.c
  83. net/
  84. os-posix.c
  85. os-win32.c
  86. page_cache.c
  87. pc-bios/
  88. po/
  89. qapi-schema.json
  90. qapi/
  91. qdev-monitor.c
  92. qdict-test-data.txt
  93. qemu-bridge-helper.c
  94. qemu-char.c
  95. qemu-coroutine-io.c
  96. qemu-coroutine-lock.c
  97. qemu-coroutine-sleep.c
  98. qemu-coroutine.c
  99. qemu-doc.texi
  100. qemu-file.c
  101. qemu-img-cmds.hx
  102. qemu-img.c
  103. qemu-img.texi
  104. qemu-io-cmds.c
  105. qemu-io.c
  106. qemu-log.c
  107. qemu-nbd.c
  108. qemu-nbd.texi
  109. qemu-options-wrapper.h
  110. qemu-options.h
  111. qemu-options.hx
  112. qemu-seccomp.c
  113. qemu-tech.texi
  114. qemu-timer.c
  115. qemu.nsi
  116. qemu.sasl
  117. qga/
  118. qmp-commands.hx
  119. qmp.c
  120. qobject/
  121. qom/
  122. qtest.c
  123. roms/
  124. rules.mak
  125. savevm.c
  126. scripts/
  127. slirp/
  128. spice-qemu-char.c
  129. stubs/
  130. sysconfigs/
  131. target-alpha/
  132. target-arm/
  133. target-cris/
  134. target-i386/
  135. target-lm32/
  136. target-m68k/
  137. target-microblaze/
  138. target-mips/
  139. target-moxie/
  140. target-openrisc/
  141. target-ppc/
  142. target-s390x/
  143. target-sh4/
  144. target-sparc/
  145. target-unicore32/
  146. target-xtensa/
  147. tcg-runtime.c
  148. tcg/
  149. tci.c
  150. tests/
  151. thread-pool.c
  152. thunk.c
  153. tpm.c
  154. trace-events
  155. trace/
  156. translate-all.c
  157. translate-all.h
  158. ui/
  159. user-exec.c
  160. util/
  161. version.rc
  162. vl.c
  163. vmstate.c
  164. xbzrle.c
  165. xen-common-stub.c
  166. xen-common.c
  167. xen-hvm-stub.c
  168. xen-hvm.c
  169. xen-mapcache.c