Commit graph

29 commits

Author SHA1 Message Date
xyzuniverse 2c062f6e38 LG8n: Switch to AIDL vibrator
Change-Id: I9b1ad902c6a34cd9916c06f586e8bf664a08aae1
Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 12:37:35 +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
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
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
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
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
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
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
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
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
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
bengris32 3bf5c1c76a LG8n: Use enable instead of start for Neural Networks service
* The MTK Neural Networks service is started via a property trigger.
  This HAL starts a lot earlier than other HALs since it is started
  with start instead of enable, the difference between them being
  that start will immediately cause the service to try and start, while
  enable effectively removes the disabled attribute from the service
  (so in the case of a HAL, it will be started with all the other services
  in class hal instead of immediately).

* This initially didn't have any side effects until I noticed the Neural Networks
  service constantly crashing in offline charger mode. To fix this, simply
  convert the start command to an enable to ensure that this service is not
  only started at the right time (in class hal), but also only started when
  needed (and not in offline charger mode).

Change-Id: Iacf310fb2211117aaf028ad6bf0814a7d447cf53
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:07:12 +08:00
bengris32 8dfc5f00c3 LG8n: Patchelf C2 service to link against libavservices_minijail
* The libavservices_minijail_vendor library was substituted for
  the vendor variant of libavservices_minijail in Android 13.

* Patchelf the C2 service to link against libavservices_minijail
  instead of libavservices_minijail_vendor.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:06:27 +08:00
Woomymy 71e2e0126a LG8n: Use 64-bits c2 service
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:00:21 +08:00
AndroidHQ254 c7a171b3ea LG8n: Link older libhidlbase & libbinder for PQ service
F linker  : CANNOT LINK EXECUTABLE /vendor/bin/hw/vendor.mediatek.hardware.pq@2.2-service: cannot locate symbol _ZN7android8String16aSEOS0_ referenced by /apex/com.android.vndk.v34/lib64/libhidlbase.so...
2024-07-17 07:46:45 +08:00
fjrXTR afc7e6f426 LG8n: link older libutils for audio.primary.mt6789
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:28:11 +08:00
Jiyong Park 48ae642a21 LG8n: power: Remove ndk_platform backend. Use ndk backend instead
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m

Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:26:43 +08:00
AndroidHQ254 8fdb8d0d07 LG8n: Link older libhidlbase & libbinder for camerahalserver
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:26:05 +08:00
AndroidHQ254 cfdce7385f LG8n: Link older libutils for camerahalserver 2024-07-17 07:25:30 +08:00
Shirayuki39 ea45ea8db8 LG8n: Switch to Prebuilt Lights Stack
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:16:56 +08:00
Shirayuki39 7a72965ffb LG8n: Switch to Prebuilt Vibrator Stack
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:15:14 +08:00
Shirayuki39 0daf260f2a LG8n: let's restart from scratch, part 1 2024-05-22 20:40:46 +08:00
Jiyong Park 4502d0692b X6833B: gnss: Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: Id16039722fd70d4e2e934a0988f13a768ce833ec
Change-Id: Id16039722fd70d4e2e934a0988f13a768ce833ec
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:11 +07:00
SamarV-121 c1d70a0738 X6833B: Link older libutils for PQ HAL
* Abort message: 'incStrongRequireStrong() called on 0xb400007c5afa7250 which isn't already owned'

Change-Id: I7ea86d3d7c68ba183b4838cb1f35a9fc58cfbf67
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:03:31 +07:00
dodyirawan85 80a9d11b09 X6833B: Initial skeleton tree
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:17 +07:00