platform_system_core/adb
Nicolas Norvez 717f15353f adbd: optionally use qemud pipe without ro.kernel.qemu
adbd currently decides to use the QEMUD pipe if ro.kernel.qemu=1, as set
for ranchu. The Android container in Chrome OS doesn't have that
property set and it can't be set to 1 because it's used as equivalent to
"runs inside an emulator" throughout Android and changes the way
graphics are handled, whether Bluetooth is supported, etc., behaviour
that we do not want to trigger in Chrome OS.

adbd now also checks service.adb.transport to decide whether to use the
QEMUD (goldfish) pipe.
adbd still first checks for ro.kernel.qemu to preserve existing
behaviour and will still fallback to TCP if it can't use Goldfish.

Bug: 38497992
Test: tested by jmgao@ -thanks!- on aosp_angler, adb still works.

Change-Id: I8370704145ae7301ac7aeef81c5cbd94cfcb7fd7
2017-06-12 12:22:32 -07:00
..
client adb: libusb: switch from polling for accessibility to a sleep. 2017-06-07 11:08:00 -07:00
daemon Merge "Adding 'uhid' permission for access to /dev/uhid." 2017-05-11 19:02:32 +00:00
sysdeps adb: don't try to resolve 'localhost' 2017-04-12 16:07:49 -07:00
.clang-format Remove extraneous .clang-format files 2017-03-14 14:06:31 -07:00
Android.bp Create build target to pull adb test scripts. 2017-05-23 10:42:59 -07:00
Android.mk Create build target to pull adb test scripts. 2017-05-23 10:42:59 -07:00
CPPLINT.cfg Ignore whitespace/indent issues from cpplint. 2015-05-18 16:49:07 -07:00
MODULE_LICENSE_APACHE2 eclair snapshot 2009-11-12 18:46:23 -08:00
NOTICE adb: append the libwinpthread COPYING to adb's NOTICE. 2017-03-08 21:27:59 -08:00
OVERVIEW.TXT Fixing spelling errors in adb docs 2010-04-28 11:38:39 -04:00
SERVICES.TXT adb sync cleanup. 2015-08-24 11:15:01 -07:00
SYNC.TXT adb sync cleanup. 2015-08-24 11:15:01 -07:00
adb.cpp adb: reunregress waiting for device on start-server. 2017-05-31 12:13:59 -07:00
adb.h adb: wait for devices to come up instead of sleeping for 3s. 2017-05-04 16:03:12 -07:00
adb_auth.h adb: rationalize types. 2016-10-06 14:50:02 -07:00
adb_auth_host.cpp Stop writing NUL bytes in adbkey.pub. 2017-05-01 16:05:16 -07:00
adb_client.cpp adb: make `adb kill-server` wait for the server to die. 2017-05-09 14:31:15 -07:00
adb_client.h adb: make `adb kill-server` wait for the server to die. 2017-05-09 14:31:15 -07:00
adb_io.cpp adb: add sysdeps/chrono.h for chrono literals on Win32. 2016-11-16 12:14:59 -08:00
adb_io.h adb: fix adb client running out of sockets on Windows 2015-10-30 16:23:10 -07:00
adb_io_test.cpp adb: disable tests that are expected to fail on Win32. 2016-04-18 14:33:38 -07:00
adb_listeners.cpp adb: move all cleanup to a function with defined ordering. 2017-05-09 14:32:47 -07:00
adb_listeners.h adb: move all cleanup to a function with defined ordering. 2017-05-09 14:32:47 -07:00
adb_listeners_test.cpp adb: support forwarding TCP port 0. 2016-05-09 16:55:10 -07:00
adb_mdns.h Add mDNS device discovery for adb client 2017-03-07 14:45:51 -08:00
adb_trace.cpp adb: fix two device offline problems. 2017-04-20 10:14:59 -07:00
adb_trace.h adb: fix two device offline problems. 2017-04-20 10:14:59 -07:00
adb_unique_fd.h adb: extract the adb-specific unique_fd out into its own header. 2016-09-01 15:49:06 -07:00
adb_utils.cpp Fix various adb error reporting bugs. 2017-04-18 14:51:27 -07:00
adb_utils.h adb: don't hold queue lock while performing callbacks. 2017-06-05 14:54:45 -07:00
adb_utils_test.cpp adb: allow symlinks to directories in directory_exists. 2017-03-23 16:19:55 -07:00
adbd_auth.cpp adb: rationalize types. 2016-10-06 14:50:02 -07:00
bugreport.cpp Always print the initial bugreport progress message. 2017-05-23 16:58:16 -07:00
bugreport.h Don't display bugreport progress when it recedes, for real... 2017-05-02 10:08:39 -07:00
bugreport_test.cpp Always print the initial bugreport progress message. 2017-05-23 16:58:16 -07:00
commandline.cpp Add --sync support to push. 2017-05-19 11:09:58 -07:00
commandline.h Fix various adb error reporting bugs. 2017-04-18 14:51:27 -07:00
console.cpp adb: add helper to get the ~/.android directory. 2016-09-01 15:43:22 -07:00
diagnose_usb.cpp Improve udev failure diagnostics. 2017-05-05 12:50:16 -07:00
diagnose_usb.h Share the new adb USB diagnostic code with fastboot. 2015-12-14 10:50:21 -08:00
fdevent.cpp adb: add fdevent_run_on_main_thread. 2017-05-04 16:03:12 -07:00
fdevent.h adb: add fdevent_run_on_main_thread. 2017-05-04 16:03:12 -07:00
fdevent_test.cpp adb: add fdevent_run_on_main_thread. 2017-05-04 16:03:12 -07:00
fdevent_test.h adb: add fdevent_run_on_main_thread. 2017-05-04 16:03:12 -07:00
file_sync_client.cpp Add --sync support to push. 2017-05-19 11:09:58 -07:00
file_sync_service.cpp Move adb_dirname and adb_basename to libbase 2017-02-27 18:18:31 -08:00
file_sync_service.h Add --sync support to push. 2017-05-19 11:09:58 -07:00
framebuffer_service.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
jdwp_service.cpp adb: switch the jdwp control socket to SOCK_SEQPACKET. 2017-03-20 13:37:13 -07:00
line_printer.cpp adb: add missing newline when printing transfer rate. 2016-08-04 14:56:53 -07:00
line_printer.h Simplify adb LinePrinter newline handling. 2015-12-09 18:42:41 -08:00
protocol.txt Precise command constants on adb/protoxol.txt 2016-08-30 01:30:12 +02:00
remount_service.cpp adb: replacing fs_mgr_read_fstab() with fs_mgr_read_fstab_default() 2017-03-11 09:37:56 +08:00
remount_service.h Failure to find an oem partition should not be a remount failure. 2015-05-11 13:36:13 -07:00
security_log_tags.h ADB security logging 2016-01-21 15:57:02 +00:00
services.cpp Merge "adb: fix two device offline problems." 2017-04-20 19:45:18 +00:00
services.h adb: put legacy shell: service back in. 2015-09-30 15:40:09 -07:00
set_verity_enable_state_service.cpp adb: Allow disabling verity on eng builds when using AVB. 2017-05-17 14:28:47 -04:00
shell_service.cpp adb: kill adb_thread_{create, join, detach, exit}. 2017-04-12 17:12:32 -07:00
shell_service.h Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
shell_service_protocol.cpp adb: create shell protocol class (take 2). 2015-09-08 10:04:10 -07:00
shell_service_protocol_test.cpp adb: fix undefined behavior 2016-10-19 19:39:44 -07:00
shell_service_test.cpp adb: fix subprocess termination for legacy shell. 2016-01-27 17:13:41 -08:00
socket.h Address const issues in preparation for libcxx rebase. 2016-03-29 17:17:51 +00:00
socket_spec.cpp adb: parse tcp socket specs with base::ParseNetAddress. 2016-09-20 13:55:43 -07:00
socket_spec.h adb: parse tcp socket specs with base::ParseNetAddress. 2016-09-20 13:55:43 -07:00
socket_spec_test.cpp adb: parse tcp socket specs with base::ParseNetAddress. 2016-09-20 13:55:43 -07:00
socket_test.cpp adb: kill adb_thread_{create, join, detach, exit}. 2017-04-12 17:12:32 -07:00
sockets.cpp Merge "adb: fix two device offline problems." 2017-04-20 19:45:18 +00:00
sockets.dia auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
sysdeps.h adb: kill adb_thread_{create, join, detach, exit}. 2017-04-12 17:12:32 -07:00
sysdeps_test.cpp adb: enable -Wthread-safety on linux/darwin. 2017-05-03 14:28:21 -07:00
sysdeps_unix.cpp adb: use TCP keepalive. 2016-03-03 15:42:11 -08:00
sysdeps_win32.cpp Revert "adb: check our socketpair ends in our win32 emulation." 2017-03-30 13:12:37 -07:00
sysdeps_win32_test.cpp adb: add script to trace adbd. 2016-12-13 14:31:17 -08:00
test_adb.py libcutils: try all addresses in socket_network_client_timeout. 2016-09-01 15:56:58 -07:00
test_device.py Add --sync support to push. 2017-05-19 11:09:58 -07:00
trace.sh adb: add script to trace adbd. 2016-12-13 14:31:17 -08:00
transport.cpp Add host feature for `push --sync` support. 2017-05-23 14:30:00 -07:00
transport.h Add host feature for `push --sync` support. 2017-05-23 14:30:00 -07:00
transport_local.cpp adbd: optionally use qemud pipe without ro.kernel.qemu 2017-06-12 12:22:32 -07:00
transport_mdns.cpp adb: initialize mDNS asynchronously. 2017-05-04 16:03:12 -07:00
transport_mdns_unsupported.cpp Don't include mDNS support on platforms other than Linux 2017-03-07 14:45:52 -08:00
transport_test.cpp adb: fix two device offline problems. 2017-04-20 10:14:59 -07:00
transport_usb.cpp adb: boolify check_header and check_data. 2017-05-18 13:40:13 -07:00
usb.h adb: move all cleanup to a function with defined ordering. 2017-05-09 14:32:47 -07:00