From 8b1c6b75b61bd789d0c9050033d4638079daeb28 Mon Sep 17 00:00:00 2001 From: TH779 Date: Tue, 23 Nov 2021 22:19:17 +0800 Subject: [PATCH] sm6225-common: Don't call configureRpcThreadpool for camera postproc impl * In Android 12, no longer allowed to shrink the process pool after a larger process pool is started, we should patch camera postproc impl to nuke it from shrinking process pool and prevent triggering a fatal to cause the camera to crash. Ref: https://android.googlesource.com/platform/system/libhwbinder/+/8e047f7a626c782a02dc9e67dee2dbae35bc6956. * The following are the difference between before and after the patch. Before: MOV W1, #1 BL ._ZN7android8hardware22configureRpcThreadpoolEmb Now: MOV W1, #1 NOP * Obtained by comparing the camera postproc impl modified by GitHub@erfanoabdi. * A tutorial on use hexdump, sed and xxd to patch hex in binary file: https://everydaywithlinux.blogspot.com/2012/11/patch-strings-in-binary-files-with-sed.html. Co-authored-by: Erfan Abdi Signed-off-by: TH779 Change-Id: I66c257e80bf56a48c640efc3c1c8949852edf756 --- ...rdware.camera.postproc@1.0-service-impl.so | Bin 42664 -> 42664 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/proprietary/vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so b/proprietary/vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so index 064af960a4315740a4cf704e0a814944f97e492c..d6dcc203e439edb9f5c5b03b8afa2213d1d66f7f 100644 GIT binary patch delta 19 bcmZ2+mTARVrVS>kEbS2tUv7B~U`Pi_ZP delta 19 bcmZ2+mTARVrVS>kEW%t2Q#M