Commit graph

90435 commits

Author SHA1 Message Date
Jooyung Han
dbb080d9bf Revert^2 "Deprecating libvendorsupport_llndk_headers"
ab8f9717f1

Change-Id: Ie981692be554942df762a4c9be7c250b0b202f31
2024-11-09 02:41:13 +00:00
Priyanka Advani (xWF)
ab8f9717f1 Revert "Deprecating libvendorsupport_llndk_headers"
Revert submission 3334193-no-llndk-versioning

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

Reverted changes: /q/submissionid:3334193-no-llndk-versioning

Change-Id: Id8d85be1930bef68f94cee66a0fe29278de48d64
2024-11-08 17:37:26 +00:00
Jooyung Han
06c4e96fd8 Deprecating libvendorsupport_llndk_headers
Versioned LLNDK symbols are guarded with __builtin_available.

Bug: 362658565
Test: m --no-skip-soong-tests
Change-Id: I0fb3bc87b74da62b8a8fba0c5bb6a3373e6a55dc
2024-11-06 13:54:01 +09:00
Treehugger Robot
71707037b1 Merge "libsnapuserd: Handle empty response from server" into main 2024-11-04 17:26:04 +00:00
Alice Wang
abe7640a21 Merge "Rename KM VM related system properties" into main 2024-11-04 10:39:37 +00:00
Akilesh Kailash
454167f5bd libsnapuserd: Handle empty response from server
If server disconnects, then handle the empty response.

Bug: 377068272
Test: Full OTA
Change-Id: Ic48204c457ef924ba9a3c1ae84a3317fb1ccda04
Signed-off-by: Akilesh Kailash <akailash@google.com>
2024-11-02 23:43:22 -07:00
Treehugger Robot
0aaec875e8 Merge "libsnapshot: Update libprocessgroup dependencies" into main 2024-11-01 22:38:52 +00:00
Treehugger Robot
6c13c6ce5b Merge "libcutils: Update libprocessgroup dependencies" into main 2024-11-01 22:34:53 +00:00
Treehugger Robot
816d42ce9b Merge "libprocessgroup: Update libprocessgroup dependencies" into main 2024-11-01 22:31:35 +00:00
T.J. Mercier
0b678adb6a libcutils: Update libprocessgroup dependencies
Bug: 349105928
Change-Id: I9d9230e415724657f9d49a09861f1046fbe4dc55
2024-11-01 21:17:33 +00:00
T.J. Mercier
8a45aaaf12 libprocessgroup: Update libprocessgroup dependencies
Bug: 349105928
Change-Id: Iee047ccafe4c71eaf9c614fbe9a68585645a16f8
2024-11-01 21:16:29 +00:00
T.J. Mercier
b1f0c1bfda libsnapshot: Update libprocessgroup dependencies
Bug: 349105928
Change-Id: I0a795c185ae453b86e0373e6786bd77a0d265b01
2024-11-01 21:16:08 +00:00
Treehugger Robot
65ebd83d9c Merge "Revert^4 "Set block device as RO/RW before mount"" into main 2024-11-01 20:38:40 +00:00
Yihan Dong
972eae34d8 Merge "Add proposed trendy teams for VTS modules" into main 2024-11-01 00:24:59 +00:00
Treehugger Robot
7ba45dca19 Merge "Set input thread priority to RT - try 2" into main 2024-10-31 23:51:47 +00:00
Treehugger Robot
9be749fe98 Merge changes Ibd1a942d,Ie07cee76 into main
* changes:
  libmodprobe: add support for dynamic module options
  firmware_handler: extract part responsible for running ext program to lib
2024-10-31 23:09:40 +00:00
Siarhei Vishniakou
a3cf826de6 Set input thread priority to RT - try 2
This reverts commit de6707df0c.

Reason for revert: changing code without modifying JSON file now

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.

With this patch, I'm finding that sometimes, one of the critical input
threads has priority 100 instead of the expected 98. Still looking into
that specific issue, but the issue is already present with the existing
"input policy" code.

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

Change-Id: I3dabf4da0398324cf542e701c103551343b883cf
2024-10-31 22:39:25 +00:00
Maciej Żenczykowski
503ac71b43 Merge "Revert "Set input thread priority to RT"" into main 2024-10-31 21:31:23 +00:00
Peter Collingbourne
f59ca8c294 Merge "Add support for tombstone symbolization to pbtombstone." into main 2024-10-31 21:16:01 +00:00
Bo Hu
c33584e2b2 Merge "Revert^3 "init: Look for super partition only on a boot device"" into main 2024-10-31 19:44:13 +00:00
Treehugger Robot
539f39e619 Merge "Make pbtombstone a host tool." into main 2024-10-31 19:35:37 +00:00
Liana Kazanova
de6707df0c Revert "Set input thread priority to RT"
This reverts commit 930f77b02c.

Reason for revert: DroidMonitor: Potential culprit for http://b/376665573 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: I9b9914703946f1eb4e40e779aa9cb5154ea108d3
2024-10-31 18:43:18 +00:00
Treehugger Robot
6fb316bb44 Merge "libsnapshot: Add script to test snapshot updates" into main 2024-10-31 18:22:47 +00:00
Akilesh Kailash
a5560db8cc libsnapshot: Add script to test snapshot updates
$time ./system/core/fs_mgr/libsnapshot/apply-update.sh --update-static-partitions

Update completed

real	1m19.850s
user	0m10.319s
sys	0m7.448s

Dynamic parition update only:

$time ./system/core/fs_mgr/libsnapshot/apply-update.sh

Update completed

real	0m19.032s
user	0m10.480s
sys	0m7.462s

Bug: 329255363
Test: apply-update.sh

Change-Id: I2af4fe022e35b2b813ff83e2084d22295b3057dc
Signed-off-by: Akilesh Kailash <akailash@google.com>
2024-10-31 10:00:22 -07:00
Konrad Adamczyk
5cc1ca1762 Revert^3 "init: Look for super partition only on a boot device"
This reverts commit 5bfb93678f.

Reason for revert: b/376468452 and trusty boot up on arm64. This CL is causing a lot of troubles (now only on emulator, but may affect more devices in field) and shall be reverted. Desktop team will handle support for selecting single boot source (while having more than one) as part of boot_part_uuid support (at aosp/3318438).  

Change-Id: I2804c119631f592d0862f3472ffe18dbb23b17e5
2024-10-31 08:25:54 +00:00
Treehugger Robot
ce6982c76b Merge "Set input thread priority to RT" into main 2024-10-31 00:17:00 +00:00
Peter Collingbourne
cf9f0870e4 Add support for tombstone symbolization to pbtombstone.
This patch teaches pbtombstone to use llvm-symbolizer to symbolize
stack traces and augment the protobuf tombstones with the symbol
information, before printing tombstones with the symbolized stack
traces included.

The main advantage of adding this information to the tombstone
as opposed to having developers use the stack tool is that stack
does not print all of the information in the original tombstone,
which means that both reports may be required to understand a crash.
Furthermore, stack traces printed by stack are not correlated with
the stack traces in the tombstone, making the report harder to read,
especially with GWP-ASan and MTE which may produce multiple stack
traces for the crashing thread.

Although we could teach stack to print more information, this would
continue to be fragile because stack relies on parsing textual
tombstones. Switching stack to read proto tombstones would be
tantamount to a full rewrite and would require duplicating the C++
proto-to-text logic that we already have in Python. It seems better
to reuse the C++ code for the proto-based symbolization tool.

llvm-symbolizer will look up the symbol files by build ID using a
.build-id directory following the standard here:
https://fedoraproject.org/wiki/RolandMcGrath/BuildID

It will look for .build-id directories under paths specified with
--debug-file-directory, which pbtombstone will pass through to
llvm-symbolizer using its own --debug-file-directory flag. The
intent is that tools for platform developers will pass the flag
--debug-file-directory $ANDROID_PRODUCT_OUT/symbols to pbtombstone.
Soong will start creating .build-id under symbols after a corresponding
Soong CL lands.

Bug: 328531087
Change-Id: Ia4676821cf980c69487cf11aefa2a02dc0c1626f
2024-10-30 14:43:25 -07:00
Peter Collingbourne
39a1730a82 Make pbtombstone a host tool.
This is preparation for the next patch, which adds host-side
symbolization capabilities to pbtombstone.

Bug: 328531087
Change-Id: Id5813ae6b121af784643b1ed76084e49fdca118b
2024-10-30 14:42:55 -07:00
Terry Guan
5ce7c6a4b2 Merge "read() can return fewer bytes than requested" into main 2024-10-30 19:29:32 +00:00
terryguan
e7f1d41237 read() can return fewer bytes than requested
Sometimes read returns fewer bytes than requested. read() only read at
most 0x7ffff000 bytes.

Bug: 376247649
Test: manual, make mkbootfs, mkbootfs out/target/product../VENDOR_BOOT
Change-Id: I8cbbae40c5f5c6c54d19bf77e9a801ed3390ed48
2024-10-30 10:35:52 -07:00
Kelvin Zhang
5fd1be1a5a Revert^4 "Set block device as RO/RW before mount"
This reverts commit 1df3536b95.

Previous land got reverted because of selinux denial, which is
already taken care of in aosp/3314877

Reason for revert: b/349507086

Change-Id: Id642b4d8726c72f324e369d8506c78eacea331e3
2024-10-30 17:05:03 +00:00
Elliott Hughes
95de81f71f Merge "Switch mkbootfs to C++." into main 2024-10-30 13:42:08 +00:00
Jooyung Han
bd4b6dd9f6 Merge "init: mount tracefs before apexd-bootstrap" into main 2024-10-30 11:51:12 +00:00
Alice Wang
5d5c732a3b Rename KM VM related system properties
To organize it under trusty and distinguish it from
Widevine VM.

Bug: 368502791
Test: launch_cvd --secure_hals=guest_keymint_trusty_insecure
Test: atest VtsAidlSharedSecretTargetTest
Change-Id: I48e43b9709e59b1cb9e1ba9113d5ef894469f485
2024-10-30 09:44:27 +00:00
Treehugger Robot
d5c75fd591 Merge "fs_mgr: avoid std::vector<const T>" into main 2024-10-30 02:28:04 +00:00
Siarhei Vishniakou
930f77b02c Set input thread priority to RT
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.

With this patch, I'm finding that sometimes, one of the critical input
threads has priority 100 instead of the expected 98. Still looking into
that specific issue, but the issue is already present with the existing
"input policy" code.

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

Change-Id: I75b6a726f0d066f16bdec26f6cf90721479d17ff
2024-10-30 00:09:32 +00:00
Elliott Hughes
132b1ecdfd Switch mkbootfs to C++.
Minimum changes just to get it to compile as C++, no real cleanup.

Change-Id: I8ff3fa35a07cdc9a6a246e79e33581e5d6598833
2024-10-29 22:12:01 +00:00
Treehugger Robot
0edd0412f9 Merge "Fix overlayfs on page cf page agnostic builds." into main 2024-10-29 15:58:42 +00:00
Jooyung Han
03429accee init: mount tracefs before apexd-bootstrap
This removes the error log when apexd-bootstrap starts:

  cutils-trace: Error opening trace file: No such file or directory (2)

Bug: 376150518
Test: boot-time trace shows apexd-bootstrap
  see https://source.android.com/docs/core/perf/boot-times#systrace
Change-Id: I5feaece50663a602b61377cee034060fd30217f9
2024-10-29 16:28:33 +09:00
David Anderson
dea6f7c2a5 Fix overlayfs on page cf page agnostic builds.
Hardcode 4096 block size for f2fs on x86/64.

Bug: 375531898
Test: adb_remount_test.sh
Change-Id: I9b55f7caf1b77f235168664be2f310bb3bb0d179
2024-10-28 19:50:08 -07:00
Automerger Merge Worker
7a813fd35c Merge "Merge "libsnapshot: Fix MapAllSnapshotsWithoutSlotSwitch test" into android15-tests-dev am: e4ffb7a97b" into main 2024-10-29 00:12:37 +00:00
Treehugger Robot
5561704933 Merge "libsnapshot: Fix MapAllSnapshotsWithoutSlotSwitch test" into android15-tests-dev am: e4ffb7a97b
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3316253

Change-Id: I38b52550e194c6d5666f11cc159f264aa012aa3d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-29 00:12:33 +00:00
Treehugger Robot
e4ffb7a97b Merge "libsnapshot: Fix MapAllSnapshotsWithoutSlotSwitch test" into android15-tests-dev 2024-10-28 23:59:07 +00:00
Daeho Jeong
d7b46e396d Merge "support f2fs device aliasing feature" into main 2024-10-28 16:19:45 +00:00
Konrad Adamczyk
0508b53f0c Merge "Revert^2 "init: Look for super partition only on a boot device"" into main 2024-10-28 06:35:07 +00:00
Treehugger Robot
a2db8b55d6 Merge "libprocessgroup: Remove ifdefery around SetTimerSlackAction::ExecuteForTask" into main 2024-10-26 04:16:35 +00:00
T.J. Mercier
96fc434b6c libprocessgroup: Remove ifdefery around SetTimerSlackAction::ExecuteForTask
This appears to have been due to the use of prctl, which apparently
caused issues for mac builds. Now that use of prctl has been removed, it
doesn't look like we need this anymore.

Fixes: 075008174 ("libprocessgroup: Remove prctl interface for setting timer slack")
Test: m
Bug: 372498744
Change-Id: I8a43951f30d7dd838591a8ba225d712742d7cd4a
2024-10-26 00:34:51 +00:00
Karuna Wadhera
813a0fe2b2 Merge "Pin KeyMint dependency to correct/specific version" into main 2024-10-25 21:54:58 +00:00
Treehugger Robot
2a278c3a2e Merge "Don't use android::base::StartsWith / EndsWith" into main 2024-10-25 20:35:23 +00:00
William McVicker
29a05161b1 Merge "Add support to update the DTB when flashing a vendor_boot ramdisk" into main 2024-10-25 17:53:25 +00:00