From 7bb161ed88af047ae892cc6fd6481a8ead994034 Mon Sep 17 00:00:00 2001 From: PainKiller3 Date: Sun, 20 Feb 2022 20:53:48 +0530 Subject: [PATCH] sdm845-common: Remove IMS & DPM Symlinks * Remove sepolicy rules for older IMS blobs This reverts commit 09ec37c & a5ab783. Change-Id: I0f62585111ae4d268386dfd1b720c7dad63e9f0c --- Android.mk | 10 ---------- extract-files.sh | 11 ----------- sepolicy/vendor/hal_imsrtp.te | 1 - sepolicy/vendor/radio.te | 2 -- 4 files changed, 24 deletions(-) delete mode 100644 sepolicy/vendor/hal_imsrtp.te diff --git a/Android.mk b/Android.mk index f20e7bbb..2528da51 100644 --- a/Android.mk +++ b/Android.mk @@ -30,16 +30,6 @@ $(DSP_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE) ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT) $(BT_FIRMWARE_MOUNT_POINT) $(DSP_MOUNT_POINT) -IMS_LIBS := libimscamera_jni.so libimsmedia_jni.so -IMS_SYMLINKS := $(addprefix $(TARGET_OUT_SYSTEM_EXT_APPS_PRIVILEGED)/ims/lib/arm64/,$(notdir $(IMS_LIBS))) -$(IMS_SYMLINKS): $(LOCAL_INSTALLED_MODULE) - @echo "IMS lib link: $@" - @mkdir -p $(dir $@) - @rm -rf $@ - $(hide) ln -sf /system_ext/lib64/$(notdir $@) $@ - -ALL_DEFAULT_INSTALLED_MODULES += $(IMS_SYMLINKS) - RFS_MSM_ADSP_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/adsp/ $(RFS_MSM_ADSP_SYMLINKS): $(LOCAL_INSTALLED_MODULE) @echo "Creating RFS MSM ADSP folder structure: $@" diff --git a/extract-files.sh b/extract-files.sh index 448986a8..091a3e75 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -23,17 +23,6 @@ source "${HELPER}" function blob_fixup() { case "${1}" in - system_ext/etc/permissions/qcrilhook.xml) - ;& - system_ext/etc/permissions/telephonyservice.xml) - sed -i "s/\/product\/framework\//\/system_ext\/framework\//g" "${2}" - ;; - system_ext/etc/permissions/qti_libpermissions.xml) - sed -i "s/name=\"android.hidl.manager-V1.0-java/name=\"android.hidl.manager@1.0-java/g" "${2}" - ;; - system_ext/lib64/lib-imsvideocodec.so) - grep -q "libgui_shim.so" "${2}" || ${PATCHELF} --add-needed "libgui_shim.so" "${2}" - ;; vendor/lib/camera/components/com.qti.node.watermark.so) grep -q "libpiex_shim.so" "${2}" || ${PATCHELF} --add-needed "libpiex_shim.so" "${2}" ;; diff --git a/sepolicy/vendor/hal_imsrtp.te b/sepolicy/vendor/hal_imsrtp.te deleted file mode 100644 index e130c8d3..00000000 --- a/sepolicy/vendor/hal_imsrtp.te +++ /dev/null @@ -1 +0,0 @@ -binder_call(hal_imsrtp, radio) diff --git a/sepolicy/vendor/radio.te b/sepolicy/vendor/radio.te index d2d13aa1..59857838 100644 --- a/sepolicy/vendor/radio.te +++ b/sepolicy/vendor/radio.te @@ -1,8 +1,6 @@ allow radio { hal_datafactory_hwservice hal_iwlan_hwservice }:hwservice_manager find; -allow radio { cameraserver_service mediaextractor_service mediaserver_service mediametrics_service drmserver_service audioserver_service }:service_manager find; binder_call(radio, cnd) binder_call(radio, gpuservice) -binder_call(radio, hal_imsrtp) get_prop(radio, qcom_ims_prop)