summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* libsync: OWNERS.Elliott Hughes2018-06-051-0/+3
| | | | | | | | Based on git shortlog and my memory. Bug: N/A Test: N/A Change-Id: I2e821a1214c349fd75f2971f632de3d30c602b83
* Merge "libbase: add host properties support."Elliott Hughes2018-05-2911-75/+77
|\
| * libbase: add host properties support.Elliott Hughes2018-05-2411-75/+77
| | | | | | | | | | | | | | | | Move init and libprocessgroup away from their existing hacks. Bug: N/A Test: ran tests Change-Id: Ifabdd38e0cc4ab2582f1ea59d32159d386f48eb6
* | Merge "init: turn keychords into a standalone class"Treehugger Robot2018-05-293-125/+183
|\ \
| * | init: turn keychords into a standalone classMark Salyzyn2018-05-293-125/+183
| | | | | | | | | | | | | | | | | | Test: init_tests Bug: 64114943 Change-Id: Ie760e4a3a661260ed2aabb8a92fe65fc93521cb5
* | | Merge "init: refactor keychord for testing"Treehugger Robot2018-05-295-43/+51
|\| |
| * | init: refactor keychord for testingMark Salyzyn2018-05-295-43/+51
|/ / | | | | | | | | | | | | | | | | | | | | 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
* | Merge "adb: really fix the mac build."Josh Gao2018-05-253-40/+67
|\ \
| * | adb: really fix the mac build.Josh Gao2018-05-253-40/+67
| | | | | | | | | | | | | | | Test: changed `#if !defined(__APPLE__)` to `#if 0` and ran mma Change-Id: I173cccbfb7bad348ac4796a2d6cebb8490f63479
* | | Merge "Build adbd for recovery"Treehugger Robot2018-05-2515-2/+32
|\ \ \
| * | | Build adbd for recoveryJiyong Park2018-05-2415-2/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Clarify 'fastboot flash' help."Elliott Hughes2018-05-251-3/+4
|\ \ \ \
| * | | | Clarify 'fastboot flash' help.Elliott Hughes2018-05-241-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/80206492 Test: `fastboot --help` Change-Id: Idd4305628836eb0bcbcf3d217db0a9fc54a1d6d6
* | | | | Merge "Change tests to use a temporary dir for files."Christopher Ferris2018-05-241-42/+45
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | Change tests to use a temporary dir for files.Christopher Ferris2018-05-241-42/+45
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Make per-application memcg hierarchy configurable via a property"Elliott Hughes2018-05-241-5/+24
|\ \ \ \ | |/ / / |/| | |
| * | | Make per-application memcg hierarchy configurable via a propertySuren Baghdasaryan2018-05-241-5/+24
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge "Work around b/24465209, do not pack relocation table."Treehugger Robot2018-05-241-1/+1
|\ \ \
| * | | Work around b/24465209, do not pack relocation table.Chih-Hung Hsieh2018-05-241-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Add a specialized LocalUnwinder object."Christopher Ferris2018-05-248-5/+589
|\ \ \
| * | | Add a specialized LocalUnwinder object.Christopher Ferris2018-05-238-5/+589
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "adb: fix mac build."Josh Gao2018-05-241-2/+7
|\ \ \ \ | | |_|/ | |/| |
| * | | adb: fix mac build.Josh Gao2018-05-241-2/+7
| | | | | | | | | | | | | | | | | | | | Test: none Change-Id: I93ff87338aa503588e36404f7566651e18f50292
* | | | Merge "init: finer grained permissions for ctl. properties"Tom Cherry2018-05-242-16/+39
|\ \ \ \ | |/ / / |/| | |
| * | | init: finer grained permissions for ctl. propertiesTom Cherry2018-05-222-16/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, permissions for ctl. property apply to each action verb, so if a domain has permissions for controlling service 'foo', then it can start, stop, and restart foo. This change implements finer grainer permissions such that permission can be given to strictly start a given service, but not stop or restart it. This new permission scheme is mandatory for the new control functions, sigstop_on, sigstop_off, interface_start, interface_stop, interface_restart. Bug: 78511553 Test: see appropriate successes and failures based on permissions Merged-In: I6ce915ae39954a67eb6fe1795a93cf715c352ae4 Change-Id: I6ce915ae39954a67eb6fe1795a93cf715c352ae4 (cherry picked from commit 1debdcf1cf3d45ba9185ab47a265995c676280d8)
* | | | Merge "Support product-specific libraries"Treehugger Robot2018-05-237-37/+104
|\ \ \ \ | |_|_|/ |/| | |
| * | | Support product-specific librariesInseob Kim2018-05-157-37/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Product-specific libraries in /product/lib can be exposed to Android apps by adding the list of the libs into /product/etc/public.libraries-<companyname>.txt. The libs MUST be named as lib<name>.<companyname>.so. Bug: 73095206 Test: with taimen mma -j and runtest.sh. The libs are all loaded in system, but not in vendor. After reinstalling app using adb -r and reopening app, only libraries listed in .txt are loaded Change-Id: I7c386813c72a7b225a7f244b6c5fec4ac0660fd3
* | | | Merge "Add StdioLogger for command-line tools."Elliott Hughes2018-05-236-26/+84
|\ \ \ \
| * | | | Add StdioLogger for command-line tools.Elliott Hughes2018-05-236-26/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: N/A Test: ran tests Change-Id: If366a4ea25aea1becdd3e443eba225e9bd52ebba
* | | | | Merge "Remove a redundant check in statsd socket code."Treehugger Robot2018-05-231-10/+3
|\ \ \ \ \
| * | | | | Remove a redundant check in statsd socket code.Yao Chen2018-05-221-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original liblog code has this additional check because there may be multiple writers registered, there is a for-loop and the retVal is set to be the FIRST error. Statsd doesn't need it because it only has one writer. Test: locally tested. Change-Id: I03f0015d0c29eba19eb2b5ea145380cb98fb2509
* | | | | | Merge changes I9f36cc26,I06561ad0,I42c2a8d0Josh Gao2018-05-237-30/+470
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: adb: add benchmark script. adb: add IOVector. Revert "Revert "adb: add support for O_CLOEXEC to unique_fd pipe wrapper.""
| * | | | | adb: add benchmark script.Josh Gao2018-05-231-0/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: ./benchmark_device.py Change-Id: I9f36cc267b1cbef2d90a30009c87ccc2a8e21795
| * | | | | adb: add IOVector.Josh Gao2018-05-235-29/+322
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An IOVector is a collection of immutable reference counted blocks which can have its head detached at an arbitrary index. This is extremely useful for implementing packet-framed protocols like adb on top of a stream protocol like TCP: a stream reader can read blocks, append them to the end of the IOVector, and then pull packets off of the front. This also lends itself naturally towards scatter/gather I/O, which will enable us to read data from disk and send it across the wire with a theoretical minimum number of copies in USB, and one extra copy over TCP. Since this is basically a generalization of std::deque<Range>, delete Range and replace its uses with IOVector. Test: adb_test Test: wine adb_test.exe Change-Id: I06561ad0bb25a3a51b378b61d257b5b04b41d9c4
| * | | | | Revert "Revert "adb: add support for O_CLOEXEC to unique_fd pipe wrapper.""Josh Gao2018-05-231-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement pipe2 ourselves on darwin. This reverts commit f139ba47a13de0637732af9fd70aab0e8c877e45. Test: none! Change-Id: I42c2a8d07712fe4ac75b5824f754e79a5b9f5cb4
* | | | | | Merge "Libunwindstack: Add -O0 to tools defaults on host"Treehugger Robot2018-05-231-0/+9
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Libunwindstack: Add -O0 to tools defaults on hostAndreas Gampe2018-05-211-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the debug support from the host library to host tools. Test: mmma system/core/libunwindstack Change-Id: Ib6ea5f021d6b8139c545eaa2e6b1675befa4d3bd
* | | | | | Merge "Work around b/24465209, do not use clang lld"Chih-hung Hsieh2018-05-231-0/+1
|\ \ \ \ \ \
| * | | | | | Work around b/24465209, do not use clang lldChih-Hung Hsieh2018-05-231-0/+1
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See longer explanation in b/80093890. Clang lld does not generate expected DT_REL and DT_RELA tags with --hash-style=both and --pack-dyn-relocs=android. I am not sure about the extent of b/24465209, so I would rather not to use lld for these .so files for now. Bug: 80093890 Bug: 24465209 Test: build with USE_CLANG_LLD=true and run dlext.compat_elf_hash_and_relocation_tables Change-Id: I645dbe25c5b9975605e3af5e717ed36c276f14d4
* | | | | | Merge "Revert "adb: add support for O_CLOEXEC to unique_fd pipe wrapper.""Josh Gao2018-05-231-2/+2
|\ \ \ \ \ \
| * | | | | | Revert "adb: add support for O_CLOEXEC to unique_fd pipe wrapper."Josh Gao2018-05-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 948b3e1068470cda390566452ccbaeb526a56e4e. Reason for revert: mac doesn't have pipe2 Change-Id: Id6a517bb500cbea602839f06452bc5e6d92289f1
* | | | | | | Merge "Fix error messages handling."Christopher Ferris2018-05-221-6/+8
|\ \ \ \ \ \ \
| * | | | | | | Fix error messages handling.Christopher Ferris2018-05-211-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Builds. Change-Id: I083ee4a51047e97e2ead78f40c82a21198f2b361
* | | | | | | | Merge "adb: add support for O_CLOEXEC to unique_fd pipe wrapper."Treehugger Robot2018-05-221-2/+2
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | |
| * | | | | | | adb: add support for O_CLOEXEC to unique_fd pipe wrapper.Josh Gao2018-05-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8fd22fe55db4d3dbcbb7318cf4a364eb07323ed0
* | | | | | | | Merge changes I465804fd,Ib5a684bb,If5e66570,I8471cc00,I8ba0a70aJosh Gao2018-05-2212-132/+119
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: adb: convert fdevent over to unique_fd. adb: move towards using unique_fd. adb: delete FDEVENT_DONTCLOSE. adb: remove fdevent_install, fdevent_remove. adb: fix uninitialized variable in AsyncServiceRef.
| * | | | | | | adb: convert fdevent over to unique_fd.Josh Gao2018-05-222-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds fdsan deallocation sanitization to all fds monitored by fdevent, which is most of the ones in adb. Bug: http://b/79786774 Test: python test_device.py Change-Id: I465804fdb0fd0ac019445900a30ba3403f5bf711
| * | | | | | | adb: move towards using unique_fd.Josh Gao2018-05-222-9/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/79786774 Test: treehugger Change-Id: Ib5a684bba88e87e1aad9da452dcdd5edd11f18f4
| * | | | | | | adb: delete FDEVENT_DONTCLOSE.Josh Gao2018-05-223-13/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only existing usage of this doesn't actually need it. Bug: http://b/79786774 Test: mma Change-Id: If5e665705393e938cfdbf1526beb5496a8b99a9b
| * | | | | | | adb: remove fdevent_install, fdevent_remove.Josh Gao2018-05-229-101/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove fdevent_install and fdevent_remove in favor of using fdevent_create and fdevent_destroy, so that we can put RAII types (i.e. unique_fd) into fdevent without worrying about -Wexit-time-destructors or structs that are freed instead of deleted. Bug: http://b/79786774 Test: python test_device.py Change-Id: I8471cc00574ed492fe1b196944976cdaae8b7cff