Commit graph

338 commits

Author SHA1 Message Date
bengris32 41ee2f7d67 LG8n: Build dummy libmtkperf_client library
* Required for some vendor blobs that refuse to
  work without mtkpower

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:51:11 +08:00
Shirayuki39 b18e5aea4d LG8n: Nuke MTK PowerHAL and cleanup
* ref - xiaomi-mt6789-devs/android_device_xiaomi_yunluo@8361661

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:50:12 +08:00
fjrXTR 44ff68f84c LG8n: Build Required libs for QPR3
* And Patch libcamera_metadata for Camera provider
* ref - Evilmove/android_device_spartan@55eb0b6 ObsidianMaximus/android_device_realme_sm8250-common@a0ed2f1

Change-Id: I4696adea73edc5a8cfe530df6d89c5b244009722
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:46:22 +08:00
ChrisCatto 035c860c1a LG8n: Link mediatek camera provider against v32 libutils
* Abort message: 'incStrongRequireStrong() called on 0xb40000770d0587a0
  which isn't already owned'
* Required after U QPR3

Change-Id: Ie6ea7f331207f604cb87804c67f4de9fd9a60d76
Signed-off-by: ChrisCatto <chriscatto08@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:45:10 +08:00
fjrXTR 2447ecc482 LG8n: Build missing libraries on camera
* Required on A14 QPR3
* ref - StatiXOS/android_device_xiaomi_yunluo@fbd7104

Change-Id: Iedf6b29e9b814fbd8d24a1620af586eafd3aee46
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:42:14 +08:00
Marc Bourgoin 0db9def1aa LG8n: Fix audio on QPR3 with alsa audio
As of Android 14 QPR3, our device requires the use of
alsa audio,# otherwise audio HAL keeps crashing with
error unable to route audio and listAudioPorts failed

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:38:22 +08:00
Shirayuki39 b2fd99ebbc LG8n: Switch to prebuilt power-service-mediatek
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:36:05 +08:00
fjrXTR 216cd024cd LG8n: Patchelf mnld to load libshim_sensors
Change-Id: I3f63ca6635976e5102a743c36b4156b7123deaa3
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:32:18 +08:00
Shirayuki39 49cd637d8d LG8n: Build libshim_sensors
* fck

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:31:19 +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
Bruno Martins db5ad32b23 LG8n: Patch libs for missing GraphicBufferMapper symbols
Change-Id: I1e79f01710433ceafb2a4b296a591cf910ee649f
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:24:12 +08:00
bengris32 6ab546ca4a LG8n: Build libwifi-hal-wrapper
Change-Id: I86e31ef7fe472941ba41181a66e6ee6e54d24570
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:17:55 +08:00
SamarV-121 d4aa606aea LG8n: Compile required vndk blobs to vendor
Change-Id: I39c214c263ed14dd61b8e9d4df79e9f6d0ad7032
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:17:11 +08:00
Shirayuki39 070803da62 LG8n: Fix spacing in extract-files.sh and some other stuff
* The unaligned spacing is driving me nuts

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 23:57:16 +08:00
SGCMarkus 2dc1b3f96a LG8n: Add security.rkp-V3 dependency to keymint service
The symbol _ZN4aidl7android8hardware8security7keymint29IRemotelyProvisionedComponent10descriptorE
was moved from android.hardware.security.keymint-V2-ndk to android.hardware.security.rkp-V3-ndk.

Change-Id: I7f3c40e3e8a2a848cdcb73e5232952f63681aa58
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 23:54:29 +08:00
Shirayuki39 a732505aff LG8n: device.mk: Build android.hardware.security.rkp-V*-ndk since we're A14 now
* Bomb

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 23:54:18 +08:00
basamaryan ed388ee2e3 LG8n: Don't explicitly include updatable_apex.mk
It is inherited by base_system.mk as of QPR2

Change-Id: I020a05b233f61ea28d03199cbc76051e6e97e1dc
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 23:45:22 +08:00
Woomymy 7c44c6a656 LG8n: Link media.c2 service against v33 libstagefright_foundation
* Fixes crashes and high CPU usage

Change-Id: I60c07d10c2db9335d20c6dbaaaeacc9313aebf06
Signed-off-by: Woomymy <woomy@woomy.be>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 23:44:31 +08:00
LuK1337 cd5ff264b8 LG8n: Build libprotobuf-cpp-full-3.9.1-vendorcompat
Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 23:27:45 +08:00
Jooyung Han b85fcc002a LG8n: Install bootcontrol HAL APEX
Bug: 297467553
Test: VtsHalBootAidlTargetTest
Change-Id: Id206966e9f181283082b85dadbf409e3bf4017db
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 23:25:33 +08:00
Woomymy def306d7ac LG8n: Add a shim to link sensor blobs against `android.hardware.sens…
…ors@1.0-convert`

* `libndksensorbridge` was converted to AIDL and is no longer linked to
  this static library that contains symbols required by our sensor
  blobs. Add a shim linked to `android.hardware.sensors@1.0-convert` to
  fix our sensors

Change-Id: I969f97bb15d0abcc71f87352722995db3826e122
Signed-off-by: Woomymy <woomy@woomy.be>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 23:23:11 +08:00
Shirayuki39 34d2097d01 LG8n: vintf: remove android.hardware.boot from manifest
ERROR: files are incompatible:
 android.hardware.boot@1.0::IBootControl/default is deprecated; requires at least 1.2
    because it matches android.hardware.boot@1.0::IBootControl/default from /system/etc/vintf/compat
ibility_matrix.4.xml

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 23:19:37 +08:00
bengris32 f75af8a622 LG8n: Wrap Wi-Fi flags with quotation marks
Change-Id: I04d26ee28f72d4bea727f91df395c8bdb7db3237
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 23:18:46 +08:00
Gabriel Biren 3bcbb93658 LG8n: Update makefile to use the AIDL Wifi Vendor HAL.
Bug: 274964641
    Test: Pre-submit tests
    Change-Id: I4d9114377fe75b593bbfe6a59f03d8f5d607d6a1

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 23:17:15 +08:00
Shirayuki39 78b6cbc24b LG8n: Set BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE
* Userspace blobs are still dependent on older props that do not pass the VTS test cases.

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 23:00:48 +08:00
fjrXTR a777cf1e36 LG8n: Patch Keymint services
* This will be useful when updating to Android 14

Change-Id: I1892e9a15b2c10121581a7717a24eb6c64f849ef
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 22:59:32 +08:00
Shirayuki39 749d7d4521 LG8n: sepolicy: Label wakeup nodes
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 21:05:22 +08:00
Shirayuki39 8a2e1bb373 LG8n: sepolicy: Label wakeup26 node
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 02:02:35 +08:00
Shirayuki39 dcb586a583 LG8n: sepolicy: Address cameraserver denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 00:10:52 +08:00
Shirayuki39 dea38ce0eb LG8n: sepolicy: Address system_suspend denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 00:06:21 +08:00
Shirayuki39 2c21867fef LG8n: Update to LG8n-H891OPAeAf-S-GL-240531V2678
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-23 18:15:47 +08:00
Woomymy fe8b176423 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 2ad6bd3256 LG8n: overlay: Move the fingerprint ripple a little lower
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-22 00:48:08 +08:00
Shirayuki39 e1066e77c3 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 1c33b858dd LG8n: sepolicy: remove vendor_transsion_fingerprint_prop
* This isn't needed at all

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-21 19:13:04 +08:00
Shirayuki39 0c7c7c38ab LG8n: sepolicy: make hal_fingerprint shut the hell up already
* dontaudit because we'll get fcked by neverallow if we allow this

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-21 19:05:05 +08:00
Shirayuki39 3a98bd9193 LG8n: overlay: Try to align the fingerprint hint arrow to the sensor
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-21 12:35:03 +08:00
Shirayuki39 2295811b01 LG8n: sepolicy: Address bip denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-21 10:17:23 +08:00
Shirayuki39 0cc0d97d3c LG8n: sepolicy: Address more hal_fingerpint denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-21 10:17:12 +08:00
Shirayuki39 95f35a9783 LG8n: overlay: Try to align the fingerprint hint arrow to the sensor
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 22:24:46 +08:00
Shirayuki39 d81885e963 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 97fe491810 LG8n: sepolicy: Address various hal_sensors_denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 20:05:16 +08:00
Shirayuki39 54d570f032 LG8n: sepolicy: Address various hal_fingerprint_denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>

#Attempt 3
2024-07-20 20:00:01 +08:00
Shirayuki39 9361f419fa LG8n: sepolicy: Address various mtk_hal_audio denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 19:53:47 +08:00
Shirayuki39 ab0a41cee7 LG8n: overlay: Try to make the arrow actually line up to the sensor
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 19:51:04 +08:00
Shirayuki39 ac0bc5d7c9 LG8n: overlay: Test config_sfps_sensor_props
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 13:12:41 +08:00
Shirayuki39 0a729a345c LG8n: sepolicy: Address various camera denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 13:08:01 +08:00
Shirayuki39 51ae0b6279 LG8n: props: Update props
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 11:53:17 +08:00
Shirayuki39 93e85ad564 LG8n: sepolicy: address some health hal denials
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 11:52:58 +08:00
Shirayuki39 97c03b13ed LG8n: overlay: Fixup SystemUI Overlays
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 00:47:47 +08:00