diff --git a/extract-files.sh b/extract-files.sh index a3eedef..dbb4a62 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -63,6 +63,21 @@ function blob_fixup() { system_ext/etc/permissions/moto-telephony.xml) sed -i "s#/system/#/system_ext/#" "${2}" ;; + vendor/lib64/camera/components/com.qti.node.gpu.so) + sed -i "s/camera.mot.is.coming.cts/vendor.camera.coming.cts/g" "${2}" + ;; + vendor/lib64/com.qti.feature2.gs.so) + sed -i "s/camera.mot.is.coming.cts/vendor.camera.coming.cts/g" "${2}" + ;; + vendor/lib64/com.qti.feature2.rt.so) + sed -i "s/camera.mot.is.coming.cts/vendor.camera.coming.cts/g" "${2}" + ;; + vendor/lib64/hw/camera.qcom.so) + sed -i "s/camera.mot.is.coming.cts/vendor.camera.coming.cts/g" "${2}" + ;; + vendor/lib64/hw/com.qti.chi.override.so) + sed -i "s/camera.mot.is.coming.cts/vendor.camera.coming.cts/g" "${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 > "${EXTRACT_TMP_DIR}/${1##*/}" mv "${EXTRACT_TMP_DIR}/${1##*/}" "${2}" diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts index 5f4aa0b..03827d6 100644 --- a/sepolicy/vendor/property_contexts +++ b/sepolicy/vendor/property_contexts @@ -1,5 +1,5 @@ # Camera -camera.mot.is.coming.cts u:object_r:vendor_camera_prop:s0 +vendor.camera.coming.cts u:object_r:vendor_camera_prop:s0 # Radio vendor.ril. u:object_r:vendor_radio_prop:s0