Commit Graph

127 Commits

Author SHA1 Message Date
Michael Bestas
d417b91b3f sm6150-common: Migrate camera override format from reserved to soong_config_set
Signed-off-by: lemezohaib <zhbkhan644@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:16 +00:00
Yumi Yukimura
bbd0dfb1d0 sm6150-common: Switch to $(TARGET_COPY_OUT_RECOVERY)
Change-Id: I2a5b7a1a7ea431ba3a0f12bef5af04c5c465bc6f
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:16 +00:00
LuK1337
31012e1be4 sm6150-common: Switch to NCM USB tethering
Change-Id: I20b6b2b2e26a45d8b28c7483afc83ad4da4b8643
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:16 +00:00
lemezohaib
d7ee1dc415 sm6150-common: Migrate libcameraservice extension lib via soong_config_set
Signed-off-by: lemezohaib <zhbkhan644@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:15 +00:00
Michael Bestas
370c890d03 sm61510-common: Migrate Lineage Health to soong_config_set
Signed-off-by: lemezohaib <zhbkhan644@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:15 +00:00
donjohanliebert
336b724bde sm6150-common: add ViPER4AndroidFX support
Change-Id: I0c49956f5e88d8208bfb9f23da2a011338264d58
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:15 +00:00
Simao Gomes Viana
d4fc693590 sm6150-common: Set appropriate dalvik props for 8GB ram device
* Based on 14a6b59647
* Let's use this instead of the old one we've been using before

Signed-off-by: Simao Gomes Viana <xdevs23@outlook.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-10 08:54:15 +00:00
Mathieu Chartier
e4ee8bf32e sm6150-common: Speed profile services and wifi-service to reduce RAM and storage
Change-Id: I0bd3c9fde925dba8fa7dd11a7623f1a59ef57782
Signed-off-by: Mathieu Chartier <mathieuc@google.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
basamaryan
9071d99bac sm6150-common: Switch to the pixel power-libperfmgr
Change-Id: Ic018a0151f7156eab2bb983e3de52cd7b8756710
Signed-off-by: basamaryan <basam.aryan@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Adithya R
51b0e5b491 sm6150-common: Drop soundtrigger HIDL impl
* breaks google voice match with pixelpropsutils as
   we don't have hotword enrollment support

Change-Id: I213626f9729e5ff47ce7e6c990d605ed669b97e3
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Adithya R
16cbf50605 sm6150-common: Silence some spammy logging
HWC and cit sensor logspam is so intense it bumps up logd's idle CPU
usage up to over 3%. With this change, logs are much cleaner and logd
idle CPU usage is reduced to under 1%, while still allowing error logs
to pass through.
- Do this only in user/debug builds (except eng).
- Add wifi and cnss too while we're at it, they can get noisy at times.

Change-Id: I3322e333f9f18ad73e3774d322474e3a779eb7ed
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Akash Srivastava
85f3cb82d4 sm6150-common: Build some missing LDAC libs
* Bluetooth libs look for them

Change-Id: I72ac9c1edf6b05947034908339dbe6a19b8088c0
Signed-off-by: Akash Srivastava <akashniki@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Yan Yan
f3bdcb730e sm6150-common: Add feature flag for IPSEC_TUNNEL_MIGRATION
This commit adds the IPSEC_TUNNEL_MIGRATION feature flag,
with XFRM_MIGRATE used as the implementation

Bug: 273379472
Test: build, flash and verify with "adb shell pm list features"
Test: atest IpSecManagerTunnelTest
Change-Id: Id2ee3e65183e32ea63f6251ba921e1e4c6b09ed0
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Pranav Vashi
1a99a64259 sm6150-common: Setup zram with post-boot script
* This way zram size can be optimized.

Change-Id: Ida4fca8aab88ab5af3dcba166e98cf722bab6614
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:59:14 +00:00
Pranav Vashi
f489c33789 sm6150-common: Remove XiaomiParts doze
Change-Id: Ie16ddda3347682b103217bd304d1b170f88654f0
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:55:22 +00:00
Pranav Vashi
774f4d6eef sm6150-common: Disable zram writeback
* Disabled on many devices with reports to lagginess in long term and random reboot in some instances.

Change-Id: I73985159766da08cd35b0288db29cfafc7db62b0
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:55:22 +00:00
basamaryan
bc0dc1d83f sm6150-common: rootdir: Remove /data/vendor/dolby on upgrade
This is required after switching to the OnePlus Dolby Atmos stack

Based on:
09e0c6ad23
346519f7f2

Change-Id: I2ac8f83899a0866975aa6cbce26da9670b16843d
Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Co-authored-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:44:29 +00:00
Sugakesshaa
df74c24026 sm6150-common: Import Dolby C2 Media service
from OnePlus 11 CPH2447_15.0.0.401(EX01)

Change-Id: Icdfc5b11c7635d0707c2a39f54e0c8d149c771bc
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:44:20 +00:00
Omkar Chandorkar
4a839cb4df sm6150-common: Introduce Dolby Atmos support
Change-Id: I46b62d08ad51c321c997792301524fc0c18d6ba6
Co-authored-by: Sugakesshaa <sugakesshaa@gmail.com>
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:44:17 +00:00
Michael Bestas
e54a6dbc60 sm6150-common: Enable UFFD GC
Kernel has support for it now.

Change-Id: I3863ee71477f321fe47646571b857fdc39a1902b
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:43:14 +00:00
Michael Bestas
a34a72f2d5 sm6150-common: Enable ELF checks for libwpa_client dependent libs
Change-Id: I490df02b68da4b9a7088a239672a1dcace66d270
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
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