From b21db8d9853fac813a50008cb0a72d3f07e1d9e5 Mon Sep 17 00:00:00 2001 From: johnmart19 Date: Sat, 18 Jan 2025 00:42:28 +0200 Subject: [PATCH] MiuiCamera: Patch algo jni lib to use correct Surface::connect method In android 15 QPR1, google has removed a public method of the Surface class. Our jni lib used that method and relies on the offset remaining the same, so patch the lib to load it with the smaller offset. LineageOS/android_frameworks_native@6a5fdc1 Co-authored-by: Arian --- extract-files.sh | 4 ++++ .../lib64/libcamera_algoup_jni.xiaomi.so | Bin 68816 -> 68816 bytes 2 files changed, 4 insertions(+) diff --git a/extract-files.sh b/extract-files.sh index 0db0d9c..f6599b9 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -60,6 +60,10 @@ function blob_fixup() { system/lib64/libmicampostproc_client.so) patchelf --remove-needed libhidltransport.so "${2}" ;; + system/lib64/libcamera_algoup_jni.xiaomi.so) + [ "$2" = "" ] && return 0 + sed -i "s/\x08\xad\x40\xf9/\x08\xa9\x40\xf9/" "${2}" + ;; esac } diff --git a/proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so b/proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so index 9dcb2bb7a7a424333c72eb9e87d5d7aff8103a8c..796affa829c47b4c135033c66344959dc783ee5b 100644 GIT binary patch delta 16 YcmcaGljXupmJPX0j4L