exynos9610: proprietary-files: import ShannonIms
authorJan Altensen <info@stricted.net>
Tue, 28 Apr 2020 15:39:54 +0000 (17:39 +0200)
committerJan Altensen <info@stricted.net>
Thu, 30 Apr 2020 08:51:21 +0000 (10:51 +0200)
Change-Id: I9defbd912640e1d0fba2e8285ae1ab70757a0801

BoardConfigCommon.mk
common.mk
extract-files.sh
proprietary-files.txt
sepolicy/private/ims.te [new file with mode: 0644]
sepolicy/private/seapp_contexts [new file with mode: 0644]

index 60885b26b2de33e6bacfa4f489ee477e5c34014e..a856b96e1c37daf8e93780183d5fb83afc54c08f 100644 (file)
@@ -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
index fd37f64601cea5bb45cccd04f0f14e48abd1bd9f..ecb368afeb63afa9654a353512140a8a4828fb56 100644 (file)
--- 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
index bd2ad060736bd255def3bca7a6446d33ef428de9..a217e02967d277fff60291a7c9bd4c8cf6529368 100755 (executable)
@@ -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"
index 893a40431f045287c8fab063aacd18829d77ebb0..046ada529ce1fb02de8dd099e2a5c3f7cf6b0bad 100644 (file)
@@ -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 (file)
index 0000000..fc23814
--- /dev/null
@@ -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 (file)
index 0000000..c2c62fa
--- /dev/null
@@ -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