* This is manually ported by me from Lavender tree on Corvus-Devices * Thanks @StyloGey for reviewing the java code and giving me a better solution * Original repo: https://github.com/Corvus-Devices/device_xiaomi_lavender.git To get it working, you need these two commits in your kernel: >c04d6d6e61
>8e25ac3318
Signed-off-by: OdSazib <odsazib@gmail.com> Change-Id: I1bb48ced1f23728daa2e5170647ce08a04347110
18 lines
841 B
Text
18 lines
841 B
Text
allow system_app vendor_default_prop:file { getattr open read };
|
|
allow system_app wificond:binder call;
|
|
allow system_app hal_mlipay_default:binder call;
|
|
allow system_app kcal_dev:file rw_file_perms;
|
|
allow system_app kcal_dev:dir search;
|
|
allow system_app hall_dev:file rw_file_perms;
|
|
allow system_app hall_dev:dir search;
|
|
allow system_app sysfs_thermal:file rw_file_perms;
|
|
allow system_app sysfs_thermal:dir search;
|
|
allow system_app sysfs_vibrator:file rw_file_perms;
|
|
allow system_app sysfs_vibrator:dir search;
|
|
allow system_app sysfs_graphics:dir search;
|
|
allow system_app sysfs_graphics:file rw_file_perms;
|
|
allow system_app sysfs_leds:dir search;
|
|
allow system_app sysfs_fpsinfo:file rw_file_perms;
|
|
allow system_app sysfs_headphonegain:file rw_file_perms;
|
|
allow system_app sysfs_micgain:file rw_file_perms;
|
|
set_prop(system_app, system_prop);
|