Commit graph

80858 commits

Author SHA1 Message Date
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
Treehugger Robot
120902971b Merge "Only run GentleKill test as root" 2023-02-10 03:22:00 +00:00
Bart Van Assche
79b8448729 Merge "libprocessgroup: Introduce a local variable in CgroupMap::ActivateControllers()" am: d9098252c6
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2424611

Change-Id: Ie3f1b898ddcf8523994ebaacfdbd9e3db671ae1c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 21:42:33 +00:00
David Anderson
28dba2073d Merge "fastboot: Add fastboot_test to TEST_MAPPING." am: d45181f1c2
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2427434

Change-Id: Ifa6db6471ee8eba79135be6dd21be2bf752782e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 21:42:22 +00:00
Treehugger Robot
10b052c0fd Merge "[LSC] Add LOCAL_LICENSE_KINDS to system/core" am: 392eae64a8
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2428633

Change-Id: I11c2cac3b323225c87372307fdada3a161f8d6fa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 21:42:11 +00:00
Automerger Merge Worker
19aaedc771 Merge "Merge "libsnapshot: Disable 32-bit VTS tests on 64-bit systems." into android13-tests-dev am: cb6ea9edb4" am: 5b6afde079
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2427052

Change-Id: I31af28d5de7cbfe0a0b4bdaa3e2d06cab21d762f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 21:41:50 +00:00
Bart Van Assche
d9098252c6 Merge "libprocessgroup: Introduce a local variable in CgroupMap::ActivateControllers()" 2023-02-09 21:38:05 +00:00
David Anderson
d45181f1c2 Merge "fastboot: Add fastboot_test to TEST_MAPPING." 2023-02-09 21:33:26 +00:00
Bart Van Assche
17c84b9ffb libprocessgroup: Introduce a local variable in CgroupMap::ActivateControllers()
This CL prepares for introducing an additional flag test.

Bug: 213617178
Change-Id: Ia74c1990792b5839f76498de2cac0008ed92040f
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2023-02-09 13:26:17 -08:00
Treehugger Robot
392eae64a8 Merge "[LSC] Add LOCAL_LICENSE_KINDS to system/core" 2023-02-09 21:24:38 +00:00
Vova Sharaienko
75f860033c [TeX] Introduced Telemetry Express Histogram metric Native API
- added support C++ TeX Histogram logging API

Bug: 268161449
Test: atest expresslog_test
Change-Id: I284c6ceab42208dc9432fe3887c9ac000028d072
2023-02-09 21:21:33 +00:00
Automerger Merge Worker
5b6afde079 Merge "Merge "libsnapshot: Disable 32-bit VTS tests on 64-bit systems." into android13-tests-dev am: cb6ea9edb4" 2023-02-09 20:49:43 +00:00
David Anderson
d399c0312d Merge "libsnapshot: Disable 32-bit VTS tests on 64-bit systems." into android13-tests-dev am: cb6ea9edb4
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2427052

Change-Id: Ice8dd4ea2421b86c520356cfc83944364eafbcad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-09 20:49:35 +00:00
David Anderson
cb6ea9edb4 Merge "libsnapshot: Disable 32-bit VTS tests on 64-bit systems." into android13-tests-dev 2023-02-09 20:10:05 +00:00
Bob Badour
ce88220fa1 [LSC] Add LOCAL_LICENSE_KINDS to system/core
Added SPDX-license-identifier-Apache-2.0 to:
  rootdir/Android.mk

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I19aaea76a932cc928bbc178c01a33fdc98b0cf16
2023-02-09 11:29:51 -08:00
Dmitrii Merkurev
91297172eb fastboot: Introduce network-connected devices storage
Bug: 267507577
Bug: 267505625
Test: tested file lock api works on linux/windows
Test: tested storage api works on linux/windows
Change-Id: I33dda819370900310ae7fc63cbf6b00ba22ad4e8
Signed-off-by: Dmitrii Merkurev <dimorinny@google.com>
2023-02-09 16:28:17 +00:00
David Anderson
8fc623eb63 liblp: Fix a crash when adding an image to a partition with no extents.
Bug: N/A
Test: lpmake --partition=system:readonly:0 --image=system=system.img
Change-Id: I4de616cc1b9ca2838d38518ec24a382f4bc1b1be
2023-02-08 22:09:58 -08:00
Daniel Rosenberg
2f0508686e Only run GentleKill test as root
Without root, Service::Start() fails due to lack of permissions.

Bug: 267559075
Test: run cts -m CtsInitTestCases -t init#GentleKill
      atest init#GentleKill
      Will skip under cts, pass under atest
Change-Id: I69e8be7000718bdba1c2acd9675b5645c0891afc
2023-02-08 17:31:49 -08:00
David Anderson
86e869a566 fastboot: Add fastboot_test to TEST_MAPPING.
Bug: N/A
Test: fastboot_test on host
Change-Id: I1947b371ba6117e6eed811d1d6e1ed4019e0a0e9
2023-02-08 15:03:51 -08:00
David Anderson
33e044574a libsnapshot: Disable 32-bit VTS tests on 64-bit systems.
These tests don't work because 32-bit dependencies are not normally
packaged on a 64-bit system.

Bug: 263062262
Test: builds
Change-Id: I68859a9e9c029a528ee12c02569a3693261c7251
(cherry picked from commit 32fa3e96f4)
2023-02-08 18:59:43 +00:00
Mitch Phillips
9dd49fe187 Merge "Recoverable GWP-ASan: Don't tell ActivityManager" am: 22387708fc
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2425503

Change-Id: I0151a23b308b7a1e6de37f7391bc970ecf63d043
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-08 18:48:56 +00:00
David Drysdale
d0149e8e9a Convert Gatekeeper from HIDL to AIDL
Replaced HIDL spec implementation with AIDL spec in gatekeeper
module. Based on the changes in aosp/2161796.

Bug: 268342724
Test: VtsHalGatekeeperTargetTest, CtsVerifier
Change-Id: Ic322e5c5a7d0577df28410a546cbad88549158bc
2023-02-08 18:41:56 +00:00
Mitch Phillips
22387708fc Merge "Recoverable GWP-ASan: Don't tell ActivityManager" 2023-02-08 18:14:19 +00:00
David Anderson
bb0a97e139 Merge changes I72cf6f52,I9620e5b4 am: 40bb403c45
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2423148

Change-Id: Ic8564724a7b795e33b6c83b64ed643b42cac3933
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-08 04:24:39 +00:00
David Anderson
40bb403c45 Merge changes I72cf6f52,I9620e5b4
* changes:
  libsnapshot: Fix crash in cow writer test due to missing ASSERT.
  libsnapshot: Improve low space tests.
2023-02-08 04:03:55 +00:00
Mitch Phillips
8fe5127027 Recoverable GWP-ASan: Don't tell ActivityManager
Currently, debuggerd tells the teacher that an app that received a fatal
signal. On the playground, dobbing on a process that doesn't actually
need to be killed is considered a friendship-ending move.

Because recoverable GWP-ASan is *supposed* to not crash your app,
suppress this behaviour and don't let ActivityManager know about the
crash.

Bug: N/A
Test: Run a use-after-free in an app that's using recoverable GWP-ASan,
through the 'libc.debug.gwp_asan.recoverable.<app_name>=1' and
'libc.debug.gwp_asan.process_sampling.<app_name>=1' sysprops.

Change-Id: I033ea67d577573df10936e37db7302d4f4bc0069
2023-02-07 17:06:32 -08:00
Daniel Zheng
b85df5f722 Merge "Created new Task.h file to contain task classes." am: 166efb16c7
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2410952

Change-Id: Ie04e1ecc312c58e7ac696711f9b338243b60e975
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-07 21:38:10 +00:00
Daniel Zheng
166efb16c7 Merge "Created new Task.h file to contain task classes." 2023-02-07 21:03:20 +00:00
Treehugger Robot
6062d29256 Merge "UDC: Dm-Bow failed to load when size is not Multiple of 4096" am: 525c8bbc08
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2401132

Change-Id: I3adf1e1248b2cdf5f2527c81064e588a6dd1e7ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-07 19:22:41 +00:00
Treehugger Robot
525c8bbc08 Merge "UDC: Dm-Bow failed to load when size is not Multiple of 4096" 2023-02-07 18:44:37 +00:00
Treehugger Robot
20891d44a7 Merge "storageproxyd: Add watchdog to log stuck requests" am: bb794847d4
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2420061

Change-Id: I32cdf0e1bad016f9db96972490fd5d5da5bda91f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-07 06:59:48 +00:00
Treehugger Robot
bb794847d4 Merge "storageproxyd: Add watchdog to log stuck requests" 2023-02-07 06:04:17 +00:00
David Anderson
bda181a86a libsnapshot: Fix crash in cow writer test due to missing ASSERT.
Bug: N/A
Test: vts_libsnapshot_test
Change-Id: I72cf6f52fc15061da669d14cf5d334b44ad83501
2023-02-07 05:24:27 +00:00
David Anderson
111bec1e90 libsnapshot: Improve low space tests.
These tests have historically been pretty flaky, and have gone through a
few rounds of improvement. This is yet another: remove the
parameterization, so we can test that at least one variant of the test
succeeds, rather than all of them.

Filesystems (especially F2FS) have a lot going on underneath the hood,
and there's no guarantee that precise free space can be allocated,
measured, or relied upon in the ways this test expects. And all that we
really need to test is that some kind of out-of-space error can be
triggered.

Bug: 266645706
Test: vts_libsnapshot_test
Change-Id: I9620e5b496d5020b21cc37074e87dd21fc419ed2
2023-02-07 05:24:26 +00:00
Treehugger Robot
e9cdece2b4 Merge "Add bug component id to OWNERS" am: d019150a00
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2420719

Change-Id: Ia0bb75d4ebc4d4c110a092da3fff910cb6a9f82b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-07 03:23:34 +00:00
Treehugger Robot
d019150a00 Merge "Add bug component id to OWNERS" 2023-02-07 02:44:56 +00:00
Daniel Zheng
1a01a1cda1 Created new Task.h file to contain task classes.
Test: tested Reboot {target} + Flash {partition} on raven device
Bug: 194686221
Change-Id: I0d80230d682f80af12cca9705df0172651bf4461
2023-02-06 23:58:13 +00:00
Treehugger Robot
34213b79dd Merge "fastboot: Fix missing endian header in fastboot_driver.h to avoid header confusion" am: 57a935613c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2421681

Change-Id: I499909d234b22a81b076bc08bbb5ac8f25932ec8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-06 23:06:51 +00:00
Treehugger Robot
57a935613c Merge "fastboot: Fix missing endian header in fastboot_driver.h to avoid header confusion" 2023-02-06 22:08:12 +00:00
Stephen Crane
0255766d6b storageproxyd: Add watchdog to log stuck requests
Adds a background watchdog thread to the Trusty storageproxy to monitor
and log any requests that are delayed for too long. This is intended to
assist in recognizing and debugging any sources of hangs related to
servicing Trusty storage requests in Android.

Test: Add sleep() and run trusty storage tests
Bug: 266595872
Change-Id: I98dfaff0dff04f97d5c657ee131e746f63b39739
2023-02-06 21:39:19 +00:00
William McVicker
5aa974b6b3 Merge "Revert "libmodprobe: LPM: Load all modules in *.load with *.dep satisfied"" am: ba16edbdd2
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2423405

Change-Id: I9966c0934108d0ad47ef2d68d4d17e003057d7ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-06 21:01:04 +00:00
William McVicker
ba16edbdd2 Merge "Revert "libmodprobe: LPM: Load all modules in *.load with *.dep satisfied"" 2023-02-06 20:03:19 +00:00
William McVicker
a0e6703f73 Revert "libmodprobe: LPM: Load all modules in *.load with *.dep satisfied"
This reverts commit 3e6c9dbee8.

Reason for revert: This is breaking boot on several devices.
Bug: 267836481
Bug: 261678056
Change-Id: I67c4b784936828c448a53e3092af70d949fcbc65
2023-02-06 19:36:37 +00:00
Jiyong Park
078cc15b00 Add bug component id to OWNERS
Bug: 261015504
Test: N/A
Change-Id: I07d951e0bc551f2e642ffc2ee1aaeca2b7e77626
2023-02-06 07:39:56 +00:00
Treehugger Robot
4c180fed89 Merge "Fix a spelling error" am: 7eb6dc9104
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2412253

Change-Id: Ib567739e36f1570e89f1d6b54425ac503e4e777b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-06 05:25:36 +00:00