sm8250-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: 8e047f7a62
.
* 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 <erfangplus@gmail.com>
Signed-off-by: TH779 <i@779.moe>
Change-Id: I66c257e80bf56a48c640efc3c1c8949852edf756
This commit is contained in:
parent
d737c70cd4
commit
7dffcc1c58
@ -63,6 +63,10 @@ function blob_fixup() {
|
||||
system_ext/etc/permissions/moto-telephony.xml)
|
||||
sed -i "s#/system/#/system_ext/#" "${2}"
|
||||
;;
|
||||
vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so)
|
||||
hexdump -ve '1/1 "%.2X"' "${2}" | sed "s/130A0094/1F2003D5/g" | xxd -r -p > "${TMPDIR}/${1##*/}"
|
||||
mv "${TMPDIR}/${1##*/}" "${2}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user