Commit graph

356 commits

Author SHA1 Message Date
Shirayuki39 0747c72cb2 LG8n: sepolicy: Allow libperfmgr to read dir perms for dt2w node
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 18:43:06 +08:00
Shirayuki39 c881be6cb5 Revert "LG8n: Build and rename audio service HAL"
This reverts commit 09782b6996.
2024-08-14 15:10:41 +08:00
Shirayuki39 9b8c48c59c Revert "LG8n: audio: Use binder threadpool"
This reverts commit 13856a412b.
2024-08-14 15:10:31 +08:00
bengris32 5600fd82f0 LG8n: audio: Fix UUIDs for AOSP audio pre-processing effects
* EffectsFactoryConfigLoader: Error querying effect 9f35ed76-0b66-4330-8f79-e39ca266dc7c on lib pre_processing
  EffectsFactoryConfigLoader: Error querying effect 300abe9f-dfc5-4340-9c4b-79ef1be4e651 on lib pre_processing
  EffectsFactoryConfigLoader: Error querying effect 3387eb70-9896-4338-90f5-b2de883864c9 on lib pre_processing
  EffectsFactoryConfigLoader: 3 errors during loading of configuration: /vendor/etc/audio_effects.xml
  EffectsFactory: Effect config is partially invalid, skipped 3 elements

* Fixes a0ecac (RM6785: Drop MTK audiopreprocessing).

Change-Id: I5cf2a493cad4befe42c56f7dfb0c70f5957d2389
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 14:32:40 +08:00
Vaisakh Murali 39464cbe1d LG8n: Drop MTK audiopreprocessing
OSS counterpart works well, instead of using prebuilt blobs, use oss
where possible. This has no adverse effect on the audio quality.
Switch to OSS libaudiopreprocessing.

Change-Id: Id6f075c76f7bf13b12b66500d60b65c69ef069e5
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 14:32:04 +08:00
Shirayuki39 10c2d09a66 LG8n: configs: powerhint: Drop *mediatek* stuffs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 14:19:56 +08:00
Shirayuki39 873182d660 LG8n: props: Import MTK Audio props
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-13 19:11:54 +08:00
Shirayuki39 1aefd8f720 LG8n: configs: powerhint: Change cc0 to cc2 for DT2w off state
Test by sending cc1 first to the dt2w node which should enable dt2w
then send cc0 which should turn it off but it doesn't
Sending cc2 disables dt2w, not cc0
Maybe this is why dt2w broken

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-13 15:36:49 +08:00
Shirayuki39 2d965b6d0a LG8n: sepolicy: Fix dt2w nodes
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-13 14:07:26 +08:00
Woomymy 1ed39b01a9 LG8n: sepolicy: Address libperfmgr power HAL denials
Change-Id: Ia642e53930b77b79f157e27c135c13b4e2131cff
Signed-off-by: Woomymy <woomy@woomy.be>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-13 10:46:02 +08:00
Woomymy d3486f89d0 LG8n: sepolicy: Allow libperfmgr to write cgroup files
Change-Id: I9bf653076acf06111f3bb8b0ef46f56362f7f829
Signed-off-by: Woomymy <woomy@woomy.be>

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-13 10:45:55 +08:00
Shirayuki39 3e97fe652d LG8n: sepolicy: Allow libperfmgr to access the dt2w nodes
* Bruh

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-12 22:58:27 +08:00
Shirayuki39 9e727be721 LG8n: configs: powerhint: Fix DT2W values
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-12 21:30:59 +08:00
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