Commit Graph

29071 Commits

Author SHA1 Message Date
Tom Cherry 2bc00140be init: enable C++17
Test: Boot bullhead
Change-Id: I40961ff765461e8aef211d27158ffb7c4be76493
2017-03-13 11:58:58 -07:00
Mark Salyzyn 501c373916 logd: specify clang format
Switch _all_ file's coding style to match to ease all future changes.

SideEffects: None
Test: compile
Bug: 35373582
Change-Id: I470cb17f64fa48f14aafc02f574e296bffe3a3f3
2017-03-13 10:31:09 -07:00
NIEJuhu 56c920aed9 Merge "fs_mgr: fix errno setted by mount_with_alternatives" am: 488525b47b
am: 21a33342af

Change-Id: I6e51f30c5bdb1d5a9c07e8389d1b7328c07509e2
2017-03-12 03:34:37 +00:00
NIEJuhu 21a33342af Merge "fs_mgr: fix errno setted by mount_with_alternatives"
am: 488525b47b

Change-Id: I4aaba5b3a047b3a6d2cf24557794ec45c007eb13
2017-03-12 03:30:37 +00:00
Treehugger Robot 488525b47b Merge "fs_mgr: fix errno setted by mount_with_alternatives" 2017-03-12 03:27:14 +00:00
Steven Moreland 4ba3f784ef Merge "libutils: String\d+ make std_string private" am: 76850afa52
am: 2ebb1e5404

Change-Id: I19c7be5dc5e77d2cb33d9b38b08c1abf42281106
2017-03-11 09:03:20 +00:00
Steven Moreland 2ebb1e5404 Merge "libutils: String\d+ make std_string private"
am: 76850afa52

Change-Id: I1d8278c7545c67a916977983d38ea82756a17403
2017-03-11 08:59:48 +00:00
Treehugger Robot 76850afa52 Merge "libutils: String\d+ make std_string private" 2017-03-11 08:55:10 +00:00
Steven Moreland 2aac335128 libutils: String\d+ make std_string private
This method is still used by prebuilts, but making it private to start
the process of removing it from everywhere.

Test: pass
Bug: 35363681
Change-Id: I4d53f68d10c9abcca32023c4d930e99912afa697
2017-03-10 22:51:55 -08:00
Bowgo Tsai 6ef871c949 Merge "adb: replacing fs_mgr_read_fstab() with fs_mgr_read_fstab_default()" am: eca92a5a6f
am: 4ba84b2dd2

Change-Id: If1a9fc87987e27429c02fa1c7a71b79d690d3454
2017-03-11 03:57:51 +00:00
Bowgo Tsai 4ba84b2dd2 Merge "adb: replacing fs_mgr_read_fstab() with fs_mgr_read_fstab_default()"
am: eca92a5a6f

Change-Id: I192ac96673a3c7e8b4f81c7b27fd761d445556ee
2017-03-11 03:54:23 +00:00
Treehugger Robot eca92a5a6f Merge "adb: replacing fs_mgr_read_fstab() with fs_mgr_read_fstab_default()" 2017-03-11 03:48:49 +00:00
Josh Gao e11a7961f6 Merge changes I7d394c66,I737d66e8 am: bc8433d582
am: c8ac6dca3b

Change-Id: I3a00f9f2467155522929b55baa3b6e6ce78e787b
2017-03-11 01:56:43 +00:00
Josh Gao c8ac6dca3b Merge changes I7d394c66,I737d66e8
am: bc8433d582

Change-Id: I40a4e7f44dad478a7796a4f591d46369ad95b6be
2017-03-11 01:53:15 +00:00
Josh Gao bc8433d582 Merge changes I7d394c66,I737d66e8
* changes:
  crash_dump: improve logging for when a process dies prematurely.
  debuggerd_handler: restore errno.
2017-03-11 01:45:28 +00:00
Bowgo Tsai 66ee277353 adb: 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, then run 'adb remount'
Change-Id: I927209ce3c5bea45c01ed631a7c4c320fe728c00
2017-03-11 09:37:56 +08:00
David Lin f357e1989a Merge "init.rc: enable ledtrig-transient support for vibrator" am: 75b66a6f2a
am: 64af4183a1

Change-Id: Iad3180dc22a6a232dd60da4c83c502325f30f33f
2017-03-11 01:31:47 +00:00
David Lin 64af4183a1 Merge "init.rc: enable ledtrig-transient support for vibrator"
am: 75b66a6f2a

Change-Id: I70c278c537fd96b428a85755d40f114cf0ff2a29
2017-03-11 01:28:19 +00:00
Treehugger Robot 75b66a6f2a Merge "init.rc: enable ledtrig-transient support for vibrator" 2017-03-11 01:23:18 +00:00
Jeff Vander Stoep 33af0dc04c Merge "Build split file_contexts on TREBLE builds" am: 2d03e64b95
am: f695cd1ec6

Change-Id: I2cc31e39a985770278460f1695593523216846b1
2017-03-11 00:03:20 +00:00
Jeff Vander Stoep f695cd1ec6 Merge "Build split file_contexts on TREBLE builds"
am: 2d03e64b95

Change-Id: I76eacc102235ba5b989a15f678c8ecbf5b744ff8
2017-03-10 23:59:48 +00:00
Treehugger Robot 2d03e64b95 Merge "Build split file_contexts on TREBLE builds" 2017-03-10 23:54:18 +00:00
Christopher Ferris 83bc97b458 Merge "Add a 2 width option of clang format." am: 9a22ae5f57
am: 692048ae6b

Change-Id: I2c35bf8806121dc16ff7c9dd18189291e1140158
2017-03-10 22:56:39 +00:00
Christopher Ferris 692048ae6b Merge "Add a 2 width option of clang format."
am: 9a22ae5f57

Change-Id: Id8022fe0da3d6940d68b5fead2ee431f7065f9f9
2017-03-10 22:53:09 +00:00
Josh Gao 428daafc5b crash_dump: improve logging for when a process dies prematurely.
If a process that's getting dumped dies before crash_dump starts (e.g.
because seccomp immediately kills it after it execs crash_dump),
improve the error message to not just say "target died before we could
attach".

Bug: http://b/36077710
Test: inserted an exit in the handler, inspected output
Change-Id: I7d394c66d60d328b096b15654b3648e1ed711728
2017-03-10 14:52:34 -08:00
Christopher Ferris 9a22ae5f57 Merge "Add a 2 width option of clang format." 2017-03-10 22:46:29 +00:00
Josh Gao ec91809dae debuggerd_handler: restore errno.
Bug: http://b/31448909
Test: mma
Change-Id: I737d66e8bed5fb31c2558f68608d3df460fa73c9
2017-03-10 14:44:54 -08:00
Andreas Gampe df13a9e51e Merge "ASAN: Separate SANITIZE_LITE from asan.options" am: e7195be772
am: ee7be79816

Change-Id: I61a2083dbd4d7d895a7d5fd859b694e808e537c5
2017-03-10 21:14:53 +00:00
Andreas Gampe ee7be79816 Merge "ASAN: Separate SANITIZE_LITE from asan.options"
am: e7195be772

Change-Id: I6b7c8f2dede303b1b2168888ede8c9e3f8062688
2017-03-10 21:11:24 +00:00
Treehugger Robot e7195be772 Merge "ASAN: Separate SANITIZE_LITE from asan.options" 2017-03-10 21:03:56 +00:00
Josh Gao 6c54561d1e Merge "adb: properly erase destroyed jdwp_trackers." am: e02eba8fd2
am: b0e8bbfc99

Change-Id: I4c6b3d1acb3b75a2fce6d850b256b15c823c3de1
2017-03-10 21:03:53 +00:00
Christopher Ferris a78d9a293c Add a 2 width option of clang format.
Make the default the 4 tab space version.

Add a link to the 2 space version for libbacktrace.

The only other difference between the 4 space and 2 space tab version
is that the 2 space tab version allows short functions on a single line.
This is for things like constructors, short destructors, or accessor
functions. I believe this is closer to the Google C++ style guide.

Bug: 36046320

Test: NA
Change-Id: Ida08db18902eeb101f42869dd5590182529d54ef
2017-03-10 13:01:39 -08:00
Josh Gao b0e8bbfc99 Merge "adb: properly erase destroyed jdwp_trackers."
am: e02eba8fd2

Change-Id: Ia87892fecebc64198b70acf089aa7eac3652175e
2017-03-10 21:00:23 +00:00
Treehugger Robot e02eba8fd2 Merge "adb: properly erase destroyed jdwp_trackers." 2017-03-10 20:54:51 +00:00
Josh Gao 6def9bd67c adb: properly erase destroyed jdwp_trackers.
std::remove_if moves to-be-removed elements to the end of the vector
and returns an iterator that must be .erased.

Bug: http://b/35772578
Test: mma
Change-Id: Idfe8520e176204ac5ce000c30704873a3ffe6c9c
2017-03-10 11:24:37 -08:00
Andreas Gampe 21bb2e0388 ASAN: Separate SANITIZE_LITE from asan.options
Add SANITIZE_LITE_SERVICES to drive usage of asan.options for a
large set of native services.

Test: m SANITIZE_TARGET=address SANITIZE_LITE=true
Test: m SANITIZE_TARGET=address SANITIZE_LITE=true SANITIZE_LITE_SERVICES=true
Change-Id: I84458dcc1b193b762daeb3004cf6c49e2fd8fae2
2017-03-10 10:48:00 -08:00
Christopher Ferris 10ab87f646 Restore errno in signal handlers.
There was a problem where errno could be set in a signal handler
and cause bugs if other system calls were interrupted.

There isn't strong evidence this is causing any issues, but add this
proactively.

Bug: 31448909

Test: Ran the backtrace unit tests, backtraces few random processes,
Test: forced the ANR path for some zygote based processes.
Test: Ran the art ThreadStress test a few times.
Change-Id: I5abc9e330a5e86cea7015e2362f66044c6bc37d0
2017-03-10 10:13:48 -08:00
Mark Salyzyn 17754dc069 Merge changes I7c1c0f3d,I670cb0b7,Id426d5c5 am: ce7ee088ff
am: 8294bbf2d0

Change-Id: I3730c43e182704edb77cddbd5ea4c6a3fdd95f7c
2017-03-10 15:26:08 +00:00
Mark Salyzyn 8294bbf2d0 Merge changes I7c1c0f3d,I670cb0b7,Id426d5c5
am: ce7ee088ff

Change-Id: I952d27f5b06753ae424a7e92b9511c95ef0c355b
2017-03-10 15:22:05 +00:00
Treehugger Robot ce7ee088ff Merge changes I7c1c0f3d,I670cb0b7,Id426d5c5
* changes:
  liblog: replace "frontend" with "transport"
  liblog: stay away from C++ keyword private
  liblog: specify clang format
2017-03-10 15:15:22 +00:00
NIEJuhu 5c31ffe9cd fs_mgr: fix errno setted by mount_with_alternatives
mount_with_alternatives should set errno to match the 1st mount failure.

Bug: N/A
Test: run `fs_mgr -a <fake_fstab>` and check dmesg log
Change-Id: If4148d327f75c659b843e95f85568ea49c5d0180
Signed-off-by: NIEJuhu <niejuhu@xiaomi.com>
2017-03-10 08:36:11 +00:00
Bowgo Tsai 9fc983315a Merge changes from topic 'fstab_relocation' am: ac13718d0a
am: 8f7125fbee

Change-Id: Ic350345536d3d6faf63c1e75a205b56a934a3657
2017-03-10 02:15:02 +00:00
Bowgo Tsai 8f7125fbee Merge changes from topic 'fstab_relocation'
am: ac13718d0a

Change-Id: Id94e7c5cc454f5b7d9c7b410d3358eaaa8768a97
2017-03-10 02:12:38 +00:00
Treehugger Robot ac13718d0a Merge changes from topic 'fstab_relocation'
* changes:
  init: replacing fs_mgr_read_fstab() with fs_mgr_read_fstab_default()
  fs_mgr: support reading fstab file from /odm or /vendor partition
  fs_mgr: add fs_mgr_read_fstab_with_dt() API
2017-03-10 02:07:34 +00:00
Casey Dahlin b3b862ed2e Merge changes from topic 'adb-mdnsd' am: f4f95496ce
am: 1b35c3f471

Change-Id: Ie93a0a2d4361bcc8d18d3433c0cc0369a864c815
2017-03-10 01:21:24 +00:00
Casey Dahlin 31a2258afe Enable mDNS on Darwin am: 304150a521
am: bd2c93fab0

Change-Id: Ic05f4e2c36f5f4ea70ce876fdf8d6d66ea69cd32
2017-03-10 01:21:17 +00:00
Casey Dahlin e7a31f3ef7 Don't include mDNS support on platforms other than Linux am: d6c8091e9f
am: cef0c7cf7d

Change-Id: Ibc4115bed3614554ad7853928aee3c16937dfc9b
2017-03-10 01:21:11 +00:00
Casey Dahlin 50d1e6099e Add mDNS device discovery for adb client am: 13a269ea24
am: b298855764

Change-Id: I9a38becff693264e91baa38ce1fd485c3443d1aa
2017-03-10 01:21:03 +00:00
Casey Dahlin 0b13090ac7 adb: Set a hostname for mDNS am: 1fe3cae67e
am: f18d33c2c6

Change-Id: I1e9a6c54252ded977a6b7ae90d545d6204f89dbd
2017-03-10 01:20:57 +00:00
Casey Dahlin 93b67d4897 Make ADBD announce its presence over mDNS am: 6cd5e0b4ef
am: cc9c92fa95

Change-Id: Icbf846986969db2932f049451fa1c40b333ba3e1
2017-03-10 01:20:50 +00:00