Commit graph

64 commits

Author SHA1 Message Date
Shirayuki39 d4836bac37 [Squash] Remove DT2W service and helper
* I'm fixing powerhint instead, shirayuki-dt2w doesn't start on boot

Revert "LG8n: rootdir: Start shirayuki-dt2w on late_start"

This reverts commit f2c2c98f24.

Revert "LG8n: fixup!: Fix Android.bp"

This reverts commit 75f87d9602.

Revert "LG8n: Introduce shirayuki-dt2w service as a helper for DT2W service app"

This reverts commit 9407fb90fb.

Revert "LG8n: remove xiaomi-touch from dt2w Android.bp"

This reverts commit f5d0d8ae8f.

Revert "LG8n: Import DT2w service from HOAMSI's rom"

This reverts commit 64ff4cb6e8.
2024-08-14 13:40:03 +08:00
Shirayuki39 f2c2c98f24 LG8n: rootdir: Start shirayuki-dt2w on late_start
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 11:26:46 +08:00
Shirayuki39 9407fb90fb LG8n: Introduce shirayuki-dt2w service as a helper for DT2W service app
* The code can use some improvements

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 03:04:43 +08:00
Shirayuki39 1eba94acbd [SQUASH] Revert "LG8n: rootdir: Change init.gesture.sh code"
This reverts commit 70cd3788d3.

Revert "LG8n: rootdir: Add shebang on init.gesture.sh"

This reverts commit 856f196618.

Revert "LG8n: rootdir: call init.gesture.sh on boot"

This reverts commit 5ead707f36.

Revert "LG8n: rootdir: Improve init.gesture.sh to allow dt2w to be turned off"

This reverts commit 9e8121393c.

Revert "LG8n: rootdir: Add init.gesture.sh for fix DT2W"

This reverts commit a865a799ff.
2024-08-14 01:58:32 +08:00
Shirayuki39 70cd3788d3 LG8n: rootdir: Change init.gesture.sh code
* Instead of trying to read from a secure key, use it to assist dt2w service

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-13 22:44:40 +08:00
Shirayuki39 856f196618 LG8n: rootdir: Add shebang on init.gesture.sh
* This could be why it's not executing even if called by init, honestly i'm just shooting in the dark atp

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-13 21:53:51 +08:00
Shirayuki39 5ead707f36 LG8n: rootdir: call init.gesture.sh on boot
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-13 21:26:19 +08:00
Shirayuki39 9e8121393c LG8n: rootdir: Improve init.gesture.sh to allow dt2w to be turned off
* may have to be adapted for every rom since not every rom uses the same dt2w settings key lol

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-13 19:42:55 +08:00
fjrXTR a865a799ff LG8n: rootdir: Add init.gesture.sh for fix DT2W
* idk why after using the powerhint method dt2w doesn't work, so we tried to use the sh scripts method. hopefully it works lol

Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-13 19:41:22 +08:00
Jesse Chan 8c3ad5f633 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
bengris32 5962efcd23 LG8n: Add developer GSI keys to fstab
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I1cefad71b1b5fe18f92a4b931fcabfe2c9dcfa95
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:25:37 +08:00
Connor O'Brien 47781bffd2 LG8n: power: Set up and down rate limits for schedutil & sugov_ext
Use the same rate limits as wahoo for now.

[Woomy]: Set the rate limits for sugov_ext when it's loaded

Bug: 73168288
Test: boot and check nodes
Change-Id: I311d33580e68dd6cfec2a49f2738b6d06509f419
Signed-off-by: Connor O'Brien <connoro@google.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 18:23:50 +08:00
Vaisakh Murali 9fd8bb7e48 LG8n: Enable stune boost for top-app
Reduce the top-app latencies by enabling top-app boosting.

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: I14d740559f4e913855b897bcf9060069d32f9df7
Signed-off-by: HELLINFIX <mridulsharma57570@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-18 18:19:38 +08:00
Shirayuki39 e0dea60fb8 LG8n: rootdir: cleanup
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 18:16:24 +08:00
Vaisakh Murali 9124c73a82 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-18 18:00:40 +08:00
Shirayuki39 5e0c4d318f LG8n: rootdir: fix permissions for mdp_sync
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 14:50:20 +08:00
Shirayuki39 31ad86123c LG8n: rootdir: fix mismerge and enable OTG on boot
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 22:29:31 +08:00
Shirayuki39 78f4aad150 LG8n: Fix usb config
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 17:20:25 +08:00
Shirayuki39 b620085b6f LG8n: Remove Memfusion from init.project.rc
* Let's be real, MemFusion is useless in non-XOS ROMs(Actually it's also useless in XOS ROM but whatever)

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:30:32 +08:00
Shirayuki39 7937b52916 LG8n: Nuke AEE Init Scripts
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:28:58 +08:00
Randall Huang ccb6340abd 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 98eb5f6660 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 539d19fdf3 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 43de0bf1bb 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 1ca23a7b10 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 f8adb7226a 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 02c493b2f0 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 b64c357198 LG8n: rootdir: Set correct permissions for FM Radio node
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 13:58:14 +08:00
Woomymy e9efa05d9a 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
xNombre db04371ae3 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 e18d9c8275 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 34271eea2d 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 37e65e2af9 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 0edf1634b4 LG8n: Enable zram
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:14:31 +08:00
Andrzej Perczak 990f33dc83 [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
mvaisakh 0533b4c54d 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
fjrXTR 0f64e0ba6c 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 a1d19367db 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
Ash Blake e07e944fba 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 3bbc6a1428 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 4a4d563117 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 21f9644fad 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 33f5215929 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 5983bbb725 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 c6eedc41a1 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
dmpstr 3801a8d5f5 Revert "LG8n: fstab.mt6789: Switch to ext4"
This reverts commit c5d0901849.
2024-05-25 22:54:45 +08:00
aubrey c5d0901849
LG8n: fstab.mt6789: Switch to ext4 2024-05-24 08:46:09 +08:00
dodyirawan85 d054191528 X6833B: Add ext4 filesystem to product and system_ext
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
dodyirawan85 3aa2b1f112 X6833B: power: Adapt to our device usage
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:11 +07:00
Arian 440e178dcb X6833B: Add power HAL extension and use xiaomi-touch to handle dt2w
Change-Id: I5c65e0df255853eb2b3018a27ceb807c111bc4df
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:11 +07:00