summaryrefslogtreecommitdiff
authorjunchao yuan <junchao.yuan@amlogic.com>2019-05-11 08:44:44 (GMT)
committer xiaoliang wang1 <xiaoliang.wang1@amlogic.com>2019-07-04 03:39:45 (GMT)
commit6cca583ee3f4181219e86c36dbcfde471d87b0be (patch)
tree9d79ea4830e8b1e3a60a860b754cf35ac8d0858e
parent74874658e26c2fa0eadedade3b132853e3291fd8 (diff)
downloadcommon-6cca583ee3f4181219e86c36dbcfde471d87b0be.zip
common-6cca583ee3f4181219e86c36dbcfde471d87b0be.tar.gz
common-6cca583ee3f4181219e86c36dbcfde471d87b0be.tar.bz2
device: java called native interface by jni [1/3]
PD#OTT-3867 BUG=135215073 Change-Id: If02c2990fb936cc166d16eedfdc151d216b770a6
Diffstat
-rw-r--r--[-rwxr-xr-x]core_amlogic.mk0
-rwxr-xr-xsepolicy/file_contexts6
-rw-r--r--sepolicy/priv_app.te2
-rw-r--r--sepolicy/system_control.te4
4 files changed, 10 insertions, 2 deletions
diff --git a/core_amlogic.mk b/core_amlogic.mk
index c96642b..c96642b 100755..100644
--- a/core_amlogic.mk
+++ b/core_amlogic.mk
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index d975235..67371cf 100755
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -284,6 +284,7 @@
/vendor/lib(64)?/libvendorfont\.so u:object_r:vendor_app_file:s0
/vendor/lib(64)?/libtvbinder\.so u:object_r:vendor_app_file:s0
/vendor/lib(64)?/libtv_jni\.so u:object_r:vendor_app_file:s0
+/vendor/lib(64)?/libsystemcontrol_jni\.so u:object_r:vendor_app_file:s0
/vendor/lib(64)?/libamadec_omx_api\.so u:object_r:vendor_app_file:s0
/vendor/lib(64)?/liboptimization\.so u:object_r:vendor_app_file:s0
/vendor/lib(64)?/libsystemcontrolservice\.so u:object_r:vendor_app_file:s0
@@ -301,6 +302,11 @@
/vendor/lib(64)?/libtvsubtitle_tv\.so u:object_r:vendor_app_file:s0
/vendor/lib(64)?/libjnifont_tv\.so u:object_r:vendor_app_file:s0
+/vendor/lib(64)?/vendor\.amlogic\.hardware\.systemcontrol@1\.1\.so u:object_r:vendor_app_file:s0
+/vendor/lib(64)?/vendor\.amlogic\.hardware\.systemcontrol@1\.0\.so u:object_r:vendor_app_file:s0
+/vendor/lib(64)?/vendor\.amlogic\.hardware\.tvserver@1\.0\.so u:object_r:vendor_app_file:s0
+/vendor/lib(64)?/libsystemcontrolclient\.so u:object_r:vendor_app_file:s0
+
/dev/hidraw[0-9]* u:object_r:hidraw_audio_device:s0
#The final space is necessary. Please don't delete it.
diff --git a/sepolicy/priv_app.te b/sepolicy/priv_app.te
index 5758d64..643e5f3 100644
--- a/sepolicy/priv_app.te
+++ b/sepolicy/priv_app.te
@@ -20,7 +20,7 @@ allow priv_app proc_uptime:file read;
allow priv_app tvserver_hwservice:hwservice_manager { find };
allow priv_app systemcontrol_hwservice:hwservice_manager { find };
-allow priv_app system_control:binder call;
+allow priv_app system_control:binder { call transfer };
allow priv_app tvserver:binder { call transfer };
allow priv_app param_tv_file:file { create open read write setattr getattr lock unlink };
allow priv_app param_tv_file:dir { search read open write add_name remove_name getattr };
diff --git a/sepolicy/system_control.te b/sepolicy/system_control.te
index 6994c01..2878876 100644
--- a/sepolicy/system_control.te
+++ b/sepolicy/system_control.te
@@ -145,4 +145,6 @@ allow system_control exported_system_prop:file { read } ;
get_prop(system_control, exported_system_prop);
allow system_control tvserver:binder { call transfer };
-allow system_control tvserver_hwservice:hwservice_manager find; \ No newline at end of file
+allow system_control tvserver_hwservice:hwservice_manager find;
+allow system_control priv_app:binder { call };
+allow system_control hdmicecd:binder { call transfer };