Commit graph

67555 commits

Author SHA1 Message Date
Yifan Hong
2277c27fcc Merge "Add compression to dump" 2021-02-08 22:47:05 +00:00
Treehugger Robot
a24aef614a Merge "libsnapshot: Disable the update space swap test on non-VABC." 2021-02-08 21:31:13 +00:00
Treehugger Robot
20bf5a8aff Merge "Add support for compressed snapshot merges in fastboot." 2021-02-08 21:30:11 +00:00
Yifan Hong
3e6b93ca11 Merge "libsnapshot: Communicate compression status to update_engine." 2021-02-08 21:13:10 +00:00
Treehugger Robot
4abe7c4165 Merge "Unlink the tombstone proto file before linking the temporary fd." 2021-02-08 19:23:44 +00:00
Treehugger Robot
bbae54c2f6 Merge changes from topic "freezer path"
* changes:
  libprocessgroup: define path for freezer search
  Revert^3 "libprocessgroup: move freezer to uid/pid hierarchy"
2021-02-08 17:19:50 +00:00
Julien Desprez
e1ee7873b3 Merge "Update bootstat_test to really work host-side" 2021-02-06 04:32:57 +00:00
Elliott Hughes
b363fc8b74 Merge "Let the kernel hwrng thread manage hw_random mixing." 2021-02-06 00:52:19 +00:00
Ady Abraham
f633b918da Merge "Remove stoza@ from OWNERS" 2021-02-06 00:49:16 +00:00
Peter Collingbourne
1e1d920785 Unlink the tombstone proto file before linking the temporary fd.
We were already doing this for the text tombstones but not for protos,
which meant that we stopped producing protos once we hit the limit
on the number of tombstones. Move the code for the text tombstones
into a common location and call it for both types.

Change-Id: I4951150da51a32d50821d147458fc5c18200c9d4
2021-02-05 16:41:48 -08:00
Josh Gao
3a2f885ec6 Merge "Let system_server truncate tombstones." 2021-02-05 20:35:19 +00:00
Marco Ballesio
23fddab32b libprocessgroup: define path for freezer search
This path can be used for clients to verify freezer support on a
specific platform.

Bug: 168058155
Test: verified correct functioning with ActivityManager
Change-Id: Ie15feed274ccbbe31228ee98c50eab3f4dd479a7
2021-02-05 12:20:56 -08:00
Marco Ballesio
079477468f Revert^3 "libprocessgroup: move freezer to uid/pid hierarchy"
This reverts commit 7707909ba2.
Bug: 179006802
Test: verified correct functioning of the freezer after reverting

Change-Id: I848146a18a0879010abf5b00e7081f2771059064
2021-02-05 12:19:58 -08:00
Elliott Hughes
eedd38a82a Let the kernel hwrng thread manage hw_random mixing.
This has been something the kernel does automatically since 2014, so
there's no obvious reason to add extra work during boot to duplicate
that effort.

Bug: http://b/179086242
Test: treehugger
Change-Id: I44cce99a892e4f2a6a303c2126bd29f955f5fb23
2021-02-05 11:10:00 -08:00
Julien Desprez
2c8cb01b5a Update bootstat_test to really work host-side
bootstat_test is marked host_supported:true but use
a AndroidTest.xml config that can only work for device.

Deleting the explict config to rely on the auto-gen ones.
Adding unit_tests:true to run in presubmit

Test: presubmit, atest bootstat_tests --host
Bug: 179092189
Change-Id: Ib6694f760d9ef5f867cd1982f7e1fe65ce9dd62d
2021-02-05 17:26:21 +00:00
David Anderson
565577f926 Add support for compressed snapshot merges in fastboot.
SnapshotManager::New() is now preferred in recovery. Previously we used
NewForFirstStageMount(), which is technically incorrect as that enables
code paths specifically for first-stage init.

We also explicitly label the snapuserd context, since rootfs in recovery
has unlabelled files.

Finally, we add a timeout to internal calls to
CreateSnapshotsAndLogicalPartitions. Without this, WaitForDevice() calls
will terminate immediately, which breaks VABC given the more complex
device stacking that is created.

Bug: 168258606
Test: fastboot snapshot-update merge
Change-Id: I3a663b95c0b1eabaf14e6fde409c6902653c3c5e
2021-02-04 20:21:18 -08:00
Yo Chiang
df33cb98ef Merge "fs_mgr: Harden adb-remount-test.sh by ERR trap handler" 2021-02-05 03:41:32 +00:00
Treehugger Robot
fe13d497f4 Merge "Symbol files describing APIs across updatable components are reviewed" 2021-02-05 03:12:45 +00:00
Yifan Hong
0badb7ca4c Add compression to dump
Add compression flag to SnapshotManager::Dump.

Test: snapshotctl dump

Change-Id: Ie1f6562736d4e83ef7e70d79c761ee42194d7fc5
2021-02-04 18:44:08 -08:00
David Anderson
114a2c0916 libsnapshot: Communicate compression status to update_engine.
Bug: 178732971
Test: manual with statsd_testdrive

Change-Id: If480e5ef1f6fcdde7ccf6f5060f12d021f75b9a1
2021-02-04 18:44:08 -08:00
Treehugger Robot
cfb743e42c Merge "Revert^3 "libprocessgroup: uid/pid hierarchy for cgroup v2"" 2021-02-05 01:59:15 +00:00
Treehugger Robot
eab681a3be Merge "Remove TEST_MAPPING entry based on go/a-unit-tests update" 2021-02-05 01:54:35 +00:00
Elliott Hughes
cb1c783530 Merge "Remove all the cpp_std: "experimental"s." 2021-02-05 01:32:12 +00:00
Elliott Hughes
0c93614a35 Merge "Update NOTICE." 2021-02-05 01:31:47 +00:00
Marco Ballesio
088924af2a Revert^3 "libprocessgroup: uid/pid hierarchy for cgroup v2"
a1a0497984

Bug: 151660495
Test: verified proper boot in regular mode and proper working of adb in
recovery

Change-Id: I1276796e982fee932cdea7eb145f20b3f1b3463d
2021-02-04 22:33:34 +00:00
David Anderson
c68fe7efec libsnapshot: Disable the update space swap test on non-VABC.
Bug: 179111359
Change-Id: I5d435cef51bc3d902cc16a0a12766206907de3ee
2021-02-04 14:09:00 -08:00
Dan Stoza
3a600f0221 Remove stoza@ from OWNERS
Removing stoza@ (and other stale entries) from OWNERS since he's leaving

Bug: N/A
Test: N/A
BYPASS_INCLUSIVE_LANGUAGE_REASON=Correct pronouns for stoza@
Change-Id: I2291a580bd7724717b05ce6c5c01d0b2532460db
2021-02-04 20:10:31 +00:00
Elliott Hughes
89ea3fe5ac Update NOTICE.
This was horrifically out of date... This NOTICE file covered a bunch of
third-party code that isn't in system/core/ (and some of which isn't in
the system at all any more).

Test: N/A
Change-Id: Ia564321b71c3993706b336604f983ae4e0964704
2021-02-04 10:10:17 -08:00
Bill Yi
d42b34cb65 Merge "Merge RQ1A.210205.004 to aosp-master - DO NOT MERGE" 2021-02-04 17:08:40 +00:00
Elliott Hughes
9bfd986422 Remove all the cpp_std: "experimental"s.
None of them are necessary, and it's more intention-revealing to say
`c++2a` or whatever anyway.

Test: treehugger
Change-Id: Ie1df26499d160d6fc757d17fcb0121997bda14f9
2021-02-04 09:05:01 -08:00
Julien Desprez
427e9f08f9 Remove TEST_MAPPING entry based on go/a-unit-tests update
cc_test_host now all run in presubmit without any need for explicit TEST_MAPPING

Change-Id: I379ef754b4cb645976daedcd04eae58f2eb32a75
Test: presubmit
Bug: 177450457
2021-02-04 16:50:56 +00:00
Jiyong Park
9ae5daba80 Symbol files describing APIs across updatable components are reviewed
The build system will soon require that symbol files describing APIs
across updatable components (e.g. across APEXes or across sytem/vendor)
have the ".map.txt" suffix. This will trigger the NDK API review in the
gerrit so that backwards incompatible changes are prevented.

Bug: N/A
Test: m nothing
Change-Id: I114563782f8e796365ca141eb5d22d2e203a7f55
2021-02-04 21:05:21 +09:00
Josh Gao
4b24f09124 Merge "Expose libtombstone_proto srcs." 2021-02-04 02:43:10 +00:00
Bill Yi
183b70fcba Merge RQ1A.210205.004 to aosp-master - DO NOT MERGE
Merged-In: If196679f41cd9a46e51bbe568a194d91e3fddccc
Merged-In: I841b7d4f3dffeb056a2c3deb4ecba2e517ef74b4
Change-Id: I8863ce6b6d63a77f81417a7826aee82836bd11f2
2021-02-03 17:01:33 -08:00
Treehugger Robot
4b3f556e2d Merge "Status update for shell and utilities." 2021-02-04 00:53:08 +00:00
Treehugger Robot
3ce24b87a2 Merge "Remove invalid error message in the merge path." 2021-02-03 21:51:30 +00:00
Elliott Hughes
d398153858 Status update for shell and utilities.
I've also made it a bit more visible where stuff was added.

Test: gittiles
Change-Id: Ifbe66aec776b52d9c0be5b627f7e7d16fd88ef17
2021-02-03 12:33:14 -08:00
Peter Collingbourne
d7f815eb04 Merge "Fix CrasherTest.smoke in debuggerd_test." 2021-02-03 19:20:10 +00:00
Akilesh Kailash
392dbeeb07 Remove invalid error message in the merge path.
Bug: 167409187
Test: Compile snapuserd
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: I7a494627b001cb5be20ac6b1bbded64574c3cec0
2021-02-03 18:39:01 +00:00
Treehugger Robot
9e082d4952 Merge "fs_mgr: Harden adb-remount-test.sh on read-only filesystem" 2021-02-03 08:04:00 +00:00
Peter Collingbourne
939d074236 Fix CrasherTest.smoke in debuggerd_test.
Now that we default to sync MTE in tests, the default tagged_addr_ctrl
in this test needs to be updated.

Bug: 135772972
Change-Id: I9bf6fb29df9799d1ed8c0d8b66f4d2891f487d80
2021-02-02 19:00:48 -08:00
Josh Gao
88846a2ccf Let system_server truncate tombstones.
There's no way to atomically unlink a specific file for which we have an fd from
a path, which means that we can't safely delete a tombstone without coordination
with tombstoned, which is risky. For example, if we use flock on the directory,
and system_server crashes while holding the lock, we risk deadlock.

We do the next best thing, and keep a file descriptor around for every
tombstone, and truncate it, which requires system_server to be able to
write to tombstones (which are owned by the system group).

Test: treehugger
Change-Id: I6ba7f1fe87ee1a4b57bdb3741e8ec9fbc80788c9
2021-02-01 17:48:58 -08:00
Josh Gao
d3df0ae39d Expose libtombstone_proto srcs.
Test: treehugger
Change-Id: I4f993e6bf025120bda82eb60f6c534f43030085c
2021-02-01 17:43:18 -08:00
Arve Hjønnevåg
7b204ac4ca Merge "trusty: Android part of dynamic app loader" 2021-02-02 01:39:56 +00:00
Bart Sears
6ba9afd1e9 Merge "Revert "Remove ART APEX from the bootstrap apexes"" 2021-02-02 01:11:38 +00:00
Treehugger Robot
ceadc2332b Merge "Specify version for aidl_interface explicitly" 2021-02-02 00:08:08 +00:00
Mitch Phillips
701dfe7469 Merge "[MemInit] Remove process_disable_memory_mitigations" 2021-02-01 23:32:24 +00:00
Evgenii Stepanov
44274d17a0 Merge "Scale timeouts in debuggerd and llkd." 2021-02-01 23:25:10 +00:00
chapin
6d869dd6ab Revert "Remove ART APEX from the bootstrap apexes"
Revert submission 1563392-remove_art_from_bootstrap

Reason for revert: Bug: 179002105
Reverted Changes:
I65e2a2089:Remove ART APEX from the bootstrap apexes
Ic20df80e2:Remove ART APEX from the bootstrap apexes

Change-Id: I474ab95805c5ca28e0bba91f3d226e8db5a7a9ea
2021-02-01 22:29:59 +00:00
Andrei Homescu
08d66c5036 trusty: Android part of dynamic app loader
Implement the Android tool that uploads Trusty application package files
to the Trusty app loader.

Bug: 115420908
Test: trusty_apploader boot-start-srv.app
Change-Id: Ie21b8cad749fd565579483944a8b71e861d3a51a
2021-02-01 14:00:35 -08:00