Commit graph

343 commits

Author SHA1 Message Date
fjrXTR ee082d12c7 LG8n: configs: properties: Add some Tweak for better performance
* taken from fleur tree & this commit 23217c0

Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-12 18:35:21 +08:00
Michael Bestas ed0b800e8e LG8n: Drop COMMON_LUNCH_CHOICES
As of 14 QPR2 this is broken, let's remove it instead of updating it
every 3 months. breakfast is the way to go.

Change-Id: I097bd54b894d9a49c7ce8b1ab6f343349e268fd8
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-11 03:08:30 +08:00
Shirayuki39 f288336fc7 LG8n: overlay: Define config_autoBrightnessLightSensorRate
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-10 02:51:42 +08:00
Danny Lin b8eaac78e9 LG8n: overlays: Settings: Enable Smooth Display setting
LG8n has peak refresh rates higher than
60 Hz, so allow users to toggle high-refresh rate like on stock.

Change-Id: If757492b40d23c6742378a1ec0c7b3ece31ad720
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-10 01:27:44 +08:00
Shirayuki39 b0628dc486 LG8n: Import WifiResOverlay configs from Stock
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-05 20:03:18 +08:00
Shirayuki39 7acca9f129 LG8n: Import IMS from X6833B-H894DEFGHI-U-GL-240703V808
* Plato gave us unstable VoLTE, duchamp gave us Schrodinger's Volte and Stock LG8n blobs gave us no VoLTE

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-03 23:52:28 +08:00
xNombre 08302337b3 LG8n: props: Enable IncrementalFS support
* IncrementalFS is enabled by default in GKI defconfig

Signed-off-by: Woomy <woomy@woomy.be>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-03 15:33:21 +08:00
Shirayuki39 854f724a3e LG8n: Cleanup unused blobs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-03 16:26:08 +08:00
Shirayuki39 4c1b6e7d41 LG8n: use appropriate ims permissions
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-03 12:45:58 +08:00
Shirayuki39 6d7f2fa9a7 LG8n: Update props
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-02 04:59:47 +08:00
LuK1337 d30bee22d1 LG8n: Set default Settings.Global.DEVICE_NAME according to HiOS
HiOS uses ro.product.product.tran.device.name.default for default device name.

Change-Id: I310c1ffc581b72653783d1093d9e7ebde544bb16
Signed-off-by: dodyirawan85 <dev.irawans@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-02 01:26:30 +08:00
Shirayuki39 e70b0fe002 LG8n: Build additional libs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-01 23:34:40 +08:00
dodyirawan85 3690a763f3 LG8n: Kang smooth display props from xiaomi emerald
Signed-off-by: dodyirawan85 <dev.irawans@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-01 22:51:53 +08:00
Shirayuki39 8d2a640c64 LG8n: Build libperfctl_vendor
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-01 14:12:52 +08:00
fjrXTR 7e64d95dba LG8n: Use libshim_ui for vtservice
F linker  : CANNOT LINK EXECUTABLE /system_ext/bin/vtservice: cannot locate symbol _ZN7android19GraphicBufferMapper4lockEPK13native_handlejRKNS_4RectEPPvPiS9_ referenced by /system_ext/lib64/libsource.so...

Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-31 21:49:04 +08:00
Shirayuki39 7a59c97886 LG8n: Rearrange Soong Namespaces
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-31 21:44:47 +08:00
Shirayuki39 6fb14f6697 LG8n: Link to the correct shims for libcamera_metadata and libsource
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-31 01:34:22 +08:00
neroices e3c051f79e LG8n: sepolicy: Fix definition for storage_dbg_data_file 2024-07-30 21:49:57 +07:00
mikeNG 2bf82df18d LG8n: Build missing libraries for 14 QPR3
Fixes several issues:

No sim detected
Camera not opening
Storage not detecting (Neither accessible by any app)
No sound

Change-Id: I6a84526ca1e9f4e5140c8068646433cab3fe85b2
2024-07-30 21:41:34 +07:00
luk1337 92e30c2243 LG8n: Add libcamera_metadata shim for stripping out system camera cap
Change-Id: I8f7772fc9ec15a00c4b630866aa7fc162a52c1aa
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2024-07-30 21:34:24 +07:00
Giovanni Ricca 262dfe35ac LG8n: libshims: Add android::GraphicBufferMapper::unlock shim
* Commit Ib4590b7a3b839a993f6c747c5f09a6312f7ab329 modified
  GraphicBufferMapper::unlock overload. Create a shim to provide the old
  symbol for blobs that need it

Change-Id: I0e90ac0b383b05904df83076d990ad9335a40664
2024-07-28 19:50:28 +08:00
R0rt1z2 d5230ff22d LG8n:libshims: Add android::GraphicBufferMapper::lock shim
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-28 19:47:58 +08:00
Shirayuki39 773cecf070 LG8n: Add SEPolicy for vibrator-service.transsion
Co-authored-by: dodyirawan85 <dev.irawans@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-28 19:23:51 +08:00
Shirayuki39 0cdaa64a10 LG8n: Switch to vibrator-service from hardware-transsion
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-28 18:30:41 +08:00
Shirayuki39 a842cfee08 LG8n: configs: Nuke references to DTS Audio
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-28 16:01:20 +08:00
Shirayuki39 9ae5231ebf LG8n: Switch to AIDL health HAL
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-28 12:18:38 +08:00
xyzuniverse c7db86b356 LG8n: Switch to AIDL vibrator
Change-Id: I9b1ad902c6a34cd9916c06f586e8bf664a08aae1
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 12:37:35 +08:00
Shirayuki39 0d9acc1c18 LG8n: Nuke InCallService
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 04:52:38 +08:00
Shirayuki39 3d546047c1 LG8n: Build libshim_ui
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 04:21:42 +08:00
Shirayuki39 f4c66c2b9c LG8n: sepolicy: Change mtk_hal_audio to hal_audio_default
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 02:52:36 +08:00
Shirayuki39 a8a043661e LG8n: sepolicy: remove duplicate declaration of NVRAM props
* android_vendor_mediatek_sepolicy_vndr already has this covered for lineage-21 branch

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 02:22:28 +08:00
Shirayuki39 91837d2269 LG8n: BoardConfig: Remove TARGET_POWERHAL_MODE_EXT
* Bleh

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 02:15:31 +08:00
fjrXTR 9b6b86f0c7 LG8n: Switch to lineage-libperfmgr for Power service
* QPR3 KONTOL

Change-Id: I8282e47e543d4bc466a4bc464e1c5f61741d3a64
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 01:32:07 +08:00
Georg Veichtlbauer 96d2a24a81 LG8n: powerhint: Add DT2W
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 01:30:24 +08:00
DennySPB 8db8995f19 LG8n: powerhint: Decrease launch boost to 3sec
* 5s is just too long

Change-Id: I7e037c45cd2296a8bbd67d6bd63c212c0ef2a805
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
2024-07-26 01:25:48 +08:00
Subhajeet Muhuri 067c3723d4 LG8n: powerhint: Drop PM QoS latency boosting
Change-Id: I683033dcbb12e27ccfbf21eff0b5c9bba0269089
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
2024-07-26 01:25:26 +08:00
Woomymy a39971faa7 LG8n: powerhint: Drop task_turbo and fix max bhr_opp value
Change-Id: Ic19a75aa731f0b5be9f36ca273ac573f7f0eb94a
Signed-off-by: Woomymy <woomy@woomy.be>
2024-07-26 01:25:06 +08:00
Woomymy 20c544a63e LG8n: powerhint: Lower interaction min frequencies
Change-Id: Iac66afb6e5570c72ce435ccf86eedac2fb922f0d
Signed-off-by: Woomymy <woomy@woomy.be>
2024-07-26 01:24:45 +08:00
Woomymy 524370028b LG8n: Kang powerhint from mt6768-common
* Imported from mt6768-common powerhint and initialy adapted for yunluo

Co-Authored-By: Matsvei Niaverau <matvej2002@gmail.com>
Co-Authored-By: Vaisakh Murali <mvaisakh@statixos.com>
Co-Authored-By: Woomymy <woomy@woomy.be>
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I45d501e7d9e7ff124db773cad3178a6698085053
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
2024-07-26 01:05:52 +08:00
Jesse Chan 9cc9e029ff LG8n: Initialize powerHAL when boot is completed
Change-Id: Iff72fa27b3b1df4d4c63cbc30876248e53188645
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 01:01:22 +08:00
Shirayuki39 be0b11cbce LG8n: Add hardware/mediatek/libmtkperf_client to Soong namespaces
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:54:23 +08:00
bengris32 e43518a854 LG8n: Build MediaTek libperfmgr
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:53:43 +08:00
fjrXTR 92d94be230 LG8n: Build stub mtkpower service
Change-Id: I6284e6f8a1d6ce7660502a0b553d0fa9824d6703
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:52:03 +08:00
bengris32 fd7ba12379 LG8n: Build dummy libmtkperf_client library
* Required for some vendor blobs that refuse to
  work without mtkpower

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:51:11 +08:00
Shirayuki39 787658e184 LG8n: Drop MTK PowerHAL and cleanup
* ref - xiaomi-mt6789-devs/android_device_xiaomi_yunluo@8361661

Co-authored-by: Woomymy <woomy@woomy.be>
Co-authored-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:50:55 +08:00
fjrXTR c1bde76782 LG8n: Build Required libs for QPR3
* And Patch libcamera_metadata for Camera provider
* ref - Evilmove/android_device_spartan@55eb0b6 ObsidianMaximus/android_device_realme_sm8250-common@a0ed2f1

Change-Id: I4696adea73edc5a8cfe530df6d89c5b244009722
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:46:22 +08:00
ChrisCatto 07c8117b82 LG8n: Link mediatek camera provider against v32 libutils
* Abort message: 'incStrongRequireStrong() called on 0xb40000770d0587a0
  which isn't already owned'
* Required after U QPR3

Change-Id: Ie6ea7f331207f604cb87804c67f4de9fd9a60d76
Signed-off-by: ChrisCatto <chriscatto08@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:45:10 +08:00
fjrXTR 953bdcdccc LG8n: Build missing libraries on camera
* Required on A14 QPR3
* ref - StatiXOS/android_device_xiaomi_yunluo@fbd7104

Change-Id: Iedf6b29e9b814fbd8d24a1620af586eafd3aee46
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:42:14 +08:00
Marc Bourgoin 406d69f353 LG8n: Fix audio on QPR3 with alsa audio
As of Android 14 QPR3, our device requires the use of
alsa audio,# otherwise audio HAL keeps crashing with
error unable to route audio and listAudioPorts failed

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:38:22 +08:00
Shirayuki39 ae41a104d4 LG8n: Switch to prebuilt power-service-mediatek
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:36:05 +08:00