a32: sepolicy|prop: Import ro.product_ship with sepolicy

This commit is contained in:
AndroidHQ254 2024-04-21 21:34:29 +03:00
commit 6fdf70ebf0
No known key found for this signature in database
GPG key ID: 48008337615EE8A9
9 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,6 @@
# Camera
persist.sns.camera_light u:object_r:sns_camera_light_prop:s0
cam.dipsavefile.enable u:object_r:sec_camera_prop:s0
# Product
ro.product_ship u:object_r:product_ship_prop:s0

View file

@ -1,2 +1,3 @@
type sns_camera_light_prop, property_type, system_property_type, system_public_property_type;
type sec_camera_prop, property_type, system_property_type, system_public_property_type;
type product_ship_prop, property_type, system_property_type, system_public_property_type;

View file

@ -8,3 +8,5 @@ allow hal_hyper_default sysfs_power:file rw_file_perms;
allow hal_hyper_default proc_kswapd_perftune_cpumask:file rw_file_perms;
allow hal_hyper_default sysfs_ski_memory_writable:dir r_dir_perms;
allow hal_hyper_default sysfs_ski_memory_writable:file rw_file_perms;
get_prop(hal_hyper_default, product_ship_prop)

1
sepolicy/vendor/hal_nfc_default.te vendored Normal file
View file

@ -0,0 +1 @@
get_prop(hal_nfc_default, product_ship_prop)

View file

@ -2,3 +2,5 @@ type hal_proca_default, domain;
type hal_proca_default_exec, exec_type, file_type, vendor_file_type;
init_daemon_domain(hal_proca_default)
get_prop(hal_proca_default, product_ship_prop)

View file

@ -12,3 +12,5 @@ allow rild cassd:dir search;
allow rild cassd:file { read getattr open };
allow rild hal_telephony_hwservice:hwservice_manager { add find };
get_prop(rild, product_ship_prop)

View file

@ -2,3 +2,5 @@ type tzdaemon, domain;
type tzdaemon_exec, exec_type, file_type, vendor_file_type;
init_daemon_domain(tzdaemon)
get_prop(tzdaemon, product_ship_prop)

View file

@ -2,3 +2,5 @@ type tztsd, domain;
type tztsd_exec, exec_type, file_type, vendor_file_type;
init_daemon_domain(tztsd)
get_prop(tztsd, product_ship_prop)

View file

@ -55,6 +55,7 @@ ro.config.per_app_memcg=false
# Misc
ro.vendor.mtk_omacp_support=1
persist.vendor.mdlog.flush_log_ratio=0
ro.product_ship=true
# OEM Unlock
ro.oem_unlock_supported=1