Commit graph

320 commits

Author SHA1 Message Date
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
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
bengris32 40f18fe6ea 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 13856a412b 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