Commit Graph

39262 Commits

Author SHA1 Message Date
Yifan Hong affa24f28f healthd: move HealthServiceCommon
... to hardware/interfaces. HealthServiceCommon
becomes two separate libraries:
- libhealthservicedefault for services on vendor
- libhealthservicehealthd for healthd

Test: boots
Bug: 63702641
Change-Id: Ibc7096328bb36356cb653e542bab900cd046fe8a
2018-01-22 12:34:04 -08:00
Tom Cherry 1c08d5049f Merge "Move all of init to libinit" am: ad939afaf4 am: 12fbce5c2a
am: 0dfd62f2fe

Change-Id: I6db82e4b9bec0f62522621507a5600c9955ff063
2018-01-22 18:01:30 +00:00
Tom Cherry 0dfd62f2fe Merge "Move all of init to libinit" am: ad939afaf4
am: 12fbce5c2a

Change-Id: I31e17ff558845ea7a38076c1b9472dc970df069d
2018-01-22 17:59:01 +00:00
Tom Cherry 12fbce5c2a Merge "Move all of init to libinit"
am: ad939afaf4

Change-Id: Ib2df5914dd2f24958d95f5b9dfe01577c8b796b0
2018-01-22 17:56:27 +00:00
Tom Cherry ad939afaf4 Merge "Move all of init to libinit" 2018-01-22 17:50:56 +00:00
Christopher Ferris 72fc33fcd0 Merge "Fix regression caused by libbacktrace API change." am: 0ba2c9f4a2 am: 91f68e9340
am: 4794e07e0a

Change-Id: I3f6717ed6ec359608ab049729801078b5e973a73
2018-01-20 18:29:57 +00:00
Christopher Ferris 4794e07e0a Merge "Fix regression caused by libbacktrace API change." am: 0ba2c9f4a2
am: 91f68e9340

Change-Id: I99d2fcdfcfc1712d0281c86188b3e05082a76d18
2018-01-20 18:27:49 +00:00
Christopher Ferris 91f68e9340 Merge "Fix regression caused by libbacktrace API change."
am: 0ba2c9f4a2

Change-Id: I16e50d5d317cd43440338c1ad0da7aacaadc43a2
2018-01-20 18:25:16 +00:00
Christopher Ferris 0ba2c9f4a2 Merge "Fix regression caused by libbacktrace API change." 2018-01-20 18:18:43 +00:00
TreeHugger Robot f26d0dd76f Merge "Create versioned graphics-base-* files." 2018-01-20 16:42:51 +00:00
Christopher Ferris e36afb0429 Fix regression caused by libbacktrace API change.
The stack dump was not printing leading zeros for data after the
change to remove uintptr_t types from the libbacktrace API.

Bug: 65682279

Test: Created an arm tombstone and an arm64 tombstone and verified
Test: that the stack data has leading zeros.
Change-Id: I1fbec2c4fa7c8b0fab18894c5628d18c5a580299
2018-01-20 00:59:11 -08:00
Suren Baghdasaryan 979591b627 lmkd: Select in-kernel vs userspace lmk based on kernel driver presence
Currently selection criteria for in-kernel vs userspace lmk is kernel
driver presence and device not being a Go device. This change removes
Go device check leaving kernel driver presence to be the only selection
criteria.

Bug: 71502948

Change-Id: I394a7920433a8d090e207ea86296356413a63fe7
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2018-01-20 03:50:41 +00:00
Suren Baghdasaryan caa2dc56fd lmkd: Implement kill timeout
New ro.lmk.kill_timeout_ms property defines timeout in ms after a
successful kill cycle for more kills to be considered. This is
necessary because memory pressure after a kill does not go down
instantly and system needs time to reflect new memory state. This
timeout prevents extra kills in the period immediately after a
kill cycle. By default it is set to 0 which disables this feature.

Bug: 63631020
Test: alloc-stress

Change-Id: Ia847118c8c4a659a7fc38cd5cd0042acb514ae28
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2018-01-20 03:49:35 +00:00
Josh Gao 5004e14dfb Merge "debuggerd: add seccomp policies and tests." am: fd0e0db391 am: 76dd792450
am: 5e0ae3f386

Change-Id: Ie1fb2f83e95edfb594cb6d2e8cc52615695ec1aa
2018-01-20 02:56:31 +00:00
Josh Gao 5e0ae3f386 Merge "debuggerd: add seccomp policies and tests." am: fd0e0db391
am: 76dd792450

Change-Id: I660e0fb6805bde7e2adf4b4c07030aa7b8f1eadd
2018-01-20 02:54:26 +00:00
Josh Gao 76dd792450 Merge "debuggerd: add seccomp policies and tests."
am: fd0e0db391

Change-Id: If95e65c018e78dc62d351f03a8c2a0365f4cc0e6
2018-01-20 02:51:47 +00:00
Josh Gao fd0e0db391 Merge "debuggerd: add seccomp policies and tests." 2018-01-20 02:45:37 +00:00
Suren Baghdasaryan c7e9adad93 Merge "lmkd: Allow killing multiple processes to downgrade memory pressure" 2018-01-20 01:15:45 +00:00
Max Bires 905c99b80e Merge "Adding /data/local/traces for traceur app" am: 658e4ddd03 am: 69c428e5a6
am: cd4fa12263

Change-Id: I0ba68a132cc840b0d5b63a9d22b54276b8c168de
2018-01-20 01:02:10 +00:00
Max Bires cd4fa12263 Merge "Adding /data/local/traces for traceur app" am: 658e4ddd03
am: 69c428e5a6

Change-Id: I51eef49ded8be6a24bea2e7afa0694dbc65bc6f1
2018-01-20 01:00:11 +00:00
Max Bires 69c428e5a6 Merge "Adding /data/local/traces for traceur app"
am: 658e4ddd03

Change-Id: Icd96940adf99c754a6bdb06c42ae8b1ad615cf9d
2018-01-20 00:57:00 +00:00
Treehugger Robot 658e4ddd03 Merge "Adding /data/local/traces for traceur app" 2018-01-20 00:51:30 +00:00
TreeHugger Robot 6de4e7ef57 Merge "Add support for esdfs mounting" 2018-01-20 00:33:21 +00:00
Christopher Ferris dedb37d113 Merge "Change all uintptr_t to uint64_t in API." am: e20b4a48fe am: b5ca867bd5
am: ad7e37c40f

Change-Id: I7bd0003df4bf8d8801a8c110a7b3915b4a55d67f
2018-01-19 23:47:42 +00:00
Christopher Ferris ad7e37c40f Merge "Change all uintptr_t to uint64_t in API." am: e20b4a48fe
am: b5ca867bd5

Change-Id: I786d4e22b69b11369b5c8786b19a23d123706a27
2018-01-19 23:43:28 +00:00
Christopher Ferris b5ca867bd5 Merge "Change all uintptr_t to uint64_t in API."
am: e20b4a48fe

Change-Id: Id0bb2e33e87a6889ded796fc29fdb6a273d4c5ff
2018-01-19 23:38:38 +00:00
Christopher Ferris e20b4a48fe Merge "Change all uintptr_t to uint64_t in API." 2018-01-19 23:30:33 +00:00
Elliott Hughes 1dae5867a0 Merge "Fix fastboot memory corruption." am: b6d7f2655d am: 944cc0d002
am: 8d92bb14f2

Change-Id: I0a70020100fa5aae7fcfd98963da855b9238c4ce
2018-01-19 22:52:46 +00:00
Elliott Hughes 8d92bb14f2 Merge "Fix fastboot memory corruption." am: b6d7f2655d
am: 944cc0d002

Change-Id: I98f56eeb4a7a49e33bf4113c495f97c1cab4eada
2018-01-19 22:50:36 +00:00
Elliott Hughes 944cc0d002 Merge "Fix fastboot memory corruption."
am: b6d7f2655d

Change-Id: Idc566a2dad5cdeeee1b049598d9b92e6cf7c3c73
2018-01-19 22:48:03 +00:00
Treehugger Robot b6d7f2655d Merge "Fix fastboot memory corruption." 2018-01-19 22:39:14 +00:00
Tom Cherry 618d3102c9 Move all of init to libinit
I'd be not doing this for a while since some of this code doesn't
compile on host and libinit previously did.  But after realizing
the property_service.cpp (libinit) references symbols in init.cpp
(init) and seeing a new linker error crop up due to that, it's time to
make the fix.

My only hold out previously was that libinit compiled on host bionic
and some of init (builtins.cpp, etc) do not, however given that we
don't actually have host bionic support or host bionic init tests,
that isn't a good reason.  We can and should mock out the libraries
that aren't available with host bionic when ready.

Test: build, unit tests, boot
Change-Id: Ie49362ddb637924efc272540a4f32b693643fcdc
2018-01-19 14:25:48 -08:00
TreeHugger Robot 82b85d0b7c Merge "Change /configfs/sdcardfs to 0770" 2018-01-19 21:57:18 +00:00
Daniel Rosenberg c336f86284 Add support for esdfs mounting
If sdcardfs is turned off, try mounting esdfs.

Test: Override ro.sys.sdcardfs to be false, or run
      sm set-sdcardfs off. If the kernel contains
      esdfs, it will use it.
Bug: 63876697
Change-Id: I4db8bf336743edf62edfae41d753b1e3af163950
2018-01-19 12:58:42 -08:00
Craig Donner efe9fc5bf7 Create versioned graphics-base-* files.
Rather than constantly updating the one file as HAL change,
have a header per version. For now, the old file just includes
the new ones, until all the usage of graphics-base.h can be
cleaned up.

Bug: 66900669
Test: build
Change-Id: I396ce24f8e62b52c129a2b276698e4f00b1993f7
2018-01-19 10:16:22 -08:00
Max Bires 181d11c5cb Adding /data/local/traces for traceur app
Traceur app is being split out of shell user. Previously it logged to
shell's bugreports directory. It no longer has access, so it needs a
new, user-friendly file location to store trace data.

Bug:68126425
Test: Traceur can write and shell can read from this directory
Change-Id: I9e344973fd43eb5699f7a848524e20b06458fb77
2018-01-19 09:37:44 -08:00
Ian Pedowitz c68e359451 Merge "Fixing app compat issue b/72143978" am: 0f2ed7d398 am: 11ecd63660
am: 3e554073a4

Change-Id: I9afc6636175be9da7fc8d8b2900251a7741eaf66
2018-01-19 05:35:53 +00:00
Ian Pedowitz 3e554073a4 Merge "Fixing app compat issue b/72143978" am: 0f2ed7d398
am: 11ecd63660

Change-Id: I7532124bae2d06f1bcce58e86e45f28d3c519b87
2018-01-19 04:21:59 +00:00
Ian Pedowitz 11ecd63660 Merge "Fixing app compat issue b/72143978"
am: 0f2ed7d398

Change-Id: Iee2097bf9db16f0056da2daa6c319a894078195a
2018-01-19 04:13:22 +00:00
Treehugger Robot 0f2ed7d398 Merge "Fixing app compat issue b/72143978" 2018-01-19 02:38:33 +00:00
TreeHugger Robot ccc74532ad Merge "health: Modify IHealthInfo Callback interface to return V2.0 HealthInfo" 2018-01-19 01:55:28 +00:00
Christopher Ferris 7937a36c8e Change all uintptr_t to uint64_t in API.
In order to support the offline unwinding properly, get rid of the
usage of non-fixed type uintptr_t from all API calls.

In addition, completely remove the old local and remote unwinding code
that used libunwind.

The next step will be to move the offline unwinding to the new unwinder.

Bug: 65682279

Test: Ran unit tests for libbacktrace/debuggerd.
Test: Ran debuggerd -b on a few arm and arm64 processes.
Test: Ran crasher and crasher64 and verified tombstones look correct.
Change-Id: Ib0c6cee3ad6785a102b74908a3d8e5e93e5c6b33
2018-01-18 17:26:20 -08:00
Elliott Hughes aaa3b6bbf2 Fix fastboot memory corruption.
Bug: http://b/68664649
Test: echo 'ANDROID!' > fake.img ; fastboot -c `python -c "print 'A'*4000"` boot fake.img
Change-Id: I3299e0fba24a6c1f6178c994731a94cea68f7254
2018-01-18 16:50:14 -08:00
David Sehr 172ada6f3b Merge "Remove libziparchive dependency on libutils" am: 34f8eaab0d am: 8b70132880
am: f9cd8e0e83

Change-Id: Id29bd51f85d7482c105b54f7202b5fc454396873
2018-01-19 00:30:53 +00:00
David Sehr f9cd8e0e83 Merge "Remove libziparchive dependency on libutils" am: 34f8eaab0d
am: 8b70132880

Change-Id: I9efbb31fde3c96967caf354bbbe7ea7931072a0a
2018-01-19 00:26:16 +00:00
Ian Pedowitz 7bb9785a1d Fixing app compat issue b/72143978
Revert "Remove obsolete workaround."

This reverts commit 1f3ac7583f.

Bug: 72143978
Bug: 24465209
Test: Tested failing case on sailfish, reverted back all CL's since
Test: 3471433 for b/24465209 and apps open
2018-01-18 16:25:24 -08:00
David Sehr 8b70132880 Merge "Remove libziparchive dependency on libutils"
am: 34f8eaab0d

Change-Id: I41c99c26aebc23b2cc1d82b2e147e5be5aada114
2018-01-19 00:21:21 +00:00
David Sehr 34f8eaab0d Merge "Remove libziparchive dependency on libutils" 2018-01-19 00:03:47 +00:00
Hridya Valsaraju 79d38ebcaf health: Modify IHealthInfo Callback interface to return V2.0 HealthInfo
Bug: 71860528
Test: vts-tradefed run vts -m VtsHalHealthV2_0
Change-Id: I7de39ffa4c21772d8878c9a3f054bc6dbbde2fb9
2018-01-18 14:51:26 -08:00
Josh Gao e04ca2794a debuggerd: add seccomp policies and tests.
Bug: http://b/38508369
Test: debuggerd_test32/64 on walleye and aosp_x86_64
Change-Id: I7e69e37bcd1823d271b9f2b0a13b8c9cba9a8e84
2018-01-18 13:49:56 -08:00