msm8996-common: Patch camera HAL for Q bringup

Camera HAL includes a check for "service.bootanim.exit" property to
discern boot status and avoid notifying display HAL that a camera
session is active during the bootup phase. Turns out that now, with
a mix of old camera HAL and new display service, the display API
doesn't seem to be called properly leaving camera HAL in a bad state.

Just skip notifying display HAL by fooling the camera HAL into believing
that bootup phase never finished.

Change-Id: I2a12b5373e2ea851fa9d678c3cee9dab9daf25f8
This commit is contained in:
Bruno Martins 2020-10-21 17:01:46 +01:00 committed by ivanmeler
parent a001a39250
commit a65872c48e

View file

@ -60,6 +60,9 @@ fi
function blob_fixup() { function blob_fixup() {
case "${1}" in case "${1}" in
vendor/lib/hw/camera.msm8996.so)
sed -i "s/service.bootanim.exit/service.bootanim.zzzz/g" "${2}"
;;
vendor/lib64/hw/vulkan.msm8996.so) vendor/lib64/hw/vulkan.msm8996.so)
sed -i "s/vulkan.msm8953.so/vulkan.msm8996.so/g" "${2}" sed -i "s/vulkan.msm8953.so/vulkan.msm8996.so/g" "${2}"
;; ;;