* 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
29 lines
836 B
Text
29 lines
836 B
Text
type ir_dev_file, file_type;
|
|
type fingerprint_data_file, file_type, data_file_type, core_data_file_type;
|
|
type fingerprint_sysfs, fs_type, sysfs_type;
|
|
type sysfs_info, fs_type, sysfs_type;
|
|
|
|
allow ueventd ir_dev_file:chr_file { create setattr };
|
|
|
|
# Touchscreen wake_gesture
|
|
type sysfs_tap_to_wake, sysfs_type, fs_type;
|
|
type sysfs_touchpanel, fs_type, sysfs_type;
|
|
type proc_dt2w, fs_type, proc_type;
|
|
|
|
# Fingerprint
|
|
type fingerprintd_device, file_type, dev_type;
|
|
type persist_fingerprint_file, file_type;
|
|
type sysfs_fingerprint, sysfs_type, fs_type;
|
|
|
|
# Hall Switch
|
|
type hall_dev, sysfs_type, fs_type;
|
|
|
|
# Kcal
|
|
type kcal_dev, sysfs_type, fs_type;
|
|
|
|
type thermal_data_file, file_type, data_file_type;
|
|
|
|
# XiamiParts
|
|
type sysfs_fpsinfo, sysfs_type, fs_type;
|
|
type sysfs_headphonegain, sysfs_type, fs_type;
|
|
type sysfs_micgain, sysfs_type, fs_type;
|