Commit graph

80702 commits

Author SHA1 Message Date
David Anderson
6be3810b15 Merge "snapuserd: Use fixtures in snapuserd_test." am: 9bbe597b59
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2436355

Change-Id: I68940a117f503bf619daca6f7c1ce372ff36a445
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-15 18:47:54 +00:00
David Anderson
9bbe597b59 Merge "snapuserd: Use fixtures in snapuserd_test." 2023-02-15 17:51:48 +00:00
Treehugger Robot
941a2caa4b Merge "Fastboot: Add new TEXT message to protocol to handle long lines." am: 368a908334
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2372748

Change-Id: I24528bb617631ed1af2d6b025c9f8dd8a6aff672
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-15 13:11:27 +00:00
Treehugger Robot
368a908334 Merge "Fastboot: Add new TEXT message to protocol to handle long lines." 2023-02-15 11:49:24 +00:00
Jeffrey Huang
712bc86ae0 Merge "Create new directory for statsd restricted configs" am: 5c1d43f732
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2435916

Change-Id: I8dff675b7dae6e3934852f9315469716e66c4fa4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-15 01:36:14 +00:00
David Anderson
5169ec88c6 snapuserd: Use fixtures in snapuserd_test.
This refactors snapuserd_test to use SnapuserdTest as a fixture, to
avoid needing a separate harness instance.

Bug: 269361087
Test: snapuserd_test
Change-Id: Iffdc7b621dbe0aff72eff790e7af3f6bb33036ee
2023-02-14 16:59:31 -08:00
Jeffrey Huang
5c1d43f732 Merge "Create new directory for statsd restricted configs" 2023-02-15 00:26:17 +00:00
Raphael Herouart
99097cc020 Fastboot: Add new TEXT message to protocol to handle long lines.
Trusty Benchmarks need to be evaluated in ABL which is much more
controlled than linux. However fastboot prints evry atomic message from
trusty/abl on its own line starting with "(bootloader)"

Bug: 263454481
Test: - "fastboot oem trusty runtest trusty.hwrng.bench"
Change-Id: I99847a8cc54457c8ec809e219736325dce0ac891
2023-02-14 19:58:42 +00:00
Jeffrey Huang
01a73d74d8 Create new directory for statsd restricted configs
Bug: 264407489
Test: m -j
Change-Id: I10e7d6a4a6d011eb9a7453191ab90771b82aa9b3
2023-02-14 11:25:45 -08:00
Treehugger Robot
5c2030d470 Merge "Convert Gatekeeper from HIDL to AIDL" am: d14a7551d5
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2419421

Change-Id: I2a27fbd3c9e9efd03b042c3657e8e475b3f98be3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 18:56:35 +00:00
David Anderson
15b9050a40 Merge "storaged: use correct accumulate variable for publishing disk stats" am: 14c7361f9c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2433362

Change-Id: Ib9b375126768f5686c75979b230fbb24318287e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 18:53:42 +00:00
Treehugger Robot
d14a7551d5 Merge "Convert Gatekeeper from HIDL to AIDL" 2023-02-14 17:48:17 +00:00
David Anderson
14c7361f9c Merge "storaged: use correct accumulate variable for publishing disk stats" 2023-02-14 17:34:50 +00:00
David Anderson
602b94be6d Merge "fastboot: Add a mock transport and some driver tests." am: 2d6c30da7f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2434252

Change-Id: I3dda0b99dd4a9b5b333ded4fadc8f9ab9ad5eff4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 17:00:07 +00:00
David Anderson
2d6c30da7f Merge "fastboot: Add a mock transport and some driver tests." 2023-02-14 16:05:44 +00:00
David Anderson
e6d8dd3e15 fastboot: Add a mock transport and some driver tests.
Bug: N/A
Test: fastboot_test
Change-Id: I08d8dfedcc7e9dad9ce418e0f3aaf5ac69a3a2a2
2023-02-13 18:59:48 -08:00
David Anderson
2e78bc1e55 Merge "fastboot: Add a test for super_flash_helper." am: 6c5b6a8705
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2428713

Change-Id: I15004772381d11d027724a4ba27ff46d1e640bef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 02:50:54 +00:00
David Anderson
6c5b6a8705 Merge "fastboot: Add a test for super_flash_helper." 2023-02-14 02:12:52 +00:00
Daniel Zheng
92d1655562 Merge "Added support for flash task" am: 6183722bcc
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2400938

Change-Id: I232ba3c77323b05c413c127d247c77cc5263c722
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 01:59:39 +00:00
Daniel Zheng
6183722bcc Merge "Added support for flash task" 2023-02-14 00:59:22 +00:00
David Anderson
6b4cc0a8ad Merge "liblp: Fix a crash when adding an image to a partition with no extents." am: 69863bd977
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2428712

Change-Id: Ic4b805953c041622d59ebfd7b0ade6ed26817ad0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 00:08:56 +00:00
David Anderson
ada871875e fastboot: Add a test for super_flash_helper.
This test checks that the sparsing logic matches a canonical sample
output.

Bug: N/A
Test: fastboot_test
Change-Id: Ic7bad08a79e4223f8352db2397b741c2179e76bb
2023-02-13 15:47:10 -08:00
David Munoz Constantine
360a3f67c4 storaged: use correct accumulate variable for publishing disk stats
In the publish function, the variable mAccumulate_pub is used to log
disk performance. However, the variable mAccumulate is used to log disk
stats. The variable mAccumulate is only populated during a stall event.
The publish function is used to log disk stats on a periodic timer,
therefore, it should not rely on stall events to log stats. Instead,
it should rely on the appropriately named mAccumulate_pub variable.

Test: storaged unit tests

Change-Id: I30e00f2c69618705d3f308630b7e023bfc5e384e
Signed-off-by: David Munoz Constantine <dmunozc@squareup.com>
2023-02-13 15:45:20 -08:00
David Anderson
69863bd977 Merge "liblp: Fix a crash when adding an image to a partition with no extents." 2023-02-13 23:28:14 +00:00
Daniel Zheng
0d30718d9c Added support for flash task
Added Flash Task

Test: tested on raven
Change-Id: I4a6c22f795440afeba18497745dddf8d5c570f65
Bug: 194686221

changed flash {partition_name} to work with tasks

Test: tested flash {partition_name} on raven
Change-Id: I1fa45b949ad8e5017026dd542dfe1389279a9e64
Bug: 194686221
2023-02-13 23:27:41 +00:00
Treehugger Robot
eed6047327 Merge "fastboot: Introduce connect / disconnect for network-connected devices" am: 77f4cb4db0
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2429113

Change-Id: I9f56b17a591cf859212501c6d8e21a8895a7ad7b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-13 21:16:26 +00:00
Treehugger Robot
77f4cb4db0 Merge "fastboot: Introduce connect / disconnect for network-connected devices" 2023-02-13 20:25:12 +00:00
Bart Van Assche
850bac57b9 Merge "libprocessgroup: Proceed if activation of an optional controller fails" am: 05c7e3c0c2
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2424613

Change-Id: I91475c113e0e22aee1b489e7e085d9ec850ca5b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-13 18:41:19 +00:00
Bart Van Assche
05c7e3c0c2 Merge "libprocessgroup: Proceed if activation of an optional controller fails" 2023-02-13 18:06:49 +00:00
Treehugger Robot
129ce46e17 Merge "[TeX] Improved readability for Histogram metric APIs" am: cb5b0686e5
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2430774

Change-Id: I98441c509a6f25eee6159e5a80a70e4123ee3914
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-11 05:38:59 +00:00
Treehugger Robot
cb5b0686e5 Merge "[TeX] Improved readability for Histogram metric APIs" 2023-02-11 04:35:00 +00:00
Vova Sharaienko
8ba8b353ca [TeX] Improved readability for Histogram metric APIs
Bug: 268161449
Test: atest expresslog_test
Change-Id: Idd83ca6ec47288ca6ef7ecce333ceb3c88dd761a
2023-02-11 03:27:08 +00:00
Treehugger Robot
7e1218646c Merge "libprocessgroup: Rework SetupCgroup()" am: d35f56b199
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2424612

Change-Id: Ie391e429ef374371f3eddf2bbb5fc6bec907d6bd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-11 01:06:18 +00:00
Akilesh Kailash
9690d12f8b Merge "libsnapshot: Wait for daemon to terminate after snapshot unamp" am: 1324002fbf
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2431652

Change-Id: Ieb696ff287c2209d6d9f9feca60712a0ed6d1217
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-11 01:05:31 +00:00
Treehugger Robot
d35f56b199 Merge "libprocessgroup: Rework SetupCgroup()" 2023-02-11 00:14:26 +00:00
Dmitrii Merkurev
0ee285aa68 fastboot: Introduce connect / disconnect for network-connected devices
Use introduced FileLock and network-connected devices storage entities
to introduce fastboot connect / disconnect commands

Test: everything works like discussed here go/fastboot-connect-disconnect on windows/linux
Bug: 267507450
Bug: 267506875
Change-Id: I2d6495ad567a3ddadd471a89b82d78c8c36a3d52
Signed-off-by: Dmitrii Merkurev <dimorinny@google.com>
2023-02-11 00:02:22 +00:00
Akilesh Kailash
1324002fbf Merge "libsnapshot: Wait for daemon to terminate after snapshot unamp" 2023-02-10 23:49:33 +00:00
Bart Van Assche
b0947e008a libprocessgroup: Proceed if activation of an optional controller fails
Not all Android kernels support all the cgroup controllers mentioned in
task_profiles.json and/or cgroups.json. Support such kernels by ignoring
certain cgroup activation failures.

Bug: 213617178
Change-Id: I90c0bd959f8a6484c4f2fbc895845e073527271e
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2023-02-10 15:02:44 -08:00
Akilesh Kailash
d2063ad7dd libsnapshot: Wait for daemon to terminate after snapshot unamp
During verification, update-engine will invoke
SnapshotMap() and Unmap() for every partition verification.

Post Unmap(), update-engine immediately invokes Map()
for next partition. This is a narrow window wherein, daemon
from previous unmap() is still present and init hasn't
terminated it. Thus, when next MapSnapshot() is invoked,
Connect() fails as init may end up terminating the service.

Wait for the daemon to fully terminate and exit
when Detach() is invoked.

Bug: 258514587
Test: OTA on Pixel, Map/Unmap in a loop
Change-Id: I36b7ce183dfa4c89a873118876d195480e28d48c
Signed-off-by: Akilesh Kailash <akailash@google.com>
2023-02-10 14:31:52 -08:00
Bart Van Assche
1ec6ec4f57 libprocessgroup: Rework SetupCgroup()
Improve the readability of this function by splitting it.

This CL includes the following behavior changes:
- If changing the directory owner and/or mode fails for /sys/fs/cgroup,
  this is considered as a fatal error instead of something that should
  only fail if "Optional" has not been set.
- If mounting the v2 cgroup controller fails, this is considered as an
  error.
- Activating/mounting a cgroup controller only fails if the controller
  has not been marked as optional.

Bug: 213617178
Change-Id: If6908dfdbcb2e1c9637ab4ac8a7625f0a17dc9e0
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2023-02-10 14:18:38 -08:00
Vova Sharaienko
59ee0b7b01 Merge "[TeX] Introduced Telemetry Express Histogram metric Native API" am: 6f9a9092b7
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2428472

Change-Id: I671feb32fadf56d279ace20bf2fec2ed9766ec36
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-10 21:37:08 +00:00
Dmitrii Merkurev
2bb0ed7d61 Merge "fastboot: Introduce network-connected devices storage" am: 4dd1ac9282
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2420559

Change-Id: I2e22e4b32e9986ad709991b4e4d6fcc0ab4595af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-10 21:29:52 +00:00
Vova Sharaienko
6f9a9092b7 Merge "[TeX] Introduced Telemetry Express Histogram metric Native API" 2023-02-10 20:31:43 +00:00
Dmitrii Merkurev
4dd1ac9282 Merge "fastboot: Introduce network-connected devices storage" 2023-02-10 20:27:15 +00:00
Treehugger Robot
f560349535 Merge "BatteryMonitor: report battery health from health status" am: 9ed4eb61a6
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2421362

Change-Id: I911e2fc4503729c81ccee0114075bcf56ef5fae5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-10 10:51:31 +00:00
Treehugger Robot
9ed4eb61a6 Merge "BatteryMonitor: report battery health from health status" 2023-02-10 09:55:21 +00:00
Jack Wu
b57f68aedd BatteryMonitor: report battery health from health status
Bug: 251425963
Test: m
Change-Id: I0a34262c8146032120273ab9be4ef4d3b285d115
Signed-off-by: Jack Wu <wjack@google.com>
2023-02-10 07:40:20 +00:00
Sandeep Dhavale
4b0c7c6490 Merge "Fastboot: Use AServiceManager_waitForService instead of AServiceManager_getService" am: ee065fe080
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2339485

Change-Id: I6cf22345855a87883de8d870ce41088c8f1809c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-10 04:34:41 +00:00
Sandeep Dhavale
ee065fe080 Merge "Fastboot: Use AServiceManager_waitForService instead of AServiceManager_getService" 2023-02-10 04:12:06 +00:00
Treehugger Robot
9879ebd747 Merge "Only run GentleKill test as root" am: 120902971b
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2427211

Change-Id: Iae9028139672c9a2ecb2b0e3d4e4567efc662abd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-10 03:47:56 +00:00