1653 Commits

Author SHA1 Message Date
Bruno Martins
d85db10f01 msm8996-common: Switch to common Touch AIDL from hardware/xiaomi
Change-Id: I89fa58ae2eb5d7741bf5628d4f56ad0eb55e59ff
2025-07-09 14:24:25 +02:00
Michael Bestas
e9284849f8 msm8996-common: Remove deprecated config_mobile_tcp_buffers/networkAttributes
Change-Id: Ieda947e283cde11cf74a01dc1b438e1deeb902c9
2025-07-09 14:24:25 +02:00
Michael Bestas
e95122cfca msm8996-common: camera: Remove CleanSpec.mk
Change-Id: I599ae8bedcd23d052d0e3e658d12b28f641868e6
2025-07-09 14:24:25 +02:00
Bruno Martins
cfb9794c24 msm8996-common: readfem/readmac: Convert to bp
Change-Id: Ie607de76a658a475e8f1d6cf748e6e8fc8acfa5c
2025-07-09 14:24:25 +02:00
yingjiew
b8015d9936 msm8996-common: gps: Avoid access of deprecated LocUnorderedSetMap entry
When there is no client listens to some DataItemId, we will remove
the map entry. Can't access the deleted entry's iterator anymore.

Change-Id: Id64aadebf7362667fbcf0fd5191f888ed9241727
CRs-Fixed: 3886536
(cherry picked from commit 0049d459cc1772f328e29a4c6b6d129af132e7b8)
2025-07-09 14:24:25 +02:00
Michael Bestas
2223dc61bf msm8996-common: Migrate mount point creation out of Android.mk
Change-Id: Id5986b8a740e45f864eecdd2bd82d9455f128d6b
2025-07-09 14:24:25 +02:00
Alexander Koskovich
3bab5cd89f msm8996-common: Remove vendor RenderScript implementation.
* RenderScript is deprecated on newer platforms and
   is being officially replaced.

 * On April 19, 2021, Google announced that RenderScript
   will be deprecated in Android 12, and recommended
   porting existing code to Vulkan.

   https://android-developers.googleblog.com/2021/04/android-gpu-compute-going-forward.html

Change-Id: I19460ef266a646b046f1e7d2f0b4eab7c48ae536
2025-07-09 14:24:25 +02:00
Hridaya Prajapati
db755b76ff msm8996-common: sepolicy: Remove duplicate IR rules
Change-Id: I825fac0d61b9dac2fb3e875ccc9df4232d335f50
2025-06-04 01:25:20 +02:00
Bruno Martins
fa20b0d343 msm8996-common: Set vendor init lib via soong config
Change-Id: I8f7e6b987bee58dbf09ca9ad7cfd5a7e99e19c3b
2025-06-04 01:25:20 +02:00
Bruno Martins
cd0c56032d msm8996-common: Migrate Lineage Health to soong_config_set
Change-Id: I2eff39e83b9673aa2989d05de65c646241ba61da
2025-06-04 01:25:20 +02:00
Wang Han
d8a9d05c39 msm8996-common: Remove libaacwrapper from PRODUCT_PACKAGES
* It does not exist at all and is replaced by libwfdaac.

Change-Id: I3b2684b9980d6856f1817e5a40e42861ea86ae24
2025-06-04 01:25:20 +02:00
Yumi Yukimura
468ecb4490 msm8996-common: Drop TARGET_RECOVERY_DEVICE_MODULES
* It's deprecated on 15 QPR2
* Building a library as module doesn't get it executed? and libinit
  still does its job in recovery mode without migrating this

Change-Id: I7be000356fe7d7bd099615d334892d1686bece0e
2025-06-04 01:25:20 +02:00
3e24edcd59 msm8996-common: overlay: attempts to address missing navbar option
* Since QPR2, navbar options just disappeared, and only the 3-buttons navigation mode exists.
* So we can not hide the navbar while using a device with hardware buttons

Signed-off-by: Onelots <onelots@onelots.fr>
2025-05-08 22:19:25 +02:00
0e0e074ddf msm8996-common: Initialize Evolution X
Signed-off-by: Onelots <onelots@onelots.fr>
2025-05-07 02:17:42 +02:00
4aff473700 msm8996-common: dolby: Add xiaomi_framework_compatibility_matrix.xml
* vendor.dolby.hardware.dms is already defined in xiaomi/hardware

* Let's use it to avoid vintf making build fail

Signed-off-by: Onelots <onelots@onelots.fr>
2025-05-07 02:17:32 +02:00
Pranav Vashi
96e672bbe1 msm8996-common: dolby: Add profiles overlay for moto dolby
Change-Id: Ided92625cb73f530656e86929b3ba70fea1e940d
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-05-07 00:31:58 +02:00
Pranav Vashi
a20cf33503 msm8996-common: dolby: Update dax-default from moto
Change-Id: I430adc74c64093bf3c1439e66607567cb6444b80
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-05-07 00:31:33 +02:00
Pranav Vashi
ee5cf4a6ce msm8996-common: libstagefright_foundation-v33 moved to lineage compat
Change-Id: Ib1fd8644e6c2567c89d67967f31c62582cc006ef
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-05-07 00:31:20 +02:00
dogpoopy
9c669af78d msm8996-common: Switch dolby soundfx to libswdap
* libhwdap.so doesn't work with devices that doesn't have dolby hardware support
* libswdap.so from https://github.com/reiryuki/Dolby-Atmos-Moto-G52-Magisk-Module.git

[@neobuddy89: Pin libswdap.so from above module]
Change-Id: Icb22599d2d439a837b537b59330f30e558869532
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-05-07 00:31:13 +02:00
Pranav Vashi
e480780504 mqm8996-common: audio: Add dolby to audio effects
Change-Id: Ie4865489f79b617f2568fc29b382c56bb0cd6f11
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-05-07 00:31:06 +02:00
Pranav Vashi
5337df48ac msm8996-common: audio: Apply NLSound 4.0 optimization for dolby
Change-Id: I221799b79f80933cc8302418f1290893722a5368
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-05-07 00:31:00 +02:00
basamaryan
2382c104ae msm8996-common: audio: Forcefully disable volume leveler
sed -i "/volume-leveler-enable/ s/true/false/g" configs/audio/dax-default.xml

Change-Id: I7ceb29291a9e55036d57975f5a28a149c7fcb435
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-05-07 00:30:53 +02:00
Fabian Leutenegger
d6e0fd0c76 msm8996-common: Link Dolby Atmos dependencies against v33 libstagefright_foundation
* fixes crashes and absurdly high CPU usage while using dolby

Co-authored-by: Woomymy <woomy@woomy.be>
Change-Id: Ib72b775dae677f3085d0b0e2afcbb709d8690063
Signed-off-by: basamaryan <basam.aryan@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-05-07 00:30:47 +02:00
basamaryan
bda28d1905 msm8996-common: Build XiaomiDolby
Change-Id: I31ff2c27a479423951c8a645bf1cd65dc6ad6f81
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-05-07 00:30:41 +02:00
madmax7896
d09b0d37d4 msm8996-common: Import Dolby audio blobs and sepolicy
Squashed with:
commit b1baf8e4109edf71727c39bff18077110174dff2
Author: Yuan Si <do4suki@gmail.com>
Date:   Sat Sep 16 06:35:46 2023 +0800

    sweet: sepolicy: Address more Dolby audio denials

    09-16 06:33:17.209   613   613 E SELinux : avc:  denied  { find } for interface=vendor.dolby.hardware.dms::IDms sid=u:r:mediacodec:s0 pid=1262 scontext=u:r:mediacodec:s0 tcontext=u:object_r:hal_dms_hwservice:s0 tclass=hwservice_manager permissive=0
    09-16 06:33:17.209  1262  8489 E DecDynamicConfig: connectService : Connect to Dolby Native Service failed
    09-16 06:33:17.209  1262  8489 E DecDynamicConfig: checkShareConfig: Dolby service is NULL

    Change-Id: Ideb557073b53e7b31f6535d6053933104b455ae7
    Signed-off-by: Yuan Si <do4suki@gmail.com>

commit e83b80995343c56382e43bf0656ee1e2b79ee067
Author: YuKongA <70465933+YuKongA@users.noreply.github.com>
Date:   Thu Oct 12 00:02:27 2023 +0800

    sweet: sepolicy: Address mediacodec denials

    Partially taken from ec0e9c641f and extended to hal_dms_server

    Change-Id: I51cfbbb2f8b9d83e74ef2f44196e8393189ca3dc
    Signed-off-by: basamaryan <basam.aryan@gmail.com>

commit 0a7aab81667f137c57fa95c4661fa7e43e0e2c1c
Author: Pranav Vashi <neobuddy89@gmail.com>
Date:   Fri Aug 2 20:27:52 2024 +0530

    sweet: Move dax-default to device tree

    Change-Id: Id2054bb5e61bcfe58706e32f44d37fe7524aa912
    Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>

Change-Id: I2d466238525d074269377a82627a816527aefd74
Signed-off-by: Mesquita <mesquita@aospa.co>
Signed-off-by: basamaryan <basam.aryan@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-05-07 00:30:33 +02:00
Le Hong Duc
864bdbf7b1 msm8996-common: overlay: Add CPU temperature divider 2025-05-07 00:15:23 +02:00
02637293fd Revert "msm8996-common: Override fastboot-info.txt"
This reverts commit fe8d4f8606.
Since we now use retrofit, this would only cause troubles
while flashing the rom.
2025-05-06 18:17:20 +02:00
Sebastiano Barezzi
e1fe5fd01f msm8996-common: Retrofit dynamic partitions
* Merge system and cust, giving us a whopping 4GB of space, pretty nice
* Mark standard block devices as super block devices (from https://source.android.com/devices/tech/ota/dynamic_partitions/implement?hl=en#selinux-legacy)

Change-Id: I2553aad99f5c458cf6ac6b4265dc5840127c13e9
2025-05-06 15:48:05 +02:00
Hanabishi
5d80fdc072 msm8996-common: Remove surfaceflinger vsync offsets
This makes us use default values (1000000) instead.

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/6842
Change-Id: If13d4032274e3894a89083346384b4c3b272fbc1
2025-05-05 22:30:28 +02:00
Sundong Ahn
5ff541aa89 msm8996-common: Add system properties for surfaceflinger
The configstore will be not used in surfaceflinger. So surfaceflinger
will use the system properties instead of configstore.
For this, the system properties are added.

Bug: 112386364
Test: m -j && boot test
Change-Id: Ie3d2adccca06702217984cf2c9db986d852b7014
2025-05-05 22:30:28 +02:00
Nolen Johnson
d1a504df19 msm8996-common: Don't declare BOARD_VENDOR
* Only matters when it differs from the device OEM.

Change-Id: Id9af8263cb42dc7a0e3a9ce8677385e224910302
2025-05-05 22:30:28 +02:00
Yumi Yukimura
a4dee767c9 msm8996-common: Move ELF files to PRODUCT_PACKAGES without checkelf
Change-Id: If4c93792bf27eaf2f787ea1a288ac8e25be56855
2025-05-05 22:30:28 +02:00
LuK1337
d9e31a2dc5 msm8996-common: Use libcutils-v29 target
Change-Id: Ie0b9f39412a3e3c711c28c5a78925720d85658c3
2025-05-05 22:30:28 +02:00
Tyler Wear
5bd111e693 msm8996-common: tetheroffload: Version 1.1
Update tetheroffload to version 1.1.

Change-Id: I004e44e416a88a1b39a4c80366df9008722f096b
2025-03-02 17:13:13 +01:00
Bruno Martins
1452491bc9 msm8996-common: recovery: Convert Android.mk into .bp
Change-Id: Iac161b544e98a7b99183f8bd9b95a8bc1be8c6c0
2025-01-27 09:52:13 +00:00
Bruno Martins
bf45ce69bb msm8996-common: Rename rootdir to init and migrate to blueprints
Change-Id: I9d55dc634fc4df2c60d30a0c18ec356a857e3c4b
2025-01-27 09:52:13 +00:00
Bruno Martins
9c60e3cbc1 msm8996-common: Convert WiFi firmware symlinks to install_symlink targets
The last bit that was preventing building hermetic images.

Change-Id: I75bb7de4593a7992f6015317cf97e088beeba0cb
2025-01-27 09:52:13 +00:00
Bruno Martins
42b4e2b8dd msm8996-common: Declare IMS libs as symlinks during extraction
Change-Id: Ia1b8097d28dd4888232fe383b830515b1b9bafaa
2025-01-27 09:52:11 +00:00
Michael Bestas
10c6f828c9 msm8996-common: Update display flags & packages
Required after display HAL blueprint conversion

Change-Id: Idb002fc81fca3321f70fb3bba83f4af44354ce81
2025-01-25 14:32:04 +01:00
Michael Bestas
16ab26258c msm8996-common: Remove OMX audio codecs
* OMX HW audio codecs won't work without QCOM A/V enhancements, which
   we don't have on Lineage.
 * OMX SW audio codecs no longer exist.

Change-Id: I940be6716b603e848c44839bb87ad690eb55e86f
2025-01-25 14:32:03 +01:00
Yumi Yukimura
960fd5f63b msm8996-common: Switch to QTI Memtrack AIDL HAL
Change-Id: Ibcbaff02fd56fbccc3a88c01a5f46a89cb212ef5
2025-01-25 12:58:42 +00:00
LuK1337
39608638d5 msm8996-common: Switch to common lights HAL
Change-Id: If515e7c3f6e5b6895076f1d8381fb2c22bd1b3de
2025-01-17 17:12:14 +01:00
Kelvin Zhang
f5b246ca1a msm8996-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
2024-12-11 10:40:45 +01:00
Marc Bourgoin
c15b6167a4 msm8996-common: Remove copy libutils-v33
With enforced elf checks coming on A16, let's switch to the provided one from compat

Change-Id: I193682ca769e902b7a8b2edd850ea14297a71dec
2024-12-10 13:34:38 +01:00
Christian Hoffmann
dd5b630b18 msm8996-common: Align with new recovery structure
Change-Id: Ic3ecf63a2888aac08aeaf40677ae7bfa74912030
2024-11-05 22:02:11 +01:00
LuK1337
4d28e8340a msm8996-common: Build libhidlbase-v32{,.vendor}
Change-Id: I1b31199ec389ea6ba0d8faea4c539839c1cb8170
2024-11-01 14:34:42 +01:00
Luofan Chen
4e47cd080c msm8996-common: Remove quotes in TARGET_RECOVERY_PIXEL_FORMAT
Change-Id: Ic400a47f0b4b8d2884082b99df3fe2e09c9438f6
2024-11-01 14:06:26 +01:00
Michael Bestas
51221a2474 msm8996-common: Shim widevine with libcrypto_shim
The following change
e202e51cb0
removed symbols that our libs require.

Change-Id: I1325c34ecec3d339dd68c665010ecb36fa2e6a29
2024-11-01 12:30:16 +01:00
LuK1337
e039464604 msm8996-common: Disable checkelf
Change-Id: I7ece9e7091ca044de6ec8631da180e5390afb1e2
2024-11-01 12:30:16 +01:00
Suren Baghdasaryan
30492ffcaa msm8996-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>
2024-08-31 15:23:46 +01:00