Commit graph

90509 commits

Author SHA1 Message Date
Gabriel Biren
6105d9dc8a Create the mainline supplicant directory
during initialization.

Bug: 365585450
Test: Manual test - verify that the mainline
      supplicant can add/remove interfaces
Change-Id: Ib41b361a8b032c04586f108be9d1933214934286
2024-11-18 20:24:58 +00:00
Treehugger Robot
569db94fa8 Merge changes Iae1cbfcc,I4466838c,I19c75e50,I2f49fab1 into main
* changes:
  libprocessgroup: Remove __BEGIN_DECLS and __END_DECLS
  libprocessgroup: Convert CGROUPV2_HIERARCHY_NAME to std::string
  libprocessgroup: Remove CGROUPV2_CONTROLLER_NAME
  libprocessgroup: Remove CGROUPS_RC_PATH
2024-11-18 19:57:51 +00:00
Hung Nguyen
a0627e76ab Merge "Add AID for memory management daemon" into main 2024-11-18 19:41:24 +00:00
Chan Wang
c759f23f2f Merge "Use the new 'partition' field in 'ApexInfo' to identify vendor apexes" into main 2024-11-16 11:41:00 +00:00
Orlando Arbildo
e4414f5856 Merge "trusty: utils: rpmb_dev: add wv secure storage init.rc" into main 2024-11-15 22:26:21 +00:00
Treehugger Robot
664f16c830 Merge "snapuserd: Change error message to verbose" into main 2024-11-15 19:42:17 +00:00
Treehugger Robot
07f977220e Merge "Revert^5 "Set block device as RO/RW before mount"" into main 2024-11-15 19:30:21 +00:00
Akilesh Kailash
d02b74411b snapuserd: Change error message to verbose
These error logs gets printed even when I/O gracefully
terminates which might be confusing.

Bug: 377819507
Test: Build
Change-Id: I93d4ec2203566e75195215babc0042370be43ccb
Signed-off-by: Akilesh Kailash <akailash@google.com>
2024-11-15 09:54:44 -08:00
Elliott Hughes
d68632becc Merge "Stop explicitly adding bionic subdirectories to the include path." into main 2024-11-15 17:08:09 +00:00
Chan Wang
5996d608af Use the new 'partition' field in 'ApexInfo' to identify vendor apexes
A new field 'partition' was added to `ApexInfo` recently which stores
pre-installed partition information as string (e.g. 'SYSTEM') in
aosp/3335753. Using 'partition' field for Subcontext vendor apex
initialization because the existing field `preinstalledModulePath` won't
be populated for brand-new apex (a new type we introduced recently).

Bug: 377111286

Test: atest CtsInitTestCases
Change-Id: I8970b3cb5884bdb949035f5bdc5b2e18618cc9cc
2024-11-15 16:21:50 +00:00
Treehugger Robot
2c11c48434 Merge "init: Add NVME support to the boot_part_uuid method of managing boot devices" into main 2024-11-15 15:15:15 +00:00
Alice Wang
e4193a055f Merge "Rename system property to enable KeyMint VM" into main 2024-11-15 09:45:25 +00:00
T.J. Mercier
fdf4432356 libprocessgroup: Remove __BEGIN_DECLS and __END_DECLS
These macros have been useless in this file since commit 82b72a566
("libprocessgroup: Add support for task profiles") in 2018 which added
C++ includes, and C++ types and keywords inside an extern "C" block.

Change-Id: Iae1cbfcc5cb974034d88fb466b79088496190940
2024-11-14 23:04:10 +00:00
T.J. Mercier
b6071f19c3 libprocessgroup: Convert CGROUPV2_HIERARCHY_NAME to std::string
Almost everywhere CGROUPV2_HIERARCHY_NAME is used a std::string is
required, so change its type to avoid temporaries.

Change-Id: I4466838c510f2eb8212fc71999cdaa47359ce9c3
2024-11-14 22:56:11 +00:00
T.J. Mercier
9e5f74d4e4 libprocessgroup: Remove CGROUPV2_CONTROLLER_NAME
This was deprecated a year ago, and should no longer be used.

Change-Id: I19c75e50fd3cc86734fa9cc7f3d883260b2484ca
2024-11-14 22:44:33 +00:00
T.J. Mercier
148c2531ee libprocessgroup: Remove CGROUPS_RC_PATH
/dev/cgroup_info/cgroup.rc doesn't exist anymore!

Bug: 349105928
Change-Id: I2f49fab15d083f0c1617989ccf96ca843f998140
2024-11-14 22:44:33 +00:00
Douglas Anderson
dd8edea859 init: Add NVME support to the boot_part_uuid method of managing boot devices
NVME devices have a subsystem of "class/nvme". Add that to the list of
subsystems we check so we can identify them properly.

Bug: 316324155
Test: Boot on a device with nvme
Change-Id: I2ab3f6890f62f525dba150a0368c666a1c4c875e
2024-11-14 13:53:54 -08:00
Treehugger Robot
243850ca5f Merge "Fix failure in CowTest#InvalidMergeOrderTest." into main 2024-11-14 20:04:21 +00:00
Christopher Ferris
122a57630e Merge "Add source of unwind when fatal error." into main 2024-11-14 19:23:45 +00:00
David Anderson
9d06208826 Fix failure in CowTest#InvalidMergeOrderTest.
This is failing on hwasan builds due to a typo in the test method. The
actual writer logic is unaffected.

Bug: 377298650
Test: valgrind cow_api_test
Change-Id: I5c3f32ae57bf90b9fd29c7446bf34bdcb004328c
2024-11-14 10:41:07 -08:00
Treehugger Robot
de8fa774c3 Merge "libprocessgroup: Remove libcgrouprc_format" into main 2024-11-14 18:23:42 +00:00
Elliott Hughes
a4e852d032 Stop explicitly adding bionic subdirectories to the include path.
Change-Id: I9961fa6ac957d8613f93fa33731da797f9ba8615
2024-11-14 18:14:26 +00:00
Alice Wang
16693fae25 Rename system property to enable KeyMint VM
This allows us to regroup Widevine VM under the same trusty
group.

Bug: 368502791
Test: launch_cvd --secure_hals=guest_keymint_trusty_insecure
Test: atest VtsAidlSharedSecretTargetTest
Change-Id: Ica76a896e99f70a64af229bda68622a2ce0dea1f
2024-11-14 14:37:19 +00:00
Christopher Ferris
cbb59dd240 Add source of unwind when fatal error.
Sometimes the only log left is the errors messages. This means that
the information about why the unwind part of debuggerd is being called.
Therefore, add a little bit of extra information in the error message
to indicate why the unwind was triggered.

Bug: 377050125

Test: Forced the exec of the crash dump to fail and verified that the
Test: message is crash for a crash and unwind for debuggerd -b <PID>
Test: and debuggerd <PID>.
Change-Id: I0632ed9118c79caf4dabe6f174b25066fa9058fc
2024-11-14 03:59:29 +00:00
Akilesh Kailash
71ebf1a20d Merge "Revert "Move snapuserd_test to presubmit-large group"" into main 2024-11-13 20:44:51 +00:00
Priyanka Advani (xWF)
1b5a7addd9 Revert "Move snapuserd_test to presubmit-large group"
This reverts commit ac810ad718.

Reason for revert: Droidmonitor created revert due to b/378924658. Will be verifying ABTD before submission.

Change-Id: Icb08a969ba13d863832a90d224f96fe60af9de4b
2024-11-13 20:12:45 +00:00
Treehugger Robot
846b34f7f4 Merge "Move snapuserd_test to presubmit-large group" into main 2024-11-13 17:48:32 +00:00
Treehugger Robot
00503ef565 Merge "Set input thread priority to RT - try 4" into main 2024-11-13 16:30:27 +00:00
Elliott Hughes
3c63d0af34 Merge "Stop explicitly adding bionic subdirectories to the include path." into main 2024-11-13 13:17:10 +00:00
David Drysdale
014c710c27 Merge changes from topic "keymint-v3" into main
* changes:
  Declare previous version when using frozen HALs
  Set the proper FEATURE_HARDWARE_KEYSTORE version
2024-11-13 06:50:42 +00:00
Akilesh Kailash
ac810ad718 Move snapuserd_test to presubmit-large group
Bug: 338329603
Test: Build
Change-Id: I20d722a797093e40eb653a418a1963acf8c4292b
Signed-off-by: Akilesh Kailash <akailash@google.com>
2024-11-13 04:34:34 +00:00
Siarhei Vishniakou
9ad453ffae Set input thread priority to RT - try 4
This reverts commit 52da71d47b.

Reason for revert: camera was using its own stale copy of libprocessgroup, and now has revved up its version that includes the new parsing code. So this time the json file update should work OK.

Original description:

To improve input latency, set the critical input threads to RT priority.
This will use RT priority on AOSP devices by default. OEMs can still
choose to customize what "input policy" means for their device, which
may not necessarily mean RT.

For example, on device with multiple small / big cores, input task
affinity could be changed to prioritize big cores + higher CPU frequency
/ voltage, but still keep the standard / default input thread priority.

Note: there is an open issue where the thread priority is not remaining constant. See b/378761104.

Bug: 330719044
Bug: 378761104
Flag: com.android.input.flags.enable_input_policy_profile
Test: took perfetto trace and checked the priority on InputDispatcher
and InputReader threads.

Change-Id: I449be0eeeac989222f5deefa62615478bd65b968
2024-11-13 00:56:06 +00:00
T.J. Mercier
64148e33d1 libprocessgroup: Remove libcgrouprc_format
This is no longer depended on anywhere.

Bug: 349105928
Change-Id: I7aba0a0d4e8a851edfc5e43daa1d9b5553adcdc3
2024-11-12 23:57:50 +00:00
Florian Mayer
574ae66ee6 Merge "Remove mitchp from OWNERS file" into main 2024-11-12 20:51:20 +00:00
Florian Mayer
4be70e7db3 Remove mitchp from OWNERS file
Change-Id: Ifb0e1598f3908fcc2206a2b51611b996f8b48cb8
2024-11-12 20:46:08 +00:00
Armelle Laine
5f216ffdc3 trusty: utils: rpmb_dev: add wv secure storage init.rc
Bug: 371777025
Change-Id: Id4f26509568dac1045e0b2ba58a045874555a303
Test: cuttlefish with trusty-vm enablement apex, run WV VTS
2024-11-12 18:54:31 +00:00
Florian Mayer
a7da00f4f0 Merge "Test stack buffer size calculation." into main 2024-11-12 18:51:39 +00:00
Elliott Hughes
945dd526ed Stop explicitly adding bionic subdirectories to the include path.
Change-Id: I24776f1008ca5f030cd8c94147d9630519ef6a24
2024-11-12 15:25:09 +00:00
Treehugger Robot
7adba5989c Merge "Add BOARD_GENFS_LABELS_VERSION" into main 2024-11-12 01:42:47 +00:00
Jooyung Han
92d1597718 Merge "Revert^2 "Deprecating libvendorsupport_llndk_headers"" into main 2024-11-12 01:35:41 +00:00
Florian Mayer
6facd1bfd3 Test stack buffer size calculation.
Bug: 378140560
Change-Id: Idca03cac925bc0d8bd574817391c4eaca11f2bff
2024-11-11 14:03:00 -08:00
David Drysdale
5969d69248 Declare previous version when using frozen HALs
The KeyMint HAL has been updated to v4, but frozen builds (e.g. 25Q1)
remain on the previous version.  The core AIDL version is handled
automatically, but we also have a package manager flag whose value
is (100 * HAL-version).  Use `RELEASE_AIDL_USE_UNFROZEN` to switch
between `required` configs for that.

Test: TreeHugger
Bug: 377808462
Bug: 378026324
Change-Id: Id042bee2a81e8563e1029ea7bb43452715e3edee
2024-11-11 19:17:20 +00:00
Karuna Wadhera
e8ff8b494a Set the proper FEATURE_HARDWARE_KEYSTORE version
The binary implements V3 of the KeyMint HAL, so the feature version
should match.

Bug: 369375199
Bug: 378384123
Test: treehugger
Change-Id: Ib26ac73cf6593d9a50f7a019129c6e5e237ae2cd
2024-11-11 18:06:30 +00:00
Dennis Shen
b842f642d9 Merge "Start aconfigd_system processes in init.rc" into main 2024-11-11 14:33:09 +00:00
Treehugger Robot
fa528cccf6 Merge "init: Avoid extra string copies when finding devices by using const refs" into main 2024-11-11 02:05:44 +00:00
Hung Nguyen
fc7ec65a00 Add AID for memory management daemon
Bug: 370509309
Bug: 375432464
Test: adb shell id -(u|g) mmd

Change-Id: I02440604b1947abc70235bfac132473e8bafa90d
2024-11-09 23:05:36 -08:00
Jooyung Han
dbb080d9bf Revert^2 "Deprecating libvendorsupport_llndk_headers"
ab8f9717f1

Change-Id: Ie981692be554942df762a4c9be7c250b0b202f31
2024-11-09 02:41:13 +00:00
Douglas Anderson
46afe22f9d init: Avoid extra string copies when finding devices by using const refs
Now that FindPlatformDevice() isn't modifying the path argument, and
is just passing it on to FindSubsystemDevice(), take this argument by
const reference. That should avoid an unnecessary string copy.

Bug: 316324155
Test: Compile
Change-Id: I1d92a322d0c311ee46a117dd9d650896ec02520f
2024-11-08 15:48:35 -08:00
Priyanka Advani (xWF)
244a63066b Merge "Revert "Deprecating libvendorsupport_llndk_headers"" into main 2024-11-08 19:05:16 +00:00
Ted Bauer
3c700588c7 Start aconfigd_system processes in init.rc
aconfigd_system is replacing aconfigd. Which one executes is toggled
by RO flag enable_system_aconfigd_rust, introduced in https://android-review.googlesource.com/q/topic:%22switch-to-aconfigd-system%22.

Bug: 378079539
Test: m
Change-Id: I6a04c38e9ef22da2b230046ddace73d6f7e39652
2024-11-08 17:45:16 +00:00