Commit Graph

105 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
Kelvin Zhang
041d3cf3ac sm6150-common: Allow to access bootable/deprecated-ota targets
Sm6150-common is still using non-AB update.
non-AB code will be moved to a separated namespace, add
deprecated-ota to sm6150-common namespace list ahead of time to avoid
breakage.

Test: th
Bug: 324360816
Change-Id: I909064be36e8febe80492cf010eb6eac3d6bc33d
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Bruno Martins
673205bdbf sm6150-common: Mark CNE symlink target as required package
Change-Id: I0bfe65ba61b6aa9916fe6459be2a84d772939a2f
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
danielml
295458ae00 sm6150-common: Skip building unneeded libraries
Change-Id: I0a34776c3354e37c6ae3d2b9eca9150d902b99fc
Signed-off-by: danielml <daniel@danielml.dev>
2024-10-15 13:23:42 -04:00
Cosmin Tanislav
aaae514afd sm6150-common: do not manually build dependencies
Change-Id: I4046d8eeabfc70842898b7034f75cdd6bcfc441b
2024-10-15 13:23:42 -04:00
Aaron Kling
940cae663a sm6150-common: Remove software omx codec references
These are no longer available as of Android 14 QPR3. The C2 codecs
available by default in the swcodec apex will be used instead.

Change-Id: I8cdf3e700823779a7382c66c3df8410d41209b7c
2024-09-16 14:16:53 -04:00
Yumi Yukimura
5f487d9349 sm6150-common: Switch to QTI Memtrack AIDL HAL
Change-Id: Ibcbaff02fd56fbccc3a88c01a5f46a89cb212ef5
2024-09-16 14:16:53 -04:00
danielml
e091c0a9a5 sm6150-common: Build xiaomi-telephony-stub
To provide the required Xiaomi IMS methods

Change-Id: I1e75476a0d2ed55b5eae2a0a2c6ca4c3c4e2c0f1
2024-08-06 16:26:04 +05:30
Sebastiano Barezzi
31c2bcd4ca sm6150-common: rootdir: Move from Android.mk
Change-Id: I84413356ca330dd266534f933fe86d2897e9be7e
2024-08-06 14:24:18 +05:30
basamaryan
10bc03f013 sm6150-common: Revert "Preopt SystemUI for AOSP builds."
This reverts commit c027a3e451.

Reason for revert: This is already done in vendor/lineage.

Change-Id: I7961e8e75a7f865da02f4409a40cb86c4d90592f
2024-07-03 01:57:02 +05:30
Bruno Martins
6d916c791d sm6150-common: Convert WiFi firmware symlinks to install_symlink targets
The last bit that was preventing building hermetic images.

Change-Id: I75bb7de4593a7992f6015317cf97e088beeba0cb
2024-06-24 03:00:27 +05:30
Bruno Martins
127a13fd01 sm6150-common: Move to new RFS install_symlink targets
Change-Id: I9560fd0da00958d9349a0881b5a5f64a2c02e495
2024-06-24 02:55:15 +05:30
basamaryan
caf4fd3282 sm6150-common: Use the common excluded-input-devices.xml
Change-Id: I22da0119acb1df87eb093ab311fa86369817ca8a
2024-06-22 17:27:09 +05:30
Michael Bestas
7dc92aba67 sm6150-common: Build missing libraries for 14 QPR3
Change-Id: I6a84526ca1e9f4e5140c8068646433cab3fe85b2
2024-06-17 12:23:25 +02:00
Bruno Martins
22ae2ff2f8 sm6150-common: Use common libqti-perfd-client and power-libperfmgr
Change-Id: I22d6b35c72629553817005deaefcae60abc72cfd
2024-05-19 18:07:53 +02:00
basamaryan
2a17de6423 sm6150-common: Don't explicitly include updatable_apex.mk
It is inherited by base_system.mk as of QPR2

Change-Id: I020a05b233f61ea28d03199cbc76051e6e97e1dc
2024-04-10 13:26:48 -04:00
Michael Bestas
f531fce60d sm6150-common: Switch to android.hardware.usb@1.3-service.dual_role_usb
Change-Id: Ibd14f7d31dfaf41e040302eda3bc49f351deb618
2024-04-10 13:26:48 -04:00
Michael Bestas
9202e79a7a sm6150-common: Build recovery QTI health AIDL service
We have a recovery partition.

Change-Id: I10841b26feea3c214349a20b2eedec74924f993a
2024-04-10 13:26:46 -04:00
Bruno Martins
53d51eceb1 sm6150-common: Move to QTI health AIDL service
The health AIDL HAL service provides functionalities of charger,
therefore system charger at /system/bin/charger is deprecated.
On top of that, QTI health AIDL HAL service enables suspend by
default, the equivalent of setting ro.charger.enable_suspend
for legacy charger.

Change-Id: I59c23e7974cea1174b0161f31a535fa3afa1e5c9
2024-04-10 13:26:46 -04:00
LuK1337
d58ad40aa3 sm6150-common: Build libprotobuf-cpp-lite-3.9.1-vendorcompat
Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2
2024-04-10 13:26:45 -04:00
Krzysztof Kosiński
7c273239a4 sm6150-common: Add prebuilt protobuf 3.9.1 to vendor partition.
Needed to work around a Qualcomm HAL prebuilt.

Bug: 203713560
Bug: 258322017
Bug: 254854421
Test: Forrest
Change-Id: I4eebc60f10fbea6a66127ed3e08441db32536f78
2024-04-10 13:26:45 -04:00
Gabriel Biren
6885f726e2 sm6150-common: Update makefile to use the AIDL Wifi Vendor HAL.
Bug: 274964641
Test: Pre-submit tests
Change-Id: I4d9114377fe75b593bbfe6a59f03d8f5d607d6a1
2024-04-10 13:26:45 -04:00
Josh Wu
6735f03614 sm6150-common: Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
Merged-In: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
2024-04-10 13:26:45 -04:00
Tim Zimmermann
0e2890fafe sm6150-common: Inherit non_ab_device.mk
* This is required to build applypatch for updating recovery

Change-Id: I38053691f7724b5d6c30159c410d5d04ac136180
2023-12-15 14:06:36 +01:00
Daniel Rosenberg
8563c5735c sm6150-common: Enable casefolding support on userdata
This enables casefolding, which is required for removal of sdcardfs.

Test: Wipe data and boot. lsattr /data/media, check for +F
Bug: 138322712
Change-Id: I020aa6bb9c121e7bda83c07bc9fb37dcfa26702c
2023-08-21 19:38:38 +02:00
Michael Bestas
630f539308 sm6150-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2023-08-20 18:47:33 +02:00
Arian
da59885981 sm6150-common: rootdir: Import dynamic non-ab fstabs from LA.UM.9.1.r1-13500-SMxxx0.QSSI13.0
Change-Id: Ib54d1fa04bbc57ec432c0e21cc90d04051321564
2023-08-20 18:46:58 +02:00
Alessandro Astone
187d4ed71c sm6150-common: Build and enable fastbootd
Change-Id: I0b20600fe7203a7aec19cbea8f6849052585c6ab
2023-08-20 18:46:58 +02:00
Arian
e786690216 sm6150-common: Commonize dynamic partitions
Change-Id: If754f1d40d5dd7488a0137fa90d82dce89bbc1dd
2023-08-20 18:46:58 +02:00
Lucchetto
d1c9828f55 sm6150-common: Create dummy libqti-perfd-client
* proprietary perfd blobs can finally be nuked without breaking goodix
* we could even map the functions to use libperfmgr powerhints in the future

Change-Id: I124652f3041761966a3e3bd97c757fecc39cc5fb
2023-06-05 11:38:04 +02:00
Sebastiano Barezzi
bb60b16ec9 sm6150-common: Uprev bluetooth audio HIDL impl to 2.1
* We get free LC3 support, isn't it poggers?

Change-Id: I0f1713ee542102374183ef8088bcad62d3859c2f
2023-06-04 10:55:32 +02:00
Sebastiano Barezzi
5ef61b13a0 sm6150-common: Go away Megvii
* Nuke Megvii proprietary files and build stub ones from hardware/xiaomi

Change-Id: I53f8f0897b25517741a06c5962c02fe8fda61072
2023-05-18 12:52:52 +02:00
Alexander Koskovich
aee39d4741 sm6150-common: Move ueventd.qcom.rc to /vendor/etc.
* This is the preferred location as of Android 12.

Change-Id: I8c7d2230281b6d8da802bf10f88461289849acaf
2023-01-27 01:32:59 +00:00
Alexander Koskovich
185b3de9b3 sm6150-common: Update telephony package list to LA.QSSI.12.0.r1-05600-qssi.0
Change-Id: Id6fdabd9d5e0df6d23a982e0e39e06a8acff67ef
2023-01-27 01:32:59 +00:00
Hridya Valsaraju
b15c927d19 sm6150-common: Set PRODUCT_SET_DEBUGFS_RESTRICTIONS
Starting with Android R launched devices, debugfs cannot be mounted in
production builds. In order to avoid accidental debugfs dependencies
from creeping in during development with userdebug/eng builds, the
build flag PRODUCT_SET_DEBUGFS_RESTRICTIONS can be set by vendors to
enforce additional debugfs restrictions for userdebug/eng builds. The
same flag will be used to enable sepolicy neveallow statements to
prevent new permissions added for debugfs access.

Test: build, boot
Bug: 184381659
Change-Id: I45e6f20c886d467a215c9466f3a09965ff897d7e
2023-01-27 01:32:59 +00:00
Robert Shih
552cdd17f1 sm6150-common: Enable AIDL DRM HALs
Bug: 219538389
Test: atest GtsMediaTestCases
Change-Id: Iaf321aabf7f0ef3d86c518982781d95c4a648506
2023-01-27 01:32:59 +00:00