Commit graph

521 commits

Message SHA1
tama-common: Move audio HAL to odm
Change-Id: I19a95725765b51228d9adfe66fb5717168c5b51b

Michael Bestas   authored and   Danny Trunk   commited 2025-04-28 16:39:21 +02:00
8d239ef0bd
tama-common: overlay: Use vibration pattern from stock
Taken from 52.1.A.3.49

Change-Id: Iec29629eaa6564206e42aa88ee5de306d9c86e1b

Danny Trunk   commited 2025-04-09 22:09:49 +02:00
3fd1f4d66d
Revert "tama-common: Switch to OSS audio HAL"
This reverts commit 4e1a62f8a3.

Change-Id: Ie5b186d6920f2ffbbc69ebec2c87f2d341ff3431

Danny Trunk   commited 2025-04-06 12:29:17 +02:00
87f5ae8b20
tama-common: Add SOMC modemswitcher to prebuilt HIDL interfaces
Change-Id: Ibc673cc6390603567e63efe78681fa890697c515

Danny Trunk   commited 2025-04-06 00:45:30 +02:00
a716712106
tama-common: Add libwfdservice_shim for WFD
e69a5be2449122f90220151f9d01ace15221facf in system/hardware/interfaces
broke the ABI ;'(

Change-Id: I3badfc56581a6bf3de5d7e996fa51f59eb164aae

LuK1337   authored and   Danny Trunk   commited 2025-04-05 23:55:03 +02:00
0064474d2f
Revert "tama-common: Add libwfdservice_shim_v1 for WFD"
This reverts commit c4f890b3c0.

Change-Id: I8663398c344656e3ee3cd17103c0b15c06eda611

Danny Trunk   commited 2025-04-05 23:52:58 +02:00
f6ed27b5b4
tama-common: Add libwfdservice_shim_v1 for WFD
e69a5be2449122f90220151f9d01ace15221facf in system/hardware/interfaces
broke the ABI ;'(

Change-Id: I60691f2bab3f52fd9ade36ed6fcf6a2ef13a18c9

LuK1337   authored and   Danny Trunk   commited 2025-04-05 00:26:56 +02:00
c4f890b3c0
tama-common: Downgrade WFD system stack
This is the latest known to be good stack on these targets
while running V QPR2. Prepare for the upcoming breakage.

Change-Id: I3c6af7bf6368420693797ea194fd56701b45b2be

Bruno Martins   authored and   Danny Trunk   commited 2025-04-05 00:26:56 +02:00
d13e7e1481
tama-common: Switch to OSS audio HAL
Change-Id: I0437b4fa384cb910474dbe86c852c3c6b4661810

Michael Bestas   authored and   Danny Trunk   commited 2025-04-04 17:24:49 +02:00
4e1a62f8a3
tama-common: audio: switch to open source sound trigger hal
The audio hal expects the version of the android and sound trigger
hal to match.

As the prebuilt sound trigger hal is built with a BSP based on
Android 10, the version is older than expected and sound trigger fails
to initialize.

11-11 11:37:55.774  4103  4107 I soundtrigger: audio_extn_sound_trigger_init: Enter
11-11 11:37:55.775  4103  4107 I soundtrigger: audio_extn_sound_trigger_init: DLOPEN successful for /vendor/lib/hw/sound_trigger.primary.sdm845.so
11-11 11:37:55.775  4103  4107 E soundtrigger: audio_extn_sound_trigger_init: Incompatible API versions ahal:0x200 != sthal:0x101

Test: atest CtsSoundTriggerTestCases
Test: atest VtsHalSoundtriggerV2_0TargetTest
Test: atest VtsHalSoundtriggerV2_1TargetTest
Test: atest VtsHalSoundtriggerV2_2TargetTest

Depends-On: https://review.lineageos.org/344863
Change-Id: I23b052149bf243f86ebfa13dbbc5053abe4b92e1
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>

Alexander Martinz   authored and   Danny Trunk   commited 2025-04-04 17:24:48 +02:00
69ebfdba06
tama-common: enable sound trigger hidl hal 2.3
Change-Id: Ieac067b937c06f1ce4f74abf0b884fc1bf92b5c9

Harshal Ahire   authored and   Danny Trunk   commited 2025-04-04 17:24:48 +02:00
d09374dbba
tama-common: Patch widevine to replace libhidltransport with libhidlbase and drop libhwbinder
Change-Id: I1847fe100e9d5dafd8ddfcb9456c7559b64d7049

Nolen Johnson   authored and   Danny Trunk   commited 2025-04-04 13:47:14 +02:00
2a5ae5d72b
tama-common: Bump libwfdservice to android.media.audio.common.types-V4
Change-Id: I81060d8c73430a9598c676e18dc04e31a2f31c0c

Nick Reuter   authored and   Danny Trunk   commited 2025-04-04 13:47:14 +02:00
6b61c68bd2
tama-common: Patch libwfdservice to resolve duplicate dependencies
Fixes:
error: module "libwfdservice" variant
"android_arm_armv8-a_cortex-a76_static": depends on multiple
versions of the same aidl_interface:
android.media.audio.common.types-V2-cpp-source,
android.media.audio.common.types-V3-cpp-source

Change-Id: I8086a80fcc238d6b03d16640ee2c4e134129bbab

Michael Bestas   authored and   Danny Trunk   commited 2025-04-04 13:47:14 +02:00
fe2e8e317b
tama-common: Drop 64-bit vendor wfd stack
Change-Id: I28343f67ee04f11524a97b8d3f9073012481e170

Danny Trunk   commited 2025-04-04 13:47:14 +02:00
4b10088b12
tama-common: Move WfdCommon boot jar declaration to vendor
Change-Id: I8fa2c0f64692873b432cc252ec88b388a32023a1

LuK1337   authored and   Danny Trunk   commited 2025-04-04 13:47:14 +02:00
81c47b4f7e
tama-common: Libraries are now automatically added to PRODUCT_PACKAGES
Change-Id: Ie92fe02b7e6279195bf28944942c815db773b798

Michael Bestas   authored and   Danny Trunk   commited 2025-04-04 13:47:14 +02:00
ddb09b3610
tama-common: Commonize libkeymasterutils
Change-Id: Ib54d964d0df40875433612473508b5798f67778a

Danny Trunk   commited 2025-04-04 13:38:57 +02:00
4ac28648de
tama-common: Use common lib_fixups
Change-Id: I862e547f3375184729eb1a909bb7d6f676d45dfe

LuK1337   authored and   Danny Trunk   commited 2025-04-04 12:08:22 +02:00
db2969a993
tama-common: Setup ELF checks
Change-Id: I89154af89a7be70fa3702ac3a74adf8bd087b6ef

LuK1337   authored and   Danny Trunk   commited 2025-04-04 12:08:21 +02:00
054df9e350
tama-common: Replace TARGET_USES_EGL_DISPLAY_ARRAY flag with soong config
Change-Id: I0435ec558e0ed193ebdb7308e00404db744dd5a5

Danny Trunk   commited 2025-04-04 10:36:19 +02:00
03ee224f36
tama-common: Remove copy libutils-v33
With enforced elf checks coming on A16, let's switch to the provided one from compat

Change-Id: I193682ca769e902b7a8b2edd850ea14297a71dec

Marc Bourgoin   authored and   Danny Trunk   commited 2025-04-04 10:36:19 +02:00
0414944c2e
tama-common: Remove elf files in copy files check
New extract files uses packages instead of copy files

Change-Id: I337c07d13bd350958d4808e1693cc6e03753a96c

Aaron Kling   authored and   Danny Trunk   commited 2025-04-04 10:36:19 +02:00
34d318d1fd
tama-common: Don't explicitly set as an AB target
AB is the default

Change-Id: I93346d29da38405bf571f138ae905d67966c1f9c

basamaryan   authored and   Danny Trunk   commited 2025-04-04 10:36:19 +02:00
280e1eb68a
tama-common: Remove unneeded NFC packages
* NfcNci and SecureElement are built by handheld_system.mk

Change-Id: I83f686b67778634b584a58d8bae95d237e6dbad1

Georg Veichtlbauer   authored and   Danny Trunk   commited 2025-04-04 10:36:19 +02:00
536dba6c71
tama-common: Switch to AIDL NXP NFC HAL
Change-Id: Iff03bd7fc522b45b9caebb12860c5c851356a9a1

ShevT   authored and   Danny Trunk   commited 2025-04-04 10:36:19 +02:00
d3c94df02e
tama-common: Don't use BSG framework for gpt-utils
Change-Id: Ia6e5d651560c8ae5186a48bfbb0e30b864150564

Michael Bestas   authored and   Danny Trunk   commited 2025-04-04 10:36:19 +02:00
43eaa7080f
tama-common: Switch to py extract utils
Change-Id: Ia13b728464495ff208ca1a706847b11af5c93ae8

LuK1337   authored and   Danny Trunk   commited 2025-04-04 10:11:41 +02:00
f2ac07aeac
tama-common: switch to common QCOM AIDL bootctrl HAL
Change-Id: I04ab771d3b1c38b58913607fbff1bb3b55e1fe25

Cosmin Tanislav   authored and   Danny Trunk   commited 2025-03-26 12:19:14 +01:00
d1b34a3501
tama-common: tetheroffload: Version 1.1
Update tetheroffload to version 1.1.

Change-Id: I004e44e416a88a1b39a4c80366df9008722f096b

Tyler Wear   authored and   Danny Trunk   commited 2025-03-10 23:24:00 +01:00
802335277e
Revert^2 "tama-common: Switch to common lights HAL"
This reverts commit b831f0a976.

Reason for revert: Common HAL handles it just fine

Change-Id: Ie7cc2c90e4d7bf43a432440de57746f168860ce2

Danny Trunk   authored and   Gerrit Code Review   commited 2025-02-17 20:25:37 +00:00
739b70b45f
Revert "tama-common: Switch to common lights HAL"
This reverts commit d2a1b9ff4e.

Reason for revert: Blink didn't work

Change-Id: I4bdbca2a3c62d71d16500eb5e07b4d1e2ff46dfb

Danny Trunk   authored and   Gerrit Code Review   commited 2025-02-17 20:11:40 +00:00
b831f0a976
tama-common: Switch to common lights HAL
Change-Id: If515e7c3f6e5b6895076f1d8381fb2c22bd1b3de

LuK1337   authored and   Danny Trunk   commited 2025-02-17 00:19:47 +01:00
d2a1b9ff4e
tama-common: modem-config: Add more modem configs
Copied from:
* I3213_Customized_UK_1318-2262_53.1.A.3.85_R9C
* I3223_Customized_US_53.1.A.3.134-R9C

Change-Id: I35e4e7ad6284a74f24512b571d2a0649c9b558d5

LuK1337   authored and   Danny Trunk   commited 2025-02-16 23:42:28 +01:00
6fd996ed17
tama-common: fstab: Reserve 128MB for critical system components.
We recently created a new GID that can be granted to critical system
processes, so that the system is usable enough for the user to free
up disk space used by abusive apps.

128MB ought to be enough for anybody.

Test: builds, boots
Bug: 62024591
Change-Id: I412ed9b0a885668ebe4c6c677a3bd0cd7f44080b
Signed-off-by: Alberto97 <albertop2197@gmail.com>
Signed-off-by: Erfan Abdi <erfangplus@gmail.com>

Jeff Sharkey   authored and   Danny Trunk   commited 2025-02-15 19:32:53 +01:00
949d38fbbe
tama-common: fstab: enable quota for ext4 userdata
* our kernel has already enabled the necessary configs
 * https://source.android.com/docs/core/storage/faster-stats

Change-Id: I328dfe62716fba77b55225c8f8166515be8ace02

linckandrea   authored and   Danny Trunk   commited 2025-02-15 19:32:36 +01:00
0ccde41d01
tama-common: rootdir: remove Sony's vm parameters
* Z3fold wasn't included in the new kernel as such these tweaks are useless

Change-Id: Ife19223eabc80e8d9f551e15a49999aed2e799f7

linckandrea   authored and   Danny Trunk   commited 2025-02-15 19:32:30 +01:00
9af7f31b0f
tama-common: rootdir: tweaks power config
* remove caf schedutil strings to align to the current xiaomi-sdm845 config
 * remove cpu_boost as it is redundant

 * remove process reclaim strings (it's not even enabled in our kernel)

 * remove ufs scaling as it is now disabled in the kernel

Change-Id: I8d89414431d2a89d74103490c725abcdb7dbbe84

linckandrea   authored and   Danny Trunk   commited 2025-02-14 23:37:24 +01:00
52c962453f
tama-common: lmkd: use default values
* ditch the current config as it was meant for android 10[*1]
 * lmkd will now use the PSI mechanism[*2] (since is now enabled on our kernel)

 *1 https://source.android.com/docs/core/perf/lmkd?hl=it#configuring-lmkd
 *2 https://source.android.com/docs/core/perf/lmkd?hl=it#userspace-lmkd-in-android-r

Change-Id: I2d1059a0562b4beb973ab31897e1a654dd0ebfaf

linckandrea   authored and   Danny Trunk   commited 2025-02-14 23:36:04 +01:00
e3c8371673
tama-common: Increase ro.lmk.medium to prevent kills at medium vmpressure
Setting ro.lmk.medium to 800 to prevent important processes from being
killed at medium vmpressure levels.

Bug: 77299493
Test: lmkd_unit_test
Merged-In: I37e1651a0a2b148a852e5bde86501024d4f87bbf
Change-Id: I37e1651a0a2b148a852e5bde86501024d4f87bbf
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
(cherry picked from commit c954ec2eb318518cfa5c6f64a688fd8c809e91c5)

Suren Baghdasaryan   authored and   Danny Trunk   commited 2025-02-14 23:32:21 +01:00
e7f83378fc
tama-common: Enable memory stats logging in user mode LMKD
Bug: 74443701
Test: Tested manually
Merged-In: I288098e17d5fc65923758152bba5e786a75edc4c
Change-Id: I288098e17d5fc65923758152bba5e786a75edc4c
(cherry picked from commit 56395c15a57eda7aa59a7615422677d5a8075350)

Rajeev Kumar   authored and   Danny Trunk   commited 2025-02-14 23:32:06 +01:00
ac4fa79a7f
tama-common: Switch lmkd to use minfree levels for kill decisions
Enable ro.lmk.use_minfree_levels flag to use minfree levels to decide
when lmkd should kill. This makes lmkd work the same way lowmemorykiller
kernel driver used to work.

Bug: 77299493
Bug: 75322373
Test: lmkd_unit_test
Change-Id: Ic29d7fd21af1cb6af3a7d2a175d210775a09987e
Signed-off-by: Suren Baghdasaryan <surenb@google.com>

Suren Baghdasaryan   authored and   Danny Trunk   commited 2025-02-14 23:29:13 +01:00
c7bd32ec9c
tama-common: Set lmkd configuration properties
Bug: 63631020

Change-Id: I16a183e8e4625e8b98cefdc9c8a7b650556a2b55
Signed-off-by: Suren Baghdasaryan <surenb@google.com>

Suren Baghdasaryan   authored and   Danny Trunk   commited 2025-02-14 23:28:01 +01:00
54c04f94ae
tama-common: Drop Android LMK parameters configuration
Android LMK was disabled in the kernel in favor of Low Memory Killer Daemon (lmkd).

Change-Id: Ibd97ea48bf6cc635277a7e23fb460ee7f1737121

Bruno Martins   authored and   Danny Trunk   commited 2025-02-14 23:27:36 +01:00
1765f73f14
tama-common: Adjust powerhint for QOS interface
Currently all writes to the dev interface are done
by WriteStringToFd that uses char internally.

The current values seem to expect to be written as s32,
this sadly won't happen and triggers a special case in
the write handling of pm_qos_power_write:
it expects char buffers to be encoded as base16 and
decodes them.
This means the current 44 is actually 0x44 -> 68 seen by
the kernel.

Luckily it seems like both accepted values for this node
don't hit the threshold to enter C2, so it was never
noticed in real usage and didn't effect the device
C-States handling during hints.

Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com>
Change-Id: Ic544d4dcaa1edc3de913aed737baf1af88a45360

Luca Stefani   authored and   Danny Trunk   commited 2025-02-14 23:26:54 +01:00
71ee92703e
tama-common: Update WFD system stack from OOS 15.0.0.201(EX01)
Change-Id: Ia31624004a10c5e471a146646237bd240e38d07a

Bruno Martins   authored and   Danny Trunk   commited 2025-02-14 22:05:05 +01:00
19947e28d2
tama-common: Remove OMX audio codecs
* OMX HW audio codecs won't work without QCOM A/V enhancements, which
   we don't have on Lineage.

Change-Id: I940be6716b603e848c44839bb87ad690eb55e86f

Michael Bestas   authored and   Danny Trunk   commited 2025-02-14 22:05:05 +01:00
8a96523f3e
tama-common: Remove software OMX blobs
Default to C2 codecs from swcodec apex.

Change-Id: I32f0b0abe680c1f350268115a3cc5488a2a57ec3

Bruno Martins   authored and   Danny Trunk   commited 2025-02-14 22:05:05 +01:00
b980c3532d
tama-common: Switch to QTI Memtrack AIDL HAL
Change-Id: Ibcbaff02fd56fbccc3a88c01a5f46a89cb212ef5

Yumi Yukimura   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
9ecd8b21ba
tama-common: Update display flags & packages
Required after display HAL blueprint conversion

Change-Id: Ib8ae3114ffae6ea5457cb9829fbbecfd7f065b66

Michael Bestas   authored and   Danny Trunk   commited 2025-02-14 22:05:04 +01:00
a2c02d13c3