diff --git a/sepolicy/init.te b/sepolicy/init.te index 7fb7079..42f5bf5 100644 --- a/sepolicy/init.te +++ b/sepolicy/init.te @@ -8,3 +8,6 @@ allow init userdata_block_device:lnk_file relabelto; allow vendor_init vendor_init:capability { sys_module }; allow init system_file:lnk_file create_file_perms; + +#fix adb in some cases +allow init adbd_exec:lnk_file read; diff --git a/sepolicy/treble_app.te b/sepolicy/treble_app.te index ef3ea1d..41e6c7d 100644 --- a/sepolicy/treble_app.te +++ b/sepolicy/treble_app.te @@ -24,6 +24,8 @@ allow system_app default_hisi_hwservice:hwservice_manager { find }; type hal_tp_default, domain; allow system_app hal_tp_default:binder { call }; +#cam2api +allow system_app vendor_default_prop:property_service { set }; set_prop(system_app, default_prop); set_prop(system_app, exported3_default_prop);