From: Jan Altensen Date: Tue, 28 Apr 2020 15:39:54 +0000 (+0200) Subject: exynos9610: proprietary-files: import ShannonIms X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3f59eaa4075a9c94b7b106c5f954b80831cfb9f8;p=GitHub%2Fmoto-9609%2Fandroid_device_motorola_exynos9610-common.git exynos9610: proprietary-files: import ShannonIms Change-Id: I9defbd912640e1d0fba2e8285ae1ab70757a0801 --- diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 60885b2..a856b96 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -99,5 +99,8 @@ BOARD_VNDK_VERSION := current # Audio USE_XML_AUDIO_POLICY_CONF := 1 +# sepolicy +BOARD_PLAT_PRIVATE_SEPOLICY_DIR := $(COMMON_PATH)/sepolicy/private + # Inherit from the proprietary version -include vendor/motorola/exynos9610-common/BoardConfigVendor.mk diff --git a/common.mk b/common.mk index fd37f64..ecb368a 100644 --- a/common.mk +++ b/common.mk @@ -71,6 +71,7 @@ PRODUCT_PACKAGES += \ # Permissions PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.telephony.ims.xml:system/etc/permissions/android.hardware.telephony.ims.xml \ frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \ frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \ frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hcef.xml diff --git a/extract-files.sh b/extract-files.sh index bd2ad06..a217e02 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -65,4 +65,8 @@ setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true "${CLEAN_VEND extract "${MY_DIR}/proprietary-files.txt" "${SRC}" \ "${KANG}" --section "${SECTION}" +# Fix proprietary blobs +BLOB_ROOT="$LINEAGE_ROOT"/vendor/"$VENDOR"/"$DEVICE_COMMON"/proprietary +patchelf --replace-needed libmedia.so libmedia_ims.so $BLOB_ROOT/lib64/libmediaadaptor.so + "${MY_DIR}/setup-makefiles.sh" diff --git a/proprietary-files.txt b/proprietary-files.txt index 893a404..046ada5 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -6,3 +6,9 @@ lib64/libaptX_encoder.so -priv-app/HotwordEnrollmentOKGoogleCS47L35/HotwordEnrollmentOKGoogleCS47L35.apk -priv-app/HotwordEnrollmentTGoogleCS47L35/HotwordEnrollmentTGoogleCS47L35.apk -priv-app/HotwordEnrollmentXGoogleCS47L35/HotwordEnrollmentXGoogleCS47L35.apk + +# IMS +-app/ShannonIms/ShannonIms.apk|dd21afcb739938249e29d24cde3151fa1580bd2c +lib64/libmediaadaptor.so +lib64/libmedia.so:lib64/libmedia_ims.so +lib64/libePdgJni.so diff --git a/sepolicy/private/ims.te b/sepolicy/private/ims.te new file mode 100644 index 0000000..fc23814 --- /dev/null +++ b/sepolicy/private/ims.te @@ -0,0 +1 @@ +type vendor_ims_app, domain; \ No newline at end of file diff --git a/sepolicy/private/seapp_contexts b/sepolicy/private/seapp_contexts new file mode 100644 index 0000000..c2c62fa --- /dev/null +++ b/sepolicy/private/seapp_contexts @@ -0,0 +1,2 @@ +user=radio seinfo=platform name=com.shannon.imsservice domain=vendor_ims_app +user=radio seinfo=platform name=com.shannon.imsservice:remote domain=vendor_ims_app