Commit Graph

1060 Commits

Author SHA1 Message Date
Yumi Yukimura
c57fda3a05 sm6150-common: Import RIL stack from mojito V14.0.8.0.SKGMIXM
* For compatibility with old devices like violet

Change-Id: I5367bfd63f61525b115e3f3138854f0857de57ce
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Yung Ti Su
7bd3a629c4 sm6150-common: Enabling sound trigger V2_3
Bug: 139071862
Test: manual

Signed-off-by: Yung Ti Su <andysu@google.com>
Change-Id: I4123b0af64fc7bed934026540136e3811fab32f3
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Tyler Wear
1a5ad0d93d sm6150-common: tetheroffload: Version 1.1
Update tetheroffload to version 1.1.

Change-Id: I004e44e416a88a1b39a4c80366df9008722f096b
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
a65aad9817 sm6150-common: Define missing TARGET_HEALTH_CHARGING_CONTROL related configs
Change-Id: I859a4d5c25b07bcf45f998e0ad54a4d9afca10fb
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Martin Liu
2b0f37ef3c sm6150-common: decrease swappiness to 60
This tweak also aligns the policy with P23.

Test: boots with correct settings
Bug: 299975853
Change-Id: I0ed7088ddf2ff2fa0feca2197e5cc03c7f5c6778
Signed-off-by: Martin Liu <liumartin@google.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Yumi Yukimura
d4b25497ed sm6150-common: sepolicy: Address/Silence some denials
Change-Id: I528e7e7b1c7483ce1829605ce0ffafdf62228761
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Yumi Yukimura
7424384eb3 sm6150-common: rro_overlays: WifiOverlay: Move to vendor
Change-Id: I190951d6c5619870a938e61d81def3aa36352939
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Yumi Yukimura
37ec15de96 sm6150-common: Disable UFFD GC via OVERRIDE_ENABLE_UFFD_GC
* Our kernel (4.14) does not support features needed for UFFD GC.
  Leaving it enabled results in long waiting time on the first boot.

Change-Id: Ia8a17467e13d343c03ee29e514994946e7e84985
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Yumi Yukimura
2f52ae50ef sm6150-common: rootdir: Set ro.boot.hardware.revision property
* The value would be shown on Settings > About phone > Model > Hardware version.

Change-Id: I3a9707597ba01690bdf992e77d7d59d67213bca9
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Yumi Yukimura
6d996151e4 sm6150-common: Migrate to QTI USB Gadget AIDL HAL
Change-Id: I6adbca2fab9a3fe0477d17f9786166828b786710
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Yumi Yukimura
cdd98bc410 sm6150-common: Switch to common QTI USB init scripts
Change-Id: I42864edf1cf554815fa24b12892afd21835d13c7
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Yumi Yukimura
72ac1f5b90 sm6150-common: Build QTI Thermal AIDL HAL
Change-Id: I21406af9d90fe6be1402f30e1b19958e4f46eec9
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Nolen Johnson
d1d452c8e3 sm6150-common: Don't declare BOARD_VENDOR
* Only matters when it differs from the device OEM.

Change-Id: Id9af8263cb42dc7a0e3a9ce8677385e224910302
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Giovanni Ricca
ab5e8a68a5 sm6150-common: Don't explicitly build qcom.fmradio
* It is now built by default

Change-Id: Ia7d9d3253fae17c161bfae82a0562dcb73b14964
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Bruno Martins
58ff9155a5 sm6150-common: sepolicy: Remove duplicate snxxx AIDL rules
These are now part of qcom/sepolicy_vndr.

Change-Id: I709c29e827d51e22507027862a56cca1efcdc984
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Malathi Gottam
9ac6fc09ec sm6150-common: media_profiles: Edit profiles xml in accordance with schema
Export of Video Editor codec profiles & levels and
configuration of Video editor capalibilies,
these two entries are no longer needed hence removed.

Original-Change-Id: I8252415f37f2b1089e7281eec32deda9fd6e98cf
Change-Id: Ib8b4f52b4b83a0a31a66d118c75005ac9945a4e9
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
4e04a9498d sm6150-common: media: Import media_codecs.xml
From b2d81d3d10/media_codecs.xml

Change-Id: Ia3905329085e72a55c9e964e07ecd8a000a913f0
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
f9863b5810 sm6150-common: Update public.libraries.txt
Add new libraries from sweet V14.0.9.0.TKFMIXM

Change-Id: I3b9b1195198f975bc19a6618b13b8b6d8db0160a
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
afba133c6e sm6150-common: sepolicy: Change vendor_fp_prop to vendor_public_prop
Change-Id: I48e0d1a885ac62886b1e622ce68598270044ef84
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Arian
10ba5294cb sm6150-common: Enable camera override format from reserved
This enables qcom additions for high framerate videos.

Change-Id: I572d35c6454711e838b2d0dba31551627d10f6e6
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Tim Zimmermann
d192a7813b sm6150-common: Uprev audio HAL to V7
Updated audio policy by running:

'hardware/interfaces/audio/7.0/config/update_audio_policy_config.sh \
device/xiaomi/sm6150-common/configs/audio/audio_policy_configuration.xml 7.0'

with some manual intervention.

Change-Id: Iede32c176742e89577365341732a86f6ecaee514
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
wenchangliu
d380b640a0 sm6150-common: add "can-swap-width-height" for video codecs
[VSR-4.2-004.002] MUST support identical size ranges horizontally
as vertically (for example, support portrait videos of the same size
if they support a landscape video size.)

Bug: 322453106
Test: atest android.mediav2.cts.CodecInfoTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:aa514b3779b94a7dc40dab302c84ab8ae97becfa)
Merged-In: I6918bc926964c8dd398d686ee3e7713d4f023ff2
Change-Id: I6918bc926964c8dd398d686ee3e7713d4f023ff2
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Pawin Vongmasa
72ee26c740 sm6150-common: Move input surface to CCodec
Test: atest CtsMediaTestCases -- \
--module-arg CtsMediaTestCases:size:small
Bug: 131800183
Change-Id: I8783a7de4a4fdf7ff2eac6697c71f6592c9a9e06
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
dianlujitao
adae1ea661 sm6150-common: remove OMX
* OMX HW video codecs are no longer used after enabling Codec2
 * OMX HW audio codecs won't work without QCOM A/V enhancements, which
   we don't have on Lineage.

Change-Id: I65852151c8fb6387add5fc4402ba3f13c97b5f64
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
6e2d634d89 sm6150-common: media: Import Codec2 configs
From sunfish TQ3A.230805.001.S1

Change-Id: Ie2ecfa912e0fe0892a2e6b8ddc3a6b6aa3213d40
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
LuK1337
23879717aa sm6150-common: Switch to common lights HAL
Change-Id: If515e7c3f6e5b6895076f1d8381fb2c22bd1b3de
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
LuK1337
2d72c7b003 sm6150-common: Move WfdCommon boot jar declaration to vendor
Change-Id: I8fa2c0f64692873b432cc252ec88b388a32023a1
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Kumar Anurag Singh
26ed2b1e60 sm6150-common: audio: remove direct flag for VOIP RX
remove direct flag for VOIP RX.

Change-Id: I9ee6f300b7a891afd1ad06c063424509d16d271e
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
eb689dc9f4 sm6150-common: Import missing qcriNvOpt radio dependency
Required after using libril-qc-hal-qmi.so from sweet_k6a

Change-Id: I5e2edbe279177a62bd7db114e2345f8222dd8783
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
30ac495e68 sm6150-common: Unpin libril-qc-hal-qmi.so
Change-Id: I9155507da6e54d9c4ee5a115a9697caeec5ec315
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Bruno Martins
c10c9712b1 sm6150-common: Declare WFD lib as symlink during extraction
Change-Id: I83e3ec03e1ddc58f3a7df008789b1e31584946e1
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Nick Reuter
4849134f1f sm6150-common: Bump libwfdservice to android.media.audio.common.types-V4
Change-Id: I81060d8c73430a9598c676e18dc04e31a2f31c0c
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Nolen Johnson
7bdb6d84dd sm6150-common: fix vendor.qti.hardware.wifidisplaysession@1.0 ELF checks
Change-Id: I6afcbb57df52722cb251ce2aaa81a48ebbcb03dd
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Nolen Johnson
e893c8a66e sm6150-common: fix libmmosal ELF checks
Change-Id: I4f016772a486d5fe894e0c13aece6a49bada38f5
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
3e9c8db0f0 sm6150-common: Add {commonsys,commonsys-intf}/display to namespace_imports
Change-Id: I32f58234df52412941faf4809c5de8ae45dbd5dd
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
d6db347696 sm6150-common: Update WFD system blobs from dodge AP3A.240617.008
Change-Id: I4ade6990bfa6a536b266a743206e8063477cb014
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Giovanni Ricca
7ec8613cc5 sm6150-common: Move to 64bit wfdservice
Co-authored-by: Alexander Koskovich <zvnexus@outlook.com>
Co-authored-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: I9d1e97ea8ac8cc75bdb6c29d6dfc0008e57a660d
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
d0cac07a5c sm6150-common: Bring back QCOM WFD
This reverts commit 4a838e1a9b and d5d80a5347.

Change-Id: Ib6b2ffc341fc22511ebacdd6b716257090209b3b
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Michael Bestas
f923da358a sm6150-common: Migrate mount point creation out of Android.mk
Change-Id: Id5986b8a740e45f864eecdd2bd82d9455f128d6b
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
LuK1337
55d5eb4546 sm6150-common: Build gralloc.qcom
Camera HAL wants it and crashes if it loads default gralloc
implementation instead.

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/8059
Change-Id: I47965713c822cfdfc369975f8975f21f70133608
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Michael Bestas
a8fff34607 sm6150-common: Update display flags & packages
Required after display HAL blueprint conversion

Change-Id: Ifc4e10703d3424607b9dc8bcc8e417d1c88cc2f3
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
5d3daa165d sm6150-common: livedisplay: Migrate to select()
Change-Id: I2d1741cec6ce78d81e04b282c6a8dddf16832737
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Michael Bestas
01cf236cea sm6150-common: gps: Convert remaining Android.mk to bp
Change-Id: I75e6af92795fe755a48557aa06106406b14c6750
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
danielml
77c3652035 sm6150-common: sepolicy: Label FortsenseFingerprintService
Change-Id: Ic1ee3c61d57bb1aaf0204d20764a595ed3e411a3
Signed-off-by: danielml <daniel@danielml.dev>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Arian
944b60179d sm6150-common: udfps: Compare against the aidl AcquiredInfo
Change-Id: I5b6eb5a4544373d71b89abc0e301126eb55e31d1
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
20d156bcab sm6150-common: Move to Xiaomi fingerprint AIDL
Change-Id: I68dba7184034fd37454c7d32a065f041cb611625
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Michael Bestas
2176db9016 sm6150-common: Shim widevine with libcrypto_shim
The following change
e202e51cb0
removed symbols that our libs require.

Change-Id: I1325c34ecec3d339dd68c665010ecb36fa2e6a29
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
1db2c60c21 sm6150-common: Switch to py extract utils
Change-Id: Ibf4a46bc4e9dbb46e5e8474bebb07cd70edf109e
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Tim Zimmermann
01f71c5996 sm6150-common: Remove quotes from TARGET_RECOVERY_PIXEL_FORMAT
* Required after TARGET_RECOVERY_PIXEL_FORMAT is added to soong

Change-Id: Ie6dcac4beccd7e499416a16d5d52404fe9d82f33
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Kelvin Zhang
e4fa63b2ad sm6150-common: Explicitly set as an non-AB target
We will be changing AB to be the default, existing non-AB targets
need to explicitly set AB_OTA_UPDATER to false

Test: th
Change-Id: I86a76296937a6abab1b4495cd66a35144348aafd
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00