Commit graph

285 commits

Author SHA1 Message Date
Shirayuki39 49c6737257 LG8n: Nuke AEE Init Scripts
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:28:58 +08:00
Shirayuki39 8297e8a844 LG8n: Self-kang props from pre-reboot branch
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:22:42 +08:00
Shirayuki39 dcacdb97a2 LG8n: Enable OTA Asserts
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:19:23 +08:00
Shirayuki39 89c0588628 LG8n: Inherit generic mediatek_vndr sepolicy
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:18:30 +08:00
Woomymy 479ed2aa21 LG8n: Enable Wi-Fi STA/AP concurrency
* https://source.android.com/docs/core/connect/wifi-sta-ap-concurrency

Change-Id: Ie3341ce8e716f7c7071882b4ff0ad966cff6482f
Signed-off-by: Woomymy <woomy@woomy.be>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:16:53 +08:00
Woomymy 7b306cad53 LG8n: Fixup SONAMES of moved libraries
* Required to pass check_elf_files
Signed-off-by: Woomymy <woomy@woomy.be>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:15:55 +08:00
Shirayuki39 720dca65dc LG8n: Build some libs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:13:09 +08:00
Shirayuki39 315f51d08c LG8n: Switch back to Stock USB HAL
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:10:04 +08:00
Shirayuki39 74eaa81915 LG8n: Import Tranlog and TNE blobs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:07:39 +08:00
Shirayuki39 4b7e1e73a1 LG8n: Import Missing Blobs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:07:18 +08:00
Shirayuki39 d1d2624faa LG8n: Import Missing Fingerprint Blobs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:06:15 +08:00
Randall Huang b41c90c409 X6837: remove IO read_ahead_kb tune
If we set 2048KB ra value in the beginning of the
boot process, services initialized at this time would
keep 2048KB ra value even though we adjust the ra value
to 128KB after boot completion.

This may cause memory pressure.

Bug: 174700194
Signed-off-by: Randall Huang <huangrandall@google.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:03:29 +08:00
Jaegeuk Kim fa3338ae7b X6837: Get back to default from long-standing VM tweaks
This patch removed the old writeout policy tune which was never touched since
2009. In the meantime, most of Android devices are equipped with over 4GB DRAM
and very fast flash storages like UFS, which becomes more like desktop or
servers in 2009. So, it'd be worth to go back to use the default kernel configs.

Bug: 136483670
Bug: 137190999
Bug: 152936751
Test: check value output
Change-Id: I1ebbf9f1f27a921103db51e96a50aadd6ec0dde8
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Martin Liu <liumartin@google.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:03:05 +08:00
Woomymy edfaf934d7 LG8n: rootdir: Load fm radio driver in init.mtkgki.rc
Change-Id: I9f6a984ce5e3b1473bea81c8a477224377d04d6a
Signed-off-by: Woomymy <woomy@woomy.be>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:01:25 +08:00
Thierry Strudel 810180b1b5 LG8n: Adjust charger state CPUs
Bug: 74771887
Change-Id: Ifd5d2ac499866ce897cfa99a655da592248e7bbd
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:00:24 +08:00
Wei Wang 2e9a42004e LG8n: charger: Powersaving in charger mode
Bug: 72445880
Test: boot to charger
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 13:59:45 +08:00
Wei Wang 34de010274 LG8n: Enable UFS boottime setting
Bug: 74868067
Test: reboot test
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 13:59:20 +08:00
Ash Blake abe3894762 LG8n: rootdir: Fix /dev/fm ownership
* On AOSP, the FMRadio app process runs as system

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 13:58:48 +08:00
Matsvei Niaverau e4576cebb3 LG8n: rootdir: Set correct permissions for FM Radio node
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 13:58:14 +08:00
bengris32 677091e3f0 LG8n: Add shim for proprietary AudioTrack constructor
Change-Id: Icc7a1f9c748578f5b58499e7a76213673c4bcf54
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:27:20 +08:00
Jasmine Cha be61e68918 LG8n: audio: Use binder threadpool
Support to communicate with other service with AIDL interface.

Bug: 215463744
Test: build pass

Change-Id: I236f4098170fa02daff69873e5b8896b8fa621f3
Signed-off-by: Jasmine Cha <chajasmine@google.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:22:43 +08:00
SamarV-121 f6ca203252 LG8n: Build and rename audio service HAL
[Woomymy]: Make it 64 bits for yunluo
Change-Id: Ia55929f56d2aef62dcea28487584c3c0afb7dab1
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:22:22 +08:00
Woomymy 3e77aa0be5 LG8n: Enable F2FS Compression
Signed-off-by: Woomymy <woomy@woomy.be>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:21:52 +08:00
Jaroslav Zviezda 606ad34fb7 LG8n: Enable DM file pre-opting to reduce first boot time
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:21:00 +08:00
etylix 52c79fdec5 LG8n: props: RIL for battery life.
Changed “ro.ril.disable.power.collapse” value to zero.
Seems to be a debate on what value is more effective but after more reading and testing found that a value of “0” shows more improvement.
Have also added “ro.mot.eri.losalert.delay=1000 “ that helps smooth out disconnects and reconnects, saving battery.

Co-authored by: KARTHIK LAL <karthik.lal558@gmail.com>

Change-Id: Iaad44323cc6aa11332a6d818cc2402929b7b15ae
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
Signed-off-by: ramshell688 <ramonzost68@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:19:41 +08:00
xNombre bb754d7eb2 LG8n: Add blkio tuning from sunfish
Signed-off-by: xNombre <kartapolska@gmail.com>
Change-Id: Id8a6ef29c85c94dab17d590918e80837bc84838d
Signed-off-by: Pascoato <viniciuspascoato@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:15:58 +08:00
alanndz c07b15d883 LG8n: rootdir: power: Report max frequency to miHoYo games
[xyzuniverse] Add HoYoVerse too as the it's the same (Honkai Star Rail game)

Change-Id: I07b171edab40e49bd734c19d8f1729cc31f2f47c
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 08:15:41 +08:00
Jimmy Shiu c357c05eac LG8n: rootdir: Always report max cpu freq to unity tasks
Unity app incorrectly sets cpu affinity to max capacity cores. Setup the library name and mask to always report the same max cpu freq to the tasks.

Change-Id: I1705f79249d1aa393d184caa3cccfec1563bdec7
Signed-off-by: 01soni247 <01soni247@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 08:15:23 +08:00
Kshitij Gupta 8b3360aade LG8n: init: Fix backlight on charger
Change-Id: I10115623f79dcf9ebe6904c9f736885eab0b3233
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:15:04 +08:00
Shirayuki39 dc68943618 LG8n: Enable zram
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:14:31 +08:00
Shirayuki39 87b5d4ef6f LG8n: props: Import recommended dexopt props
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:11:14 +08:00
Shirayuki39 f8a1575675 LG8n: update device.mk
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:08:42 +08:00
bengris32 8d85348690 LG8n: Use enable instead of start for Neural Networks service
* The MTK Neural Networks service is started via a property trigger.
  This HAL starts a lot earlier than other HALs since it is started
  with start instead of enable, the difference between them being
  that start will immediately cause the service to try and start, while
  enable effectively removes the disabled attribute from the service
  (so in the case of a HAL, it will be started with all the other services
  in class hal instead of immediately).

* This initially didn't have any side effects until I noticed the Neural Networks
  service constantly crashing in offline charger mode. To fix this, simply
  convert the start command to an enable to ensure that this service is not
  only started at the right time (in class hal), but also only started when
  needed (and not in offline charger mode).

Change-Id: Iacf310fb2211117aaf028ad6bf0814a7d447cf53
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:07:12 +08:00
bengris32 f6be5fba9d LG8n: Patchelf C2 service to link against libavservices_minijail
* The libavservices_minijail_vendor library was substituted for
  the vendor variant of libavservices_minijail in Android 13.

* Patchelf the C2 service to link against libavservices_minijail
  instead of libavservices_minijail_vendor.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:06:27 +08:00
Shirayuki39 573053ec58 LG8n: Import LG8n stock audio configs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:05:32 +08:00
Woomymy b1ac6fcd17 LG8n: Use 64-bits c2 service
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:00:21 +08:00
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