Commit graph

363 commits

Author SHA1 Message Date
Shirayuki39 c4d8e5488e LG8n: props: Update props
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 11:53:17 +08:00
Shirayuki39 f1acdd089a LG8n: sepolicy: address some health hal denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 11:52:58 +08:00
Shirayuki39 b03fd12f64 LG8n: overlay: Rework Overlays
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 00:47:47 +08:00
Woomymy d9a92609ae LG8n: Install charger res images to vendor
Signed-off-by: Woomymy <woomy@woomy.be>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-19 19:10:46 +08:00
Shirayuki39 b0e7bdf546 LG8n: Import missing libmtkperf_client_vendor blobs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 22:48:44 +08:00
Alexander Koskovich 2cf73cb3d2 LG8n:Don't override PRIVATE_BUILD_DESC.
* Doesn't appear to be used by anything relevant and
   it's been marked forever as do not parse, so we don't
   need the stock one at least.

Change-Id: I8fdfc1f738fede9675de739ef13cd8bfd9fefab2
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 21:01:27 +08:00
Connor O'Brien 7788694b2d 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 19:51:10 +08:00
Vaisakh Murali b58642a2e8 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 22aff0bab1 LG8n: rootdir: cleanup init.mt6789.rc and remove unused aee init script
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 18:16:24 +08:00
Vaisakh Murali d1f367982d 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 89775bac18 LG8n: sepolicy: Address some hal_fingerprint_default denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 19:37:02 +08:00
Shirayuki39 144091680f LG8n: rootdir: fix permissions for mdp_sync
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 14:50:20 +08:00
Shirayuki39 83f9ac98c3 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 f566426178 LG8n: BoardConfig: fixups and change paths for modules
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 01:38:07 +08:00
Shirayuki39 8de251a39c LG8n: rootdir: fix mismerge and enable OTG on boot
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 22:42:41 +08:00
Shirayuki39 84b9e7484c LG8n: device.mk: Don't build android.hardware.security.rkp-V*-ndk since we're in A13
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 20:37:27 +08:00
Shirayuki39 37499caf05 LG8n: sepolicy: Address hal_health_default denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 20:16:03 +08:00
Shirayuki39 2bbc0c9255 LG8n: sepolicy: Address system_server sysfs vibrator denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 20:13:08 +08:00
Shirayuki39 d6872da829 LG8n: sepolicy: Address Sensor Denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 20:08:43 +08:00
Shirayuki39 c655415a29 LG8n: Fix usb config
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 20:04:10 +08:00
Shirayuki39 e9578be87b LG8n: Readd overlay from pre-Reboot Branch
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 15:31:14 +08:00
Shirayuki39 0fbec5ab7b LG8n: Set SELinux to Enforcing
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:59:18 +08:00
Shirayuki39 34bf33e05b LG8n: Kang sepolicy from pre-Reboot branch
* Wouldn't kanging be faster

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:58:40 +08:00
Shirayuki39 8eb02c2323 LG8n: cleanup
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 15:10:51 +08:00
fjrXTR 79c4f8eda0 LG8n: build more media required libs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:43:25 +08:00
Shirayuki39 a01fb4472b LG8n: Import and build some libs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:42:17 +08:00
SamarV-121 cec9ba46bd 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 5b484cf947 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 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