diff --git a/non_plat/file_contexts b/non_plat/file_contexts index 87a48eb..1fdc9ee 100644 --- a/non_plat/file_contexts +++ b/non_plat/file_contexts @@ -21,7 +21,7 @@ #/data/misc/mddb(/.*)? u:object_r:mddb_data_file:s0 /data/aee_exp(/.*)? u:object_r:aee_exp_data_file:s0 /data/vendor/mtklog/aee_exp(/.*)? u:object_r:aee_exp_vendor_file:s0 -#/data/agps_supl(/.*)? u:object_r:agpsd_data_file:s0 +/data/vendor/agps_supl(/.*)? u:object_r:agpsd_data_file:s0 #/data/mnl_flp(/.*)? u:object_r:mnld_data_file:s0 #/data/mnl_gfc(/.*)? u:object_r:mnld_data_file:s0 #/data/misc/gps(/.*)? u:object_r:gps_data_file:s0 diff --git a/non_plat/mtk_agpsd.te b/non_plat/mtk_agpsd.te index 3c8dec2..19b7f4d 100644 --- a/non_plat/mtk_agpsd.te +++ b/non_plat/mtk_agpsd.te @@ -32,11 +32,9 @@ allow mtk_agpsd mnt_user_file:dir create_dir_perms; # Access symbolic link files like /etc and /sdcard allow mtk_agpsd tmpfs:lnk_file create_file_perms; -allow mtk_agpsd storage_file:lnk_file create_file_perms; allow mtk_agpsd mnt_user_file:lnk_file create_file_perms; -typeattribute mtk_agpsd data_between_core_and_vendor_violators; -allow mtk_agpsd media_rw_data_file:dir { search write add_name read open }; -allow mtk_agpsd media_rw_data_file:file { create open append read getattr }; +allow mtk_agpsd storage_file:dir create_dir_perms; +allow mtk_agpsd storage_file:file create_file_perms; # Send supl profile configuration to SLPD (to get SUPL Reference Location for HW Fused Location) allow mtk_agpsd slpd:unix_dgram_socket sendto;