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
Shirayuki39
63a17d4548
LG8n: sepolicy: Fix fingerprint sepolicy x2
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 18:04:20 +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
892d0b7f55
LG8n: sepolicy: Fix fingerprint sepolicy
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 17:58:02 +08:00
Shirayuki39
7df2e9229d
LG8n: sepolicy: remove get_prop from fingerprint
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 16:16:11 +08:00
Vaisakh Murali
ee7ab520cf
LG8n: Include c2 media codecs
...
Enables c2 codec detection
Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Reviewed-on: https://review.statixos.com/c/android_device_xiaomi_cannon/+/6412
Reviewed-by: Vaisakh Murali <vaisakhmurali@gmail.com>
Tested-by: Vaisakh Murali <vaisakhmurali@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 15:57:30 +08:00
Shirayuki39
5abd04f064
LG8n: Reconfigure Media Stack
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 15:57:08 +08:00
Shirayuki39
d5d0aea1f6
LG8n: sepolicy: Address some hal_fingerprint_default denials
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 15:34:27 +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
64376196c8
LG8n: FrameworkResOverlay: Removed Color Modes Option
...
* Does not really work(Atleast on transsion amoled devices)
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 08:14:39 +08:00
Shirayuki39
5a1a290db4
LG8n: BoardConfig: fixups and change paths for modules
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 01:38:07 +08:00
Shirayuki39
8474c238c6
LG8n: Remove vpud_native
...
* Bruh I literally adapted this from stock
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 22:42:41 +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
dc56dc78d0
Revert "LG8n: sepolicy: Address bip denials"
...
This reverts commit cb650b4462
.
2024-07-17 21:56:40 +08:00
Shirayuki39
4efa4dd8e1
LG8n: BoardConfig: Fix SEPolicy path
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 21:23:08 +08:00
Shirayuki39
b828977ac8
LG8n: device.mk: Don't buld android.hardware.security.rkp-V*-ndk since we're not A14
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 20:37:27 +08:00
Shirayuki39
37cbecec07
LG8n: sepolicy: Address hal_health_default denials
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 20:16:03 +08:00
Shirayuki39
920ff040c9
LG8n: sepolicy: Address vpud_native denials
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 20:13:08 +08:00
Shirayuki39
df0b1236ae
LG8n: sepolicy: Address system_server sysfs vibrator denials
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 20:11:08 +08:00
Shirayuki39
63d5dc5612
LG8n: sepolicy: Address Sensor Denials
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 20:08:43 +08:00
Shirayuki39
cb650b4462
LG8n: sepolicy: Address bip denials
...
06-28 19:04:00.929 1151 1151 I auditd : type=1400 audit(0.0:59): avc: denied { read } for comm=bip name=u:object_r:net_dns_prop:s0 dev=tmpfs ino=234 scontext=u:r:bip:s0 tcontext=u:object_r:net_dns_prop:s0 tclass=file permissive=0
06-28 19:04:00.913 1 1 I auditd : type=1400 audit(0.0:57): avc: denied { create } for comm=init name=bip_socket scontext=u:r:init:s0 tcontext=u:object_r:socket_device:s0 tclass=sock_file permissive=0
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 20:04:10 +08:00
Shirayuki39
78f4aad150
LG8n: Fix usb config
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 17:20:25 +08:00
Shirayuki39
df69b4d922
LG8n: Use appropriate build fingerprint
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 16:22:46 +08:00
Shirayuki39
49268ec63b
LG8n: Readd overlay from pre-Reboot Branch
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 15:31:14 +08:00
Shirayuki39
3e7b9cfddb
LG8n: Remove files not found in source
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 15:10:51 +08:00
Shirayuki39
12b8b0b9de
LG8n: Remove Permissive boot because we can boot enforcing now
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:59:18 +08:00
Shirayuki39
9a6a4c6373
LG8n: Kang sepolicy from pre-Reboot branch(and ck9n)
...
* Wouldn't kanging be faster
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:56:10 +08:00
Shirayuki39
7c317235c6
LG8n: cleanup
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:44:08 +08:00
fjrXTR
c695f0ed4f
LG8n: build more media required libs
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:43:25 +08:00
Shirayuki39
bbf8d0bfe3
LG8n: Import and build some libs
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:42:17 +08:00
SamarV-121
617b679323
LG8n: Use libutils-v32.so for thermal HAL
...
F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 736 (ThermalWatcherT), pid 723 (thermal@2.0-ser)
F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
F DEBUG : Build fingerprint: 'Redmi/selene/selene:11/RP1A.200720.011/V12.5.20.0.RKUMIXM:user/release-keys'
F DEBUG : Revision: '0'
F DEBUG : ABI: 'arm64'
F DEBUG : Timestamp: 2024-03-01 22:36:55.466668923+0700
F DEBUG : Process uptime: 1s
F DEBUG : Cmdline: /vendor/bin/hw/android.hardware.thermal@2.0-service.mtk
F DEBUG : pid: 723, tid: 736, name: ThermalWatcherT >>> /vendor/bin/hw/android.hardware.thermal@2.0-service.mtk <<<
F DEBUG : uid: 1000
F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
F DEBUG : Abort message: 'new_alloc_size overflow'
Change-Id: I36280695b618ba1fc8a2a6cbeb8fa2f0a3af4fc4
Signed-off-by: Mikazuuu07 <mikazuuu07@komodo-os.my.id>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:35:13 +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
Shirayuki39
ce7928789e
LG8n: Self-kang props from pre-reboot branch
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:22:42 +08:00
Shirayuki39
1357f892e6
LG8n: Enable OTA Asserts
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:19:23 +08:00
Shirayuki39
28dc9a30db
LG8n: Inherit generic mediatek_vndr sepolicy
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:18:30 +08:00
Woomymy
ad1def14ad
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
8324c7f693
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
f1b0452434
LG8n: Build some libs
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:13:09 +08:00
Shirayuki39
997633d3ad
LG8n: Switch back to Stock USB HAL
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:10:04 +08:00
Shirayuki39
967961d43b
LG8n: Import Tranlog and TNE blobs
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:07:39 +08:00
Shirayuki39
27e82950eb
LG8n: Import Missing Blobs
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:07:18 +08:00
Shirayuki39
26bd6b46e3
LG8n: Import Missing Fingerprint Blobs
...
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:06:15 +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