Commit graph

371 commits

Author SHA1 Message Date
Ali Hasan c3b45115d6 LG8n: Add mising props: Aux Camera access for Aperture Camera
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-17 19:40:19 +08:00
Adithya R 2ade54c33c LG8n: Switch to SF phase offsets from redfin
Change-Id: I0a5042e43a2aab6ab86075f2f9a886ef541ca258
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-17 19:30:01 +08:00
Danny Lin 8f78fad667 LG8n: props: Disable sf EGL image tracking
Surfaceflinger Debugging feature that we don't care about, so disable it to reduce overheads.
Signed-off-by: skwel <abalverde1694@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-17 19:26:36 +08:00
Martin Liu 0173b406e1 LG8n:props: Disable LMK Debug
This disables LMKD debug logs
https://source.android.com/docs/core/perf/lmkd#configuring-lmkd-in-android-r

Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-17 19:13:43 +08:00
Shirayuki39 4908c249f7 LG8n: configs: props: Import some more system properties from stock rom
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-17 20:28:47 +08:00
Alex Sarraf 410db8169b LG8n: display: Set debug.sf.auto_latch_unsignaled to 0
Need to explicitly set auto_latch_unsignaled property to
disabled state to keep latch-unsignaled as the default
behavior.

Change-Id: I3856caaf0a68e7e720819f25338d1eb9196f56b0
2024-08-17 18:55:21 +08:00
Shirayuki39 1b7d96921a LG8n: Rename Overlays
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-17 18:48:46 +08:00
wildbeetle 5e824a5356 LG8n: Remove debug.sf.latch_unsignaled
* Got removed in A14 QPR2
 * 1fd9bfca9d
 * We have set auto_latch_unsignaled property to
   disabled state to keep latch-unsignaled as the default
   behavior.

Change-Id: I3443d6e5b0916a3098dad556ec46cf53069ae348
Signed-off-by: SamarV-121 <samar@samarv121.dev>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-15 19:14:12 +08:00
Shirayuki39 b3e2fcb171 LG8n: Hardcode the TAP_TO_WAKE_NODE into the libperfmgr extension
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 23:56:52 +08:00
Shirayuki39 0c1d8f7a87 LG8n: BoardConfig: Wrap TARGET_TAP_TO_WAKE_NODE in quotes
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 23:51:30 +08:00
Shirayuki39 55121233b3 LG8n: configs: powerhint: Let the power mode extension handle dt2w
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 23:42:25 +08:00
Arian 8ca89fd96b LG8n: Provide a static lib for power mode extension
* [Shirayuki39] change xiaomi to transsion

Change-Id: I3e2cf17bf1e733838e9e18afdf3f888e814593dc
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 23:42:25 +08:00
Shirayuki39 92085eed10 LG8n: power: Adapt namespace for libperfmgr
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 21:14:33 +08:00
Shirayuki39 132d54c4d1 LG8n: power: Bring back power-mode.cpp
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 21:10:56 +08:00
Shirayuki39 2dd72e1e4f LG8n: BoardConfig: Define TARGET_TAP_TO_WAKE_NODE
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 20:37:50 +08:00
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