diff --git a/universal7885-common/sepolicy/vendor/genfs_contexts b/universal7885-common/sepolicy/vendor/genfs_contexts index 4b5ae18..0a65e76 100644 --- a/universal7885-common/sepolicy/vendor/genfs_contexts +++ b/universal7885-common/sepolicy/vendor/genfs_contexts @@ -160,6 +160,7 @@ genfscon sysfs /devices/platform/17000070.devfreq_fsys/devfreq/17000070.devfreq_ genfscon sysfs /devices/platform/13840000.i2c/i2c-9/9-003d/s2mu004-charger/power_supply/s2mu004-charger u:object_r:sysfs_charger:s0 genfscon sysfs /devices/platform/13840000.i2c/i2c-9/9-003d/s2mu004-muic/power_supply/muic-manager u:object_r:sysfs_charger:s0 genfscon sysfs /devices/platform/13840000.i2c/i2c-9/9-003d/s2mu004-charger/power_supply/otg u:object_r:sysfs_charger:s0 +genfscon sysfs /devices/platform/13840000.i2c/i2c-8/8-003d/s2mu005-charger/power_supply/otg/type u:object_r:sysfs_charger:s0 # S2MU106 CHARGER (A20e) genfscon sysfs /devices/platform/13840000.i2c/i2c-8/8-003d/s2mu106-powermeter/power_supply/s2mu106_pmeter u:object_r:sysfs_charger:s0 diff --git a/universal7885-common/sepolicy/vendor/system_app.te b/universal7885-common/sepolicy/vendor/system_app.te index adfe4c6..c433d6a 100644 --- a/universal7885-common/sepolicy/vendor/system_app.te +++ b/universal7885-common/sepolicy/vendor/system_app.te @@ -10,5 +10,4 @@ allow system_app sysfs_battery_info:dir { search }; allow system_app sysfs_battery_info:file { read open getattr }; r_dir_file(system_app, sysfs_battery_info) - - +r_dir_file(system_app, sysfs_zram) diff --git a/universal7885-common/sepolicy/vendor/system_server.te b/universal7885-common/sepolicy/vendor/system_server.te index 797553f..d8c30ab 100644 --- a/universal7885-common/sepolicy/vendor/system_server.te +++ b/universal7885-common/sepolicy/vendor/system_server.te @@ -17,12 +17,8 @@ allow system_server sysfs_rtc:file r_file_perms; allow system_server sysfs_battery_writable:dir r_dir_perms; allow system_server sysfs_battery_writable:file rw_file_perms; -# get_prop(system_server, vendor_radio_prop) - -r_dir_file(system_server, sysfs_virtual) - get_prop(system_server, exported_camera_prop) get_prop(system_server, userspace_reboot_config_prop) get_prop(system_server, userspace_reboot_exported_prop) allow system_server self:capability sys_module; -# allow system_server unlabeled:file { write setattr }; +allow system_server shell:unix_stream_socket getopt;