Commit graph

39245 commits

Author SHA1 Message Date
Elliott Hughes
10200e4c21 Merge "libbase: add host properties support."
am: d580c441ab

Change-Id: I84f6a494544a291c168234f5c98d15d488c36e27
2018-05-29 17:46:17 -07:00
Elliott Hughes
d580c441ab Merge "libbase: add host properties support." 2018-05-29 23:59:50 +00:00
Mark Salyzyn
f29bb19686 Merge "init: turn keychords into a standalone class"
am: 420fe5fe90

Change-Id: I3c0b494743b2991b30a8a1751b8560142f3c28f1
2018-05-29 16:44:49 -07:00
Mark Salyzyn
334b4c843e Merge "init: refactor keychord for testing"
am: 16dd3582b7

Change-Id: I91303bb157aab0df7349c6af05a50f560a4ef1d1
2018-05-29 16:44:03 -07:00
Treehugger Robot
420fe5fe90 Merge "init: turn keychords into a standalone class" 2018-05-29 23:10:25 +00:00
Treehugger Robot
16dd3582b7 Merge "init: refactor keychord for testing" 2018-05-29 23:03:43 +00:00
Mark Salyzyn
06aeb41c16 init: turn keychords into a standalone class
Test: init_tests
Bug: 64114943
Change-Id: Ie760e4a3a661260ed2aabb8a92fe65fc93521cb5
2018-05-29 13:46:12 -07:00
Mark Salyzyn
eca2507634 init: refactor keychord for testing
Move things around so that keychords.cpp is independent of service
and init and can be individually tested with few dependencies.
Permits also rolling out the keychords as a class in a future commit.
Improve parser checking.

Test: init_tests
Bug: 64114943
Change-Id: I82570bc6269ed478db784ec38a8bc916da2be2be
2018-05-29 13:20:19 -07:00
Josh Gao
a20ce6cfb5 Merge "adb: really fix the mac build."
am: e82401e592

Change-Id: I936b9b5c7d40502852afa7216e9e03a13c6456a5
2018-05-24 23:14:02 -07:00
Jiyong Park
5edce0ef5a Merge "Build adbd for recovery"
am: 6c9bb058c5

Change-Id: I54574b6c041b3f78dbc0ce094fb7bfab35a54df5
2018-05-24 23:08:09 -07:00
Josh Gao
e82401e592 Merge "adb: really fix the mac build." 2018-05-25 05:59:58 +00:00
Josh Gao
6e1246c234 adb: really fix the mac build.
Test: changed `#if !defined(__APPLE__)` to `#if 0` and ran mma
Change-Id: I173cccbfb7bad348ac4796a2d6cebb8490f63479
2018-05-24 22:58:08 -07:00
Treehugger Robot
6c9bb058c5 Merge "Build adbd for recovery" 2018-05-25 05:58:01 +00:00
Elliott Hughes
06d71a71fa Merge "Clarify 'fastboot flash' help."
am: f90137da60

Change-Id: I092853ae3789730989125b09707958da1a6fd2c7
2018-05-24 22:21:43 -07:00
Elliott Hughes
f90137da60 Merge "Clarify 'fastboot flash' help." 2018-05-25 05:06:00 +00:00
Christopher Ferris
2597f62b51 Merge "Change tests to use a temporary dir for files."
am: 04b83d8ec2

Change-Id: I42a8fa0f72686eab6e57c6c2090836d1a4525f65
2018-05-24 18:45:50 -07:00
Christopher Ferris
04b83d8ec2 Merge "Change tests to use a temporary dir for files." 2018-05-25 01:35:07 +00:00
Elliott Hughes
07fc6828a8 Clarify 'fastboot flash' help.
Bug: http://b/80206492
Test: `fastboot --help`
Change-Id: Idd4305628836eb0bcbcf3d217db0a9fc54a1d6d6
2018-05-24 18:30:58 -07:00
Elliott Hughes
dc80312628 libbase: add host properties support.
Move init and libprocessgroup away from their existing hacks.

Bug: N/A
Test: ran tests
Change-Id: Ifabdd38e0cc4ab2582f1ea59d32159d386f48eb6
2018-05-24 18:04:31 -07:00
Elliott Hughes
d23ead4363 Merge "Make per-application memcg hierarchy configurable via a property"
am: 54be246a1f

Change-Id: I6f3e2ccc56e65c74cac259a1522bdc900725c500
2018-05-24 17:09:15 -07:00
Elliott Hughes
54be246a1f Merge "Make per-application memcg hierarchy configurable via a property" 2018-05-25 00:01:03 +00:00
Christopher Ferris
3acf577759 Change tests to use a temporary dir for files.
Avoid using hard-coded paths for generated files. This can cause problems
if the tests are run in parallel.

Also fix a potential race condition in the unwind_through_unreadable_elf_remote
test.

Test: Ran tests in parallel and normally.
Change-Id: Ib42522de49499766a29bda5bfffe737b56715e3f
2018-05-24 16:48:16 -07:00
Suren Baghdasaryan
bc131c3244 Make per-application memcg hierarchy configurable via a property
Introduce ro.config.per_app_memcg Android property to enable/disable
per-application memcg hierarchy.
On low-ram devices (ro.config.low_ram=true) ro.config.per_app_memcg
defaults to true, otherwise it defaults to false.

Bug: 80201565
Test: set ro.config.per_app_memcg=true and verify /proc/<app_pid>/cgroup
membership (memory:/apps/uid_xxx/pid_xxx)
Test: set ro.config.per_app_memcg=false and verify /proc/<app_pid>/cgroup
membership (memory:/)
Change-Id: Iabd3ef6c9c16c774b9da959a7f43b5f66df120a3
Merged-In: Iabd3ef6c9c16c774b9da959a7f43b5f66df120a3
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2018-05-24 15:13:00 -07:00
Chih-Hung Hsieh
58e0074359 Merge "Work around b/24465209, do not pack relocation table."
am: 6e92890135

Change-Id: I4fee7355a017c008c4753ad36800e121d4d698ec
2018-05-24 13:02:03 -07:00
Treehugger Robot
6e92890135 Merge "Work around b/24465209, do not pack relocation table." 2018-05-24 19:07:26 +00:00
Christopher Ferris
0de472328b Merge "Add a specialized LocalUnwinder object."
am: a6a433a27d

Change-Id: Ia16a67886a312faabd7185491b5f161bb9f4fc1b
2018-05-24 11:25:51 -07:00
Josh Gao
d743ebc829 Merge "adb: fix mac build."
am: 925b410c7f

Change-Id: I24661973196be25fb3d031c1b389b34082f6af8a
2018-05-24 11:24:53 -07:00
Tom Cherry
a2d48a633f Merge "init: finer grained permissions for ctl. properties"
am: 05063a8715

Change-Id: I94c7b6f4460d1006bd08365ff77c61d8c86ad43a
2018-05-24 11:24:05 -07:00
Christopher Ferris
a6a433a27d Merge "Add a specialized LocalUnwinder object." 2018-05-24 18:06:02 +00:00
Josh Gao
925b410c7f Merge "adb: fix mac build." 2018-05-24 17:34:41 +00:00
Chih-Hung Hsieh
462df10d91 Work around b/24465209, do not pack relocation table.
Global flag --pack-dyn-relocs=android is used with clang lld.
For b/24465209, we need to override that with pack_relocations:false.

Bug: 24465209
Bug: 80093890
Test: build with USE_CLANG_LLD=true and run dlext.compat_elf_hash_and_relocation_tables
Change-Id: I4edcdf49e184fa45ea2b6b6417654d81bcd09e1d
2018-05-24 09:34:54 -07:00
Tom Cherry
05063a8715 Merge "init: finer grained permissions for ctl. properties" 2018-05-24 16:28:24 +00:00
Inseob Kim
d9debeefd6 Merge "Support product-specific libraries"
am: 39cab7cd25

Change-Id: Iece0f58e9875a4af43c6d646dc71075c2c83a0d0
2018-05-24 07:34:01 -07:00
Josh Gao
99c27d3e99 adb: fix mac build.
Test: none
Change-Id: I93ff87338aa503588e36404f7566651e18f50292
2018-05-24 00:47:05 -07:00
Jiyong Park
a0e75045e6 Build adbd for recovery
adbd (and its dependencies) are marked as recovery_available:true so
that recovery version of the binary is built separately from the one for
system partition. This allows us to stop copying the system version to
the recovery partition and also opens up the way to enable shared
libraries in the recovery partition. Then we can also build adbd as a
dynamic executable.

Bug: 79146551
Test: m -j adbd.recovery
Change-Id: Ib95614c7435f9d0afc02a0c7d5ae1a94e439e32a
2018-05-24 14:11:11 +09:00
Treehugger Robot
39cab7cd25 Merge "Support product-specific libraries" 2018-05-24 03:04:48 +00:00
Christopher Ferris
ca9a54b2c0 Add a specialized LocalUnwinder object.
This object is for doing many local unwinds across different threads
at any point during a program's execution.

Also add LocalUpdatableMaps that will re-read the maps data under certain
circumstances.

This first version does not support jit or dex pc data.

Bug: 74361929

Test: Ran unit tests.
Change-Id: I790662366d3fed677f31b3288182950c494de9ad
2018-05-23 20:02:30 -07:00
Elliott Hughes
db67c344d1 Merge "Add StdioLogger for command-line tools."
am: 98c1b1ccf6

Change-Id: Ifa42c73ee56c2dd946dfbbf50f903cc3704012fc
2018-05-23 16:57:06 -07:00
Elliott Hughes
98c1b1ccf6 Merge "Add StdioLogger for command-line tools." 2018-05-23 23:38:55 +00:00
Yao Chen
af9b744292 Merge "Remove a redundant check in statsd socket code."
am: e6a644bc35

Change-Id: I3357328295ae6e3488a7beaffd725a5ca9c33999
2018-05-23 16:25:01 -07:00
Treehugger Robot
e6a644bc35 Merge "Remove a redundant check in statsd socket code." 2018-05-23 23:07:24 +00:00
Josh Gao
e5e5bccd40 Merge changes I9f36cc26,I06561ad0,I42c2a8d0
am: 3a38310476

Change-Id: Iba85a446a745323c1c9645e2b6421c80ff598272
2018-05-23 16:04:42 -07:00
Josh Gao
3a38310476 Merge changes I9f36cc26,I06561ad0,I42c2a8d0
* changes:
  adb: add benchmark script.
  adb: add IOVector.
  Revert "Revert "adb: add support for O_CLOEXEC to unique_fd pipe wrapper.""
2018-05-23 22:39:48 +00:00
Andreas Gampe
709f4802eb Merge "Libunwindstack: Add -O0 to tools defaults on host"
am: 2ed14f3923

Change-Id: I4af6be8347e22ecceffcb932bb130a836c0a7d52
2018-05-23 13:10:35 -07:00
Treehugger Robot
2ed14f3923 Merge "Libunwindstack: Add -O0 to tools defaults on host" 2018-05-23 19:37:01 +00:00
Chih-hung Hsieh
373ea1ef65 Merge "Work around b/24465209, do not use clang lld"
am: 85bd9ca978

Change-Id: I0a7a65b2be3e20b31d85645d920792b8255e344e
2018-05-23 12:10:15 -07:00
Josh Gao
e7a456fffe Merge "Revert "adb: add support for O_CLOEXEC to unique_fd pipe wrapper.""
am: a2157a7d92

Change-Id: I8d9657c8f3ea7b1e1bebf5a7bb4b122173dc27fa
2018-05-23 11:56:52 -07:00
Christopher Ferris
469a77ba5a Merge "Fix error messages handling."
am: ad707b0222

Change-Id: If342206c1dcc028f696a3aadd99a1df66282cc18
2018-05-23 11:55:31 -07:00
Josh Gao
c2eaf16518 Merge "adb: add support for O_CLOEXEC to unique_fd pipe wrapper."
am: 812a6b77c6

Change-Id: I7a6b5aca9791bbb49eee0d21d26a9ccb3f72a981
2018-05-23 11:53:17 -07:00
Josh Gao
3f111c8963 Merge changes I465804fd,Ib5a684bb,If5e66570,I8471cc00,I8ba0a70a
am: 7a223584c5

Change-Id: Iaeb4520330e45e21bb03f85f06188a1e4e34115f
2018-05-23 11:51:13 -07:00