Super Liu 28754e355a touch: init service to access gti interactive_calibrate sysfs
Write usage: setprop vendor.touch.gti0.ical VALUE

Any VALUE(e.g. 20X or 30X) set through this property will write
into gti interactive_calibrate sysfs except for the VALUE `read`.

Read usage: setprop vendor.touch.gti0.ical read
            getprop vendor.touch.gti0.ical.result
setprop with VALUE `read` will read the gti
interactive_calibrate sysfs and save the result to
vendor.touch.gti0.ical.result.

Besides, please add your DOMAIN to access vendor_gti_prop.
set_prop(DOMAIN, vendor_gti_prop)

Bug: 331139251
Test: Manually verify the result.
Change-Id: I6296b9533dd0209e66832bfbbed6030a30077b96
Signed-off-by: Super Liu <supercjliu@google.com>
2024-03-27 01:01:40 +00:00

9 lines
244 B
Plaintext

type gti_ical, domain;
type gti_ical_exec, vendor_file_type, exec_type, file_type;
init_daemon_domain(gti_ical)
allow gti_ical sysfs_touch_gti:file rw_file_perms;
allow gti_ical sysfs_touch_gti:dir search;
set_prop(gti_ical, vendor_gti_prop)