Commit graph

47025 commits

Author SHA1 Message Date
Nick Kralevich
138ab0ec52 Merge "Revert "libprocessgroup: make sure SetupCgroups is called once and only by init""
am: eac1220fba

Change-Id: Ibf1ea3109f51b98ecfadf2fa6f8fa53c535c99a5
2019-03-26 08:40:42 -07:00
Nick Kralevich
eac1220fba Merge "Revert "libprocessgroup: make sure SetupCgroups is called once and only by init"" 2019-03-26 15:28:31 +00:00
Pete Bentley
5f920a0a57 Merge "Tighten native API surface."
am: d2c4eb0dae

Change-Id: I1733369762a612f53b23b8b4a5ce8d0ccc959d34
2019-03-26 02:30:52 -07:00
Pete Bentley
d2c4eb0dae Merge "Tighten native API surface." 2019-03-26 09:19:37 +00:00
Luke Huang
0f419320d3 Merge "Enlarge cmd buffer size of FrameworkListener"
am: 5f890050b7

Change-Id: I91c8bc1e3199b3be40b0c716a8df4b822254def5
2019-03-25 22:55:24 -07:00
Luke Huang
5f890050b7 Merge "Enlarge cmd buffer size of FrameworkListener" 2019-03-26 05:44:10 +00:00
Suren Baghdasaryan
c8ac3b9152 Revert "libprocessgroup: make sure SetupCgroups is called once and only by init"
This reverts commit 798e805715.

Reason for revert: causes SELinux policy denials when vold calls KillProcessesWithOpenFiles.

Bug: 129298168
Change-Id: Ie00bfc2b743757209b40b55d2ee038d7d20c73ff
2019-03-26 02:49:13 +00:00
Suren Baghdasaryan
318e33a401 Merge "lmkd: Fix meminfo logs missing SwapTotal and having wrong field order"
am: eedd5f6855

Change-Id: I89f2abf04b6b50a69528ccd383b38bb83a8b164c
2019-03-25 15:28:17 -07:00
Suren Baghdasaryan
eedd5f6855 Merge "lmkd: Fix meminfo logs missing SwapTotal and having wrong field order" 2019-03-25 22:17:21 +00:00
Elliott Hughes
b574250b5b Merge "Add the two best build system janitors."
am: 8a5a918ef8

Change-Id: I628b238ac8931b333ab9e33e8f3b56d648f2ae92
2019-03-25 13:44:29 -07:00
Suren Baghdasaryan
7bb7f6ef28 Merge "libprocessgroup: make sure SetupCgroups is called once and only by init"
am: 7b2187c372

Change-Id: I1b1562f7042de6268bcd238adfdad1e8ffe6629e
2019-03-25 13:40:13 -07:00
Treehugger Robot
8a5a918ef8 Merge "Add the two best build system janitors." 2019-03-25 20:35:13 +00:00
Suren Baghdasaryan
7b2187c372 Merge "libprocessgroup: make sure SetupCgroups is called once and only by init" 2019-03-25 20:24:51 +00:00
Yi Kong
280caf2e20 Merge "[libbacktrace] Modernize code to use override keyword"
am: 9b1f1ee4cc

Change-Id: I22432cdea88210e32f4f5b5cc83cdd275f1cd0cd
2019-03-25 13:13:30 -07:00
Yi Kong
9b1f1ee4cc Merge "[libbacktrace] Modernize code to use override keyword" 2019-03-25 19:56:48 +00:00
Vic Yang
6c04c01306 Merge "Fix parse_apex_configs doc in README.md"
am: 3d2fb41f17

Change-Id: I31a6ab1af4a97142dbf491fd3db3ef3a487f51d6
2019-03-25 12:11:39 -07:00
Treehugger Robot
3d2fb41f17 Merge "Fix parse_apex_configs doc in README.md" 2019-03-25 18:49:41 +00:00
Suren Baghdasaryan
5ce165ec2e lmkd: Fix meminfo logs missing SwapTotal and having wrong field order
Previous change If154dc364711bf7c86f32e24ddcd10be359386de called
"lmkd: Do not downgrade/ignore events when swap is full" added SwapTotal
into meminfo structure without adding the field into events.logtag file.
This results in logs which missing field and all fields starting with
"SwapFree" get reordered as a result. Fix this by adding the missing field
into events.logtag.

Bug: 129274901
Test: Confirm correct information in the logcat
Change-Id: Ia4de3790a7e9d49a0e4cba8b3161a715eaf6532e
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-03-25 11:04:11 -07:00
Elliott Hughes
d8a4f1463d Add the two best build system janitors.
Test: N/A
Change-Id: Ib5351b50652a7d1e0ab537aedfe6d4335f507cde
2019-03-25 10:25:13 -07:00
Elliott Hughes
0fa7eddc31 Merge "Clean up some mess by only building Android-specific code for the device."
am: 443fdb2fdc

Change-Id: I3ae6f0662bffd9cf81ae401e80821488cccd3933
2019-03-25 09:34:55 -07:00
Suren Baghdasaryan
798e805715 libprocessgroup: make sure SetupCgroups is called once and only by init
SetupCgroups is called by init process during early-init stage and is not
supposed to be called again by anyone else. Ensure that the caller is the
init process, make sure cgroup.rc file is written only one time, keep the
file descriptor to cgroup.rc file open by the init process to ensure all
its further mappings stay valid even if the file is deleted.

Bug: 124774415
Test: build, run, verify no errors or warning in the logcat

Change-Id: I70ccec551fc07c380333566f618b969667dcf783
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-03-25 16:22:10 +00:00
Elliott Hughes
443fdb2fdc Merge "Clean up some mess by only building Android-specific code for the device." 2019-03-25 16:14:23 +00:00
Vic Yang
ad7bf56b1d Merge "Fix sed command on Mac builds"
am: 42a5dd9c41

Change-Id: Ia46de32f6b0603ac79c3427476dc7fe4c7d69da2
2019-03-25 06:43:00 -07:00
Treehugger Robot
42a5dd9c41 Merge "Fix sed command on Mac builds" 2019-03-25 13:37:21 +00:00
Kiyoung Kim
b98aaf83a9 Merge "Do not fail when there is no vndk namespace"
am: 6534c60e43

Change-Id: I41b172ff2315b4b295e344ac52bf568e1c3168e4
2019-03-25 05:37:50 -07:00
Treehugger Robot
6534c60e43 Merge "Do not fail when there is no vndk namespace" 2019-03-25 12:34:16 +00:00
Nicolas Geoffray
9283da301c Merge "Allow makefiles to be parsed in a trimmed down manifest."
am: 7b50fc4bef

Change-Id: I345b2a9b9dc412eca7fb7eb22970e3d75a7dc068
2019-03-25 05:10:39 -07:00
Nicolas Geoffray
7b50fc4bef Merge "Allow makefiles to be parsed in a trimmed down manifest." 2019-03-25 11:58:04 +00:00
Yi Kong
13f2d18e30 [libbacktrace] Modernize code to use override keyword
Generated by clang-tidy.

Test: m checkbuild
Change-Id: I4506a9624002250117148413ea6990749cc1a4da
2019-03-25 02:22:42 -07:00
Nicolas Geoffray
7f03e4eea1 Allow makefiles to be parsed in a trimmed down manifest.
Test: m
Change-Id: Id0e52eacc8e8b5fa75af2050a72be6a8bdadc984
Exempt-From-Owner-Approval: Unbreaks ART team
2019-03-25 09:14:33 +00:00
Hridya Valsaraju
220fcf241a Merge changes from topic "b/129002747"
am: dddf40a7f5

Change-Id: I80cb05e7ff96f91d037ea5bddf7c1c1ab44ca1af
2019-03-24 22:18:56 -07:00
Treehugger Robot
dddf40a7f5 Merge changes from topic "b/129002747"
* changes:
  Make VTS run libdm_test
  Create a VTS test from liblp_test
2019-03-25 05:09:36 +00:00
Kiyoung Kim
23ff8eb9c2 Do not fail when there is no vndk namespace
Some of the legacy devices may not have vndk namespace. To make this
work, libnativeloader should not fail when it fails to search for vndk
namespace.

Bug: 129011845
Test: m -j
Change-Id: I6f68aeb6ae84a00985cc20561b2fcdb461be9724
Merged-In: Id9147d4aeee9ba2b301b6893dea5884dce9c14fa
2019-03-25 13:59:40 +09:00
Nick Kralevich
0ae7fe2d48 Merge "zip_archive.cc: delete android_errorWriteLog"
am: 832bd17a0b

Change-Id: I9e8a477e22e2e75f46d1ee63f8b82bf9e07ba049
2019-03-22 20:18:22 -07:00
Nick Kralevich
a5ff3e1276 Merge "entry_name_utils-inl.h: clear top bit before shifting"
am: a72477630d

Change-Id: I6d61bee38676e1f55cd3593b2186b9f1bc4dc6e0
2019-03-22 20:17:41 -07:00
Nick Kralevich
832bd17a0b Merge "zip_archive.cc: delete android_errorWriteLog" 2019-03-23 03:08:35 +00:00
Nick Kralevich
a72477630d Merge "entry_name_utils-inl.h: clear top bit before shifting" 2019-03-23 03:08:07 +00:00
Hridya Valsaraju
1a9a02c9a6 Make VTS run libdm_test
Bug: 129002747
Test: vts-tradefed run commandAndExit vts-kernel --primary-abi-only --module VtsKernelLibdmTest

Change-Id: If0fb06bde561ae839d3aff96a73eb395082b4653
2019-03-22 15:11:49 -07:00
Hridya Valsaraju
4e3b6332ab Create a VTS test from liblp_test
Bug: 129002747
Test: vts-tradefed run commandAndExit vts-kernel --primary-abi-only --module VtsKernelLiblpTest

Change-Id: I6497428ec1ce93f4c1814c3185c490d3701f1140
2019-03-22 15:11:49 -07:00
Hridya Valsaraju
cf96ead2fa Merge "Fuzzy_fastboot must set back the original slot after test"
am: d5b690993b

Change-Id: I7a356d064a6c09cb0c2058e4ee4321816a399ecb
2019-03-22 14:21:39 -07:00
Hridya Valsaraju
d5b690993b Merge "Fuzzy_fastboot must set back the original slot after test" 2019-03-22 21:09:08 +00:00
Mark Salyzyn
91c0da306e Merge "fs_mgr: overlay: test is alarming on legacy eng builds."
am: 605eab93c6

Change-Id: Ie0fa127f60f388e46f800f716ec3f1a0d286a9af
2019-03-22 11:21:32 -07:00
Mark Salyzyn
605eab93c6 Merge "fs_mgr: overlay: test is alarming on legacy eng builds." 2019-03-22 18:08:20 +00:00
Mark Salyzyn
b43448941a fs_mgr: overlay: test is alarming on legacy eng builds.
On taimen-eng build, the test reports:

  [  WARNING ] user fastboot missing required to invalidate, ignoring a failure
  ERROR: expected "cat: /vendor/hello: No such file or directory"
         got "Hello World! Fri Mar 22 08:56:32 PDT 2019"
  [  FAILED  ] vendor content after flash vendor

Which is a result of a corner case problem on devices that need to
use overlayfs to support adb remount, but do not have fastbootd as
required by Dynamic Android Partitions (DAP).  These legacy non-DAP
devices we consider this a Known Issue.

The message however is too alarming when reporting this Known Issue
that the test has notified you it accepts.  Use standard notification
output format, and change the result to a series of WARNING instead.

The output would then look like:

  [  WARNING ] user fastboot missing required to invalidate, ignoring a failure
  [  WARNING ] expected "cat: /vendor/hello: No such file or directory"
  [  WARNING ] got "Hello World! Fri Mar 22 08:56:32 PDT 2019"
  [  WARNING ] vendor content after flash vendor

Which still tells us there is an issue, but does not cause a state
of extreme alarm when looking at the test output.

Test: adb-remount-test.sh
Bug: 120448575
Bug: 128876541
Bug: 123079041
Change-Id: I1d8d60f23f7670ade7eae1be629264f7507e0cfd
2019-03-22 09:41:20 -07:00
Suren Baghdasaryan
a7da5b4a23 Merge "libprocessgroup: Deliberately leak TaskProfiles and CgroupMap instances."
am: b552c4ad9a

Change-Id: I62d7253f90ebe57b8bfa58aae3dcf6bdacaa21cc
2019-03-22 09:20:15 -07:00
Suren Baghdasaryan
b552c4ad9a Merge "libprocessgroup: Deliberately leak TaskProfiles and CgroupMap instances." 2019-03-22 16:04:56 +00:00
Elliott Hughes
7acb0d39e8 Clean up some mess by only building Android-specific code for the device.
Test: treehugger
Change-Id: Id44721ccd1817d8c537b226f60a58b7cb691fb01
2019-03-21 14:59:45 -07:00
Vic Yang
87215c2530 Fix parse_apex_configs doc in README.md
Test: None
Change-Id: I0871e640cfcab706a5396e3824a1f75239c29840
2019-03-21 11:59:29 -07:00
Colin Cross
9926972bff Merge "Catch SIGBUS in HeapWalker"
am: b566e3cb2f

Change-Id: Ie08b1c6f7e30e562404f03f338fcf89027514a84
2019-03-21 11:05:01 -07:00
Colin Cross
b566e3cb2f Merge "Catch SIGBUS in HeapWalker" 2019-03-21 17:48:03 +00:00