universal8890: build nfc hal from source

Change-Id: Ief7ef8f2a597b1a978ea4b0ec4e41391cec03a99
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
Jan Altensen 2021-04-24 02:54:40 +02:00 committed by roynatech2544
commit 4fed82613c
8 changed files with 20 additions and 11 deletions

View file

@ -23,6 +23,7 @@ type proc_swapiness, fs_type, proc_type;
type display_vendor_data_file, file_type, data_file_type;
type fingerprintd_vendor_data_file, data_file_type, file_type;
type mediadrm_data_file, file_type, data_file_type;
type nfc_vendor_data_file, file_type, data_file_type;
# sysfs types
type sysfs_abox_writable, sysfs_type, rw_fs_type, fs_type;

View file

@ -53,7 +53,7 @@
####################################
# data files
/data/nfc(/.*)? u:object_r:nfc_data_file:s0
/data/vendor/nfc(/.*)? u:object_r:nfc_vendor_data_file:s0
/data/misc/radio(/.*)? u:object_r:radio_data_file:s0
@ -141,6 +141,7 @@
/(vendor|system/vendor)/bin/hw/android\.hardware\.drm@[0-9]\.[0-9]-service\.widevine u:object_r:hal_drm_widevine_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.keymaster@[0-9]\.[0-9]-service\.samsung u:object_r:hal_keymaster_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.usb@[0-9]\.[0-9]-service\.basic u:object_r:hal_usb_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.nfc@[0-9]\.[0-9]-service.samsung u:object_r:hal_nfc_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.samsung\.hardware\.gnss@[0-9]\.[0-9]-service u:object_r:hal_gnss_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.trustonic\.tee@[0-9]\.[0-9]-service u:object_r:hal_tee_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.trustonic\.teeregistry@[0-9]\.[0-9]-service u:object_r:hal_teeregistry_default_exec:s0

View file

@ -1,10 +1,4 @@
# hal_nfc_default.te
init_daemon_domain(hal_nfc_default)
allow hal_nfc_default nfc_vendor_data_file:dir w_dir_perms;
allow hal_nfc_default nfc_vendor_data_file:file create_file_perms;
# /system/etc/event-log-tags
allow nfc runtime_event_log_tags_file:file getattr;
allow hal_nfc_default hal_nfc_hwservice:hwservice_manager add;
# vendor.nfc.fw.
set_prop(hal_nfc_default, vendor_nfc_prop)

View file

@ -1 +1,3 @@
allow nfc sec_efs_file:dir search;
allow nfc nfc_vendor_data_file:dir rw_dir_perms;
allow nfc nfc_vendor_data_file:file create_file_perms;