Commit graph

249 commits

Author SHA1 Message Date
fjrXTR e1561661ff LG8n: Build Power@1.3 libs
Change-Id: Ic242a0b918756ef04a13df968a40765f237b50ea
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:58:52 +08:00
fjrXTR 23cca09c4e LG8n: configs: Add missing IMS permission
Change-Id: If916d8ac813d1aea54c4fba31745de09f78fec95
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:58:07 +08:00
Arne Coucheron 740e48d7e3 LG8n: Add 0x2000 to additional gralloc usage bits
Fixes warning.

| gralloc4: Buffer descriptor with invalid usage bits 0x2000

Change-Id: I8e67bec9ade6e80e2e362f7a3c287f74b7d81242
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:57:30 +08:00
Andrzej Perczak b539cf2067 [PATCH] LG8n: Import oriole cpuctl tuning
This is done in preparation for uclamp migration and FAIR_GROUP_SCHED
enablement in kernel.

Change-Id: Ib486c9bcdfa18d7362461e1a8f66d6fb288af709
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:55:29 +08:00
fjrXTR 5982e8cf1e LG8n: props: Silence more logspam
Change-Id: I9e3d9db063e1fffd1346e0b2aa6921727d0513b7
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:54:56 +08:00
LuK1337 45d53c66c1 LG8n: overlay-lineage: Configure aux camera for Aperture
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:54:34 +08:00
mvaisakh 5498860054 LG8n: Enable EAS instead of HMP
EAS is better on power and perf

The node accepts 3 values
0: Unknown
1: EAS
2: HMP

Signed-off-by: SayuZX <todraihan95@gmail.com>
Signed-off-by: gtw xtr <fajarslebew31@gmail.com>
Signed-off-by: fjrneedayang aww <fajarslebew31@gmail.com>
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:53:13 +08:00
Albert I 680d853c77 LG8n: Inherit several Android Go configurations
Beneficial for everyone, even on non-Go devices.

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:52:26 +08:00
fjrXTR 1da05ad06a LG8n: rootdir: Drop useless service
Change-Id: Id40e1f2a8136f12f8ade87d79bfe1525f83ffa39
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:52:14 +08:00
TheMalachite 29598fae52 LG8n: rootdir: Remove sdcard symlink and iso mount
Signed-off-by: TheMalachite <eliasgheeraert@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:51:51 +08:00
LuK1337 d9b5512540 LG8n: prop: Disallow aux cam usage for Telegram / Telegram X
These seem to misbehave when they reach certain camera IDs.

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:51:23 +08:00
Shirayuki39 fd37a4aa71 LG8n: build some libs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:50:37 +08:00
Matsvei Niaverau 7037643e96 LG8n: Build PowerOffAlarm
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:48:32 +08:00
AndroidHQ254 b7177b1ae1 LG8n: Link older libhidlbase & libbinder for PQ service
F linker  : CANNOT LINK EXECUTABLE /vendor/bin/hw/vendor.mediatek.hardware.pq@2.2-service: cannot locate symbol _ZN7android8String16aSEOS0_ referenced by /apex/com.android.vndk.v34/lib64/libhidlbase.so...
2024-07-17 07:46:45 +08:00
Shirayuki39 72afb1e967 LG8n: BoardConfig: Use appropriate security patch level
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:43:46 +08:00
Shirayuki39 04dbe0f380 LG8n: vintf: Fixup manifest and FCM
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:42:45 +08:00
AndroidHQ254 99e654cf0d LG8n: Import stock public.libraries.txt
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:41:07 +08:00
xyzuniverse d5c08685a6 LG8n: Build neuralnetworks
Change-Id: I73b2362019b0b3a7b5273736e1a48e610e89d41f
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:40:33 +08:00
telepathine 7a4571151c LG8n: InCallService: Map AOSP gain step range to MTK one
MTK has 15 volume steps, we have whatever is set in vc_call_vol_steps.
Mapping our range to theirs allows reaching higher volume levels.

A log curve is used to make gain transitions less abrupt at higher volumes.

Change-Id: I5f0e6467ba9fd0779d7e4abbf9f258b0b42224e4
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:40:08 +08:00
LinkBoi00 df9b347312 LG8n: app: MtkInCallService: Adjust gain values in all situations
Signed-off-by: LinkBoi00 <linkdevel@protonmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:39:52 +08:00
bengris32 664ce73570 LG8n: InCallService: Bugfixes and refactor
* Refactor and cleanup code
* Use proper way of getting audioDevice with getPort().type()
* Stop mixing up values between AudioSystem and AudioManager,
  as values between AudioManager (java) and AudioSystem (native)
  could change and become different from eachother.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I2311ed02b88148b71b374b19aaaf458f82f23824
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:39:37 +08:00
bengris32 54d00be851 LG8n: Introduce Mediatek In-Call Service
* My attempt at fixing in call gain control on MediaTek devices.

* It attempts to replicate what the stock MediaTek framework does
  when controlling the volume of the earpiece speaker, since MTK's
  audio HAL is not able to set the gain of the speaker from the
  values sent by AOSP framework.

[LinkBoi00] Rebrand to Mediatek In-Call Service

Change-Id: I43f727f6fb73a0d38457a41a8361653d1d00e220
Signed-off-by: LinkBoi00 <linkdevel@protonmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:39:11 +08:00
xyzuniverse aa0e29582e LG8n: Add gatekeeper trustonic symlink
Change-Id: I6508b7e443f99a03a285224668aaa36f48ac7b19
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:38:23 +08:00
Tim Zimmermann 45a9fe4666 LG8n: props: Enable FS-Verity
* fsverity flag in fstab is needed to make init run tune2fs -O verity on it

Change-Id: Iebc34457f8d92bf8e09cf1981a47e597aa7ab7c3
Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:37:20 +08:00
bengris32 d21360b5a8 LG8n: Ship MediaTek cgroup/task_profiles configuration
* MediaTek ship their own modified task_profiles and use the V30 cgroups configuration.

Change-Id: I15245ea87b00925597db65f1564e808a094c937a
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:32:28 +08:00
Ash Blake 90c786bed3 LG8n: rootdir: Fix ownership for /dev/video{0,1}
Mediacodec did not have access and video recording didn't work.

Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:32:07 +08:00
TheMalachite fb5c429b95 LG8n: rootdir: Drop on property:vold.decrypt
- We don't use FDE encryption

Signed-off-by: TheMalachite <eliasgheeraert@gmail.com>
Change-Id: Icd9c16a5f5b92992e8e41539971302a09cdde9be
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:31:48 +08:00
Vaisakh Murali 7651369abd LG8n: rootdir: Elevate read permissions for mtk_cmdq and mdp_sync
Apparently on AOSP builds, these nodes when read by the hals
with O_RDONLY attribute, need an elevated read permission, which
is apparently unneeded on mtk builds/stock rom.

This fixes video playback/OMX

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: I7f358d0037de569a4eb038e5ac2a17b7651d307d
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:31:30 +08:00
Kshitij Gupta b9fa6c8546 LG8n: rootdir: Correct mode for video0 and video1
- init services fail to setup encoders on boot and camera and
  screenrecord fails to open video1 when trying to encode a video.
- While we may wanna consider looking through services that make use of
  these devs and correct their groups for AOSP, this gets the job done
  for now.

Change-Id: I0278efe201a9cbaa20c650fdc32bed6f9ecfd017
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:31:09 +08:00
Minchan Kim 44bdf87779 LG8n: rootdir: Add zram parameter
* We also changed zram_loopback_size with zram_backingdev_size so correct it.

Bug: 145116439
Test: confirmed there is no warning and zram backing device was configured
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I51be34c59203813a2f493eee6ab442c9940b75d7
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:30:54 +08:00
Wei Wang 0ac021bb73 LG8n: rootdir: Tune zram performance
-Set max_comp_streams to num of cores since upstream also moves this to percpu.

Bug: 38249616
Test: boot and run zram-perf showing better performance
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:28:54 +08:00
bengris32 2c7fafb516 LG8n: rootdir: Add ZRAM entry from fstab.enableswap
Change-Id: I84333394bd27f67fcd30e054f0446e7c45f39bde
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:28:37 +08:00
fjrXTR 05a580c10e LG8n: link older libutils for audio.primary.mt6789
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:28:11 +08:00
Jiyong Park 7d59c4396b LG8n: power: Remove ndk_platform backend. Use ndk backend instead
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m

Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:26:43 +08:00
AndroidHQ254 d5053cc537 LG8n: Link older libhidlbase & libbinder for camerahalserver
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:26:05 +08:00
AndroidHQ254 257beb70cd LG8n: Link older libutils for camerahalserver 2024-07-17 07:25:30 +08:00
Shirayuki39 f9d86b2b82 LG8n: Import and build required blobs/libs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:23:39 +08:00
Shirayuki39 99e46522d0 LG8n: Reimport Media Blobs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:17:50 +08:00
Shirayuki39 f0f7db7bad LG8n: Switch to Prebuilt Lights Stack
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:16:56 +08:00
Shirayuki39 69fe8e6c1b LG8n: Switch to Prebuilt Vibrator Stack
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:15:14 +08:00
Shirayuki39 fefb71b596 LG8n: Build *-v31
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:13:34 +08:00
Shirayuki39 0afdaf3538 LG8n: Import Camera Stack
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:11:32 +08:00
fjrXTR 7ccbb1e4ba LG8n: Import missing permissions
Change-Id: I641df2c8e45f915ffdf9ec363393a9993a43ce6b
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:06:44 +08:00
Shirayuki39 11d49c89d3 LG8n: Import LG8n Audio and Bluetooth Blobs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:06:14 +08:00
Shirayuki39 e53ad037a2 LG8n: Import LG8n firmware blobs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 06:57:32 +08:00
dmpstr 8695ca5e36 LG8n: Set SELinux as permissive
`"The device knew the system wouldn't boot with an enforcing kernel, so it switched it out for a permissive kernel"`
`- april (fzr850)`
2024-05-25 22:54:45 +08:00
dmpstr 66ecaddf15 [DNM] LG8n: Make SELinux enforcing 2024-05-24 09:14:45 +08:00
SebaUbuntu b7d27c1595 LG8n: Reboot to recovery if init fails 2024-05-24 08:51:28 +08:00
aubrey b27b2315df LG8n: Switch CPU runtime variant to cortex-a76 2024-05-24 08:46:09 +08:00
Shirayuki39 a7ccd1a3c3 LG8n: initial LG8n overlay 2024-05-22 20:58:50 +08:00