Commit Graph

30831 Commits

Author SHA1 Message Date
Casey Dahlin bd2c93fab0 Enable mDNS on Darwin
am: 304150a521

Change-Id: Id0d77614fc3bf580c2879b9ad801c77dcbfc7752
2017-03-10 01:16:31 +00:00
Casey Dahlin cef0c7cf7d Don't include mDNS support on platforms other than Linux
am: d6c8091e9f

Change-Id: Ife0b6e08098c05288c3ea63e9063e5116335716a
2017-03-10 01:16:18 +00:00
Casey Dahlin b298855764 Add mDNS device discovery for adb client
am: 13a269ea24

Change-Id: Ib5f80b3ccc9db7c6fe6f5c989e82083d734ce4df
2017-03-10 01:16:05 +00:00
Casey Dahlin f18d33c2c6 adb: Set a hostname for mDNS
am: 1fe3cae67e

Change-Id: Iea8700ec13502e58774968cd7383255f769fa105
2017-03-10 01:15:49 +00:00
Casey Dahlin cc9c92fa95 Make ADBD announce its presence over mDNS
am: 6cd5e0b4ef

Change-Id: Ida2f133f72087f291f2d34e968503ae81c3fbd50
2017-03-10 01:15:31 +00:00
Treehugger Robot f4f95496ce Merge changes from topic 'adb-mdnsd'
* changes:
  Make ADB over mDNS work on Windows
  Enable mDNS on Darwin
  Don't include mDNS support on platforms other than Linux
  Add mDNS device discovery for adb client
  adb: Set a hostname for mDNS
  Make ADBD announce its presence over mDNS
2017-03-10 01:09:42 +00:00
Wei Wang 8c1e3292a8 Merge "init.rc: make sure netd start after post-fs-data" am: f58280e7dc am: 449b59873f
am: 07ace62093

Change-Id: I68103aafa9a23e0bf177d91544e4fbd743d222e4
2017-03-09 23:56:30 +00:00
Wei Wang 07ace62093 Merge "init.rc: make sure netd start after post-fs-data" am: f58280e7dc
am: 449b59873f

Change-Id: I74c0caf08c9fc9124c900c82155988d3697840f9
2017-03-09 23:35:30 +00:00
Wei Wang 449b59873f Merge "init.rc: make sure netd start after post-fs-data"
am: f58280e7dc

Change-Id: I8925325eec13607ae9a048091f178d52778b41ac
2017-03-09 23:32:35 +00:00
Treehugger Robot f58280e7dc Merge "init.rc: make sure netd start after post-fs-data" 2017-03-09 23:29:24 +00:00
Josh Gao 601ccfbcb7 Merge changes from topic 'debuggerd_fallback' am: 48a31877f0 am: 4048633404
am: df6ea17f67

Change-Id: Ib86176ec36fe67605b9b6298921651ae99475982
2017-03-09 22:15:17 +00:00
Josh Gao 829ee4cb10 debuggerd_handler: implement missing fallback functionality. am: e1aa0ca58a am: 75c3c69c06
am: 0600f02f98

Change-Id: Ic31af061b92dede7eb999238961163a59a6b8d0a
2017-03-09 22:15:09 +00:00
Josh Gao df6ea17f67 Merge changes from topic 'debuggerd_fallback' am: 48a31877f0
am: 4048633404

Change-Id: I903d2de5a839f66ac8fd0f6621bff07da859f7a6
2017-03-09 22:11:42 +00:00
Josh Gao 0600f02f98 debuggerd_handler: implement missing fallback functionality. am: e1aa0ca58a
am: 75c3c69c06

Change-Id: Iea3b889aeecda7b9b2978d105209d52f5294ef35
2017-03-09 22:11:35 +00:00
Josh Gao 4048633404 Merge changes from topic 'debuggerd_fallback'
am: 48a31877f0

Change-Id: I7a0721fc9cdce17975b5160ad65e6c61e12fcf87
2017-03-09 22:08:50 +00:00
Josh Gao 75c3c69c06 debuggerd_handler: implement missing fallback functionality.
am: e1aa0ca58a

Change-Id: I917d18f94b2231a451e0f3e7304477a2e124db4c
2017-03-09 22:08:41 +00:00
Josh Gao 48a31877f0 Merge changes from topic 'debuggerd_fallback'
* changes:
  libdebuggerd: add compatibility shim.
  debuggerd_handler: implement missing fallback functionality.
2017-03-09 22:03:31 +00:00
Wei Wang bae9ba3402 init.rc: make sure netd start after post-fs-data
Current init doesn't order the triggeres it scaned, and there is no
guarantee that general event trigger exec first and then event+property
triggers.

This CL will make sure netd started after post-fs-data trigger is done.

Bug: 35110957
Test: marlin boots
Change-Id: I7bb55af4e00f336682388abfa8a06eac2136b7d4
2017-03-09 13:53:39 -08:00
Alex Klyubin 9f71f9f91c Merge "Remove hard-coded policy version from secilc step" am: df2ad0b4ab am: f7fd531a75
am: 33153c6c0d

Change-Id: I7d5075855823d64ea38c970f2e30dff9152a7391
2017-03-09 21:17:07 +00:00
Alex Klyubin 33153c6c0d Merge "Remove hard-coded policy version from secilc step" am: df2ad0b4ab
am: f7fd531a75

Change-Id: If28e0ea58ef447c3eda58ef3f5900251eabf8001
2017-03-09 21:09:50 +00:00
Alex Klyubin f7fd531a75 Merge "Remove hard-coded policy version from secilc step"
am: df2ad0b4ab

Change-Id: Id306db22e2bc02518389314ed377d424ce2fc22a
2017-03-09 21:07:21 +00:00
Treehugger Robot df2ad0b4ab Merge "Remove hard-coded policy version from secilc step" 2017-03-09 21:03:44 +00:00
Josh Gao 9eb4eb1811 libdebuggerd: add compatibility shim.
Avoid breaking internal code when AOSP automerges to internal.

This will be reverted after fixing up the uses on the other end.

Bug: http://b/35858739
Test: treehugger
Change-Id: If1ee03d8d7c218d3ad9f451cfe9a9077753dda02
2017-03-09 12:13:16 -08:00
GuangHui Liu b31151967d Merge "Revert "Create command to run adb tests and output results"" 2017-03-09 19:48:59 +00:00
Josh Gao e1aa0ca58a debuggerd_handler: implement missing fallback functionality.
Allow the fallback implementation to dump traces and create tombstones
in seccomped processes.

Bug: http://b/35858739
Test: debuggerd -b `pidof media.codec`; killall -ABRT media.codec
Change-Id: I381b283de39a66d8900f1c320d32497d6f2b4ec4
2017-03-09 11:26:05 -08:00
Alex Klyubin a71dfec4c2 Remove hard-coded policy version from secilc step
This change makes init's SELinux policy compilation step target the
highest SELinux policy language version supported by the kernel.
Prior to this change the version was simply hard-coded in init.

P. S. clang-format (part of presubmit for this change) is being
counter-productive trying to format the section with secilc
parameters. The resulting layout is harder to read. This commit thus
disables clang-format for this section of code and formats the code
for improved readability.

Test: Remove precompiled policy, device boots up, no new denials.
      Added log statement to print out the policy version passed
      into secilc -- it printed 30, as expected.
Bug: 31363362

Change-Id: I151017b5211712861bafb662525e794a44026dd2
2017-03-09 11:11:23 -08:00
David Lin 27b2c1e678 init.rc: enable ledtrig-transient support for vibrator
This change makes the init process to always attempts to enable
transient trigger for vibrator. This allows the exported properties to
change the ownership later at the on boot stage.

Test: device vibrates with the driver supports ledtrig-transient

Change-Id: If5eb7b7feaefe803f2ead634fbe4fc7b48da84ea
Signed-off-by: David Lin <dtwlin@google.com>
2017-03-09 18:42:33 +00:00
GuangHui Liu 72825be9a8 Revert "Create command to run adb tests and output results"
This reverts commit f583429468.

Change-Id: I7dc694e4b9d89f9530b83fae6343e8b5ff076859
2017-03-09 17:41:48 +00:00
Mark Salyzyn 81321a7980 liblog: replace "frontend" with "transport"
We still do not have any users of the 'frontend' interface, let's
right a wrong and rename it to 'transport' as it makes more sense.
Renames android_log_set_frontend, android_log_get_frontend and
include/log/log_frontend.h.

SideEffects: None
Test: gTest liblog-unit-tests
Bug: 27405083
Change-Id: I7c1c0f3dfdc7cf047285403e306edbd16ad1324d
2017-03-09 09:36:34 -08:00
Mark Salyzyn 04bbc8ea45 liblog: stay away from C++ keyword private
Replace with void* private with priv in context structure.

SideEffects: None
Test: gTest liblog-unit-tests
Bug: 27405083
Change-Id: I670cb0b7fb2f3085ea13b4ac836d84239a3c8572
2017-03-09 09:36:34 -08:00
Mark Salyzyn 2ed51d708e liblog: specify clang format
Switch coding style to match

SideEffects: None
Test: compile
Bug: 27405083
Change-Id: Id426d5c5e3b18f2ceec22b31bbc9781aabf6bcca
2017-03-09 09:36:19 -08:00
Bowgo Tsai c9a1842d31 init: replacing fs_mgr_read_fstab() with fs_mgr_read_fstab_default()
The original default /fstab.{ro.hardware} might be moved to
/vendor/etc/. or /odm/etc/. Use the new API to get the default
fstab instead of using the hard-coded /fstab.{ro.hardware}.

Bug: 35811655
Test: boot marlin with /vendor/etc/fstab.marlin

Change-Id: I8a9c70eda7f68b174ec355910d0fa1eb18a46e21
2017-03-09 23:26:31 +08:00
Bowgo Tsai 46c6dc1a6f fs_mgr: support reading fstab file from /odm or /vendor partition
fstab contains device- and soc- specific content that should reside in
/odm or /vendor partition. This change searches the fstab.${ro.hardware}
file from /odm/etc, /vendor/etc and /, then use the first one found.

Bug: 35811655
Test: boot sailfish
Change-Id: I82f89b41a849faedb64072a7cfc52d7424e1aaa1
2017-03-09 22:35:54 +08:00
Bowgo Tsai 47d342739a fs_mgr: add fs_mgr_read_fstab_with_dt() API
With the early mount support in init, fstab entries of verified partitions
(e.g., /system, /vendor) will be moved into device tree in kernel image.

Those early mount fstab entries will be removed from the fstab file to
prevent duplicated and/or inconsistent settings.

This change adds a new function: fs_mgr_read_fstab_with_dt(), to return
the combined results from both places. It also removes
fs_mgr_read_fstab_file() from the public APIs and makes it as an
internal function.

Bug: 35811655
Test: early mount /vendor with dm-verity on sailfish

Change-Id: I2fba3614685bf9f852a789cda6f53013e2164e60
2017-03-09 21:15:08 +08:00
Josh Gao 76842e8151 Merge "adb: append the libwinpthread COPYING to adb's NOTICE." am: c1b3c8ef26 am: 9d13bc2160
am: b880c671f6

Change-Id: I0f2e8b5855734140354d9eb3180520172da02e32
2017-03-09 07:54:33 +00:00
Josh Gao b880c671f6 Merge "adb: append the libwinpthread COPYING to adb's NOTICE." am: c1b3c8ef26
am: 9d13bc2160

Change-Id: Icc6f177ecf40435e0cef354832152aec3169173f
2017-03-09 07:51:02 +00:00
Josh Gao 9d13bc2160 Merge "adb: append the libwinpthread COPYING to adb's NOTICE."
am: c1b3c8ef26

Change-Id: I4de6f83ea394635710b4e89cc1818233b6605eca
2017-03-09 07:48:01 +00:00
Treehugger Robot c1b3c8ef26 Merge "adb: append the libwinpthread COPYING to adb's NOTICE." 2017-03-09 07:43:56 +00:00
Wei Wang 36baabf07b Merge "init.rc: start netd and zygote early for file based encryption devices" am: 4bf2bc078f am: 1a65e43878
am: 3b272c7bf8

Change-Id: Ie44f4fd8a04b1fa1d0a5c6f7e01410246589c9d9
2017-03-09 06:24:27 +00:00
Wei Wang 3b272c7bf8 Merge "init.rc: start netd and zygote early for file based encryption devices" am: 4bf2bc078f
am: 1a65e43878

Change-Id: I2d2aabda97c7a650aa9812a2d84d60db8ced9d2a
2017-03-09 06:20:56 +00:00
Wei Wang 1a65e43878 Merge "init.rc: start netd and zygote early for file based encryption devices"
am: 4bf2bc078f

Change-Id: I2fad834e5a2daa2823838caff0322b4b43fce47d
2017-03-09 06:17:56 +00:00
Treehugger Robot 4bf2bc078f Merge "init.rc: start netd and zygote early for file based encryption devices" 2017-03-09 06:12:33 +00:00
Jesse Hall 576b773834 Merge "Add NDK libsync to linker whitelists" 2017-03-09 05:55:20 +00:00
Jesse Hall d08467f341 Add NDK libsync to linker whitelists
Test: make
Change-Id: Idb9ddfce7032a3faef7213327d3160968d4a80ba
2017-03-08 21:51:39 -08:00
Bowgo Tsai feb488b7c2 Merge "Add a PREUPLOAD.cfg file to run git-clang-format on every commit" am: 59aea45254 am: 5f3e037e60
am: 1323b630b0

Change-Id: I13c6de8ce398db3963d1ce9df3d90d5798b4c7be
2017-03-09 05:39:56 +00:00
Bowgo Tsai 1323b630b0 Merge "Add a PREUPLOAD.cfg file to run git-clang-format on every commit" am: 59aea45254
am: 5f3e037e60

Change-Id: Ib0ab3843465b3711f9601c75f496e737878c8f75
2017-03-09 05:36:54 +00:00
Bowgo Tsai 5f3e037e60 Merge "Add a PREUPLOAD.cfg file to run git-clang-format on every commit"
am: 59aea45254

Change-Id: Ibfb57f2d8f273c513e7f7fdef97676683a1c6ca9
2017-03-09 05:33:54 +00:00
Treehugger Robot 59aea45254 Merge "Add a PREUPLOAD.cfg file to run git-clang-format on every commit" 2017-03-09 05:30:19 +00:00
Josh Gao d3bf1a8d7e adb: append the libwinpthread COPYING to adb's NOTICE.
We statically link libwinpthread into Windows binaries, but soong
currently can't specify notice files for toolchain_libraries. Add
libwinpthread's COPYING info directly to adb's as a hack.

Bug: http://b/36073965
Test: `make PRODUCT-sdk-win_sdk` + manual inspection of NOTICE.txt
Change-Id: I58d6be0ecf5626b67308f7e94128a2cd44dab161
2017-03-08 21:27:59 -08:00
Mathias Agopian a126305b75 Merge "Add an “is valid” query to ANativeWindow" 2017-03-09 02:28:56 +00:00