Commit graph

274 commits

Author SHA1 Message Date
Shirayuki39 428b81a16c LG8n: sepolicy: Address cameraserver denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 00:10:52 +08:00
Shirayuki39 f883f75d76 LG8n: sepolicy: Address system_suspend denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 00:06:21 +08:00
Shirayuki39 c86561c87c LG8n: Update to LG8n-H891OPAeAf-S-GL-240531V2678
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-23 18:15:47 +08:00
Woomymy a4f3c339d3 LG8n: sepolicy: Address init.insmod.sh denials
Change-Id: I2b858d17db6b8edf07f34f12f38342ae519056c8
Signed-off-by: Woomymy <woomy@woomy.be>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-22 00:59:03 +08:00
Shirayuki39 3b375ccce4 LG8n: sepolicy: address hal_sensors denial relating to nvdata
07-21 14:22:10.256   966   966 I auditd  : type=1400 audit(0.0:445): avc: denied { search } for comm=android.hardwar name=/ dev=sdc8 ino=2 scontext=u:r:hal_sensors_default:s0 tcontext=u:object_r:nvdata_file:s0 tclass=dir permissive=0
07-21 14:22:10.256   966   966 W android.hardwar: type=1400 audit(0.0:445): avc: denied { search } for name=/ dev=sdc8 ino=2 scontext=u:r:hal_sensors_default:s0 tcontext=u:object_r:nvdata_file:s0 tclass=dir permissive=0

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-21 19:31:50 +08:00
Shirayuki39 fc09780094 LG8n: sepolicy: Address bip denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-21 10:17:23 +08:00
Shirayuki39 baab82b9da LG8n: sepolicy: Address various system_server denials relating to vibrator
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 20:09:22 +08:00
Shirayuki39 3ca43995d3 LG8n: sepolicy: Address various hal_sensors_denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 20:05:16 +08:00
Shirayuki39 08b1bd6f15 LG8n: sepolicy: Address various mtk_hal_audio denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 19:53:47 +08:00
Łukasz Patron 6b0098d172 LG8n: overlay: Configure side fingerprint sensor properties
Change-Id: I75ba312895d18eae8c89db4dbb24a6945bad9860
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-22 00:48:08 +08:00
Shirayuki39 5c82417099 LG8n: sepolicy: Address various camera denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 13:08:01 +08:00
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