mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-01-27 18:19:03 +00:00
sepolicy: move ftm4 sepolicy
Bug: 63911898 Change-Id: I738c4fa6cb441b51294dd8add412984505c285c9
This commit is contained in:
1
sepolicy/vendor/genfs_contexts
vendored
1
sepolicy/vendor/genfs_contexts
vendored
@@ -10,7 +10,6 @@ genfscon sysfs /class/devfreq u:object_r:sysfs_msm_subsy
|
||||
genfscon sysfs /devices/soc/soc:qcom,memlat-cpu0 u:object_r:sysfs_msm_subsys:s0
|
||||
genfscon sysfs /devices/soc/soc:qcom,memlat-cpu4 u:object_r:sysfs_msm_subsys:s0
|
||||
genfscon sysfs /android_touch u:object_r:sysfs_touch:s0
|
||||
genfscon sysfs /devices/virtual/input/ftm4_touch u:object_r:sysfs_touch:s0
|
||||
|
||||
genfscon sysfs /devices/soc/1da4000.ufshc/host0/target0:0:0/0:0:0:0 u:object_r:sysfs_scsi_devices_0000:s0
|
||||
|
||||
|
||||
@@ -48,8 +48,8 @@ Return<void> VrDevice::setVrMode(bool enabled) {
|
||||
if (!android::base::SetProperty("ctl.restart", "thermal-engine")) {
|
||||
LOG(ERROR) << "Couldn't set thermal_engine restart property";
|
||||
}
|
||||
if (!access("/sys/class/input/ftm4_touch", R_OK)) {
|
||||
FILE *f = fopen("/sys/class/input/ftm4_touch/vrmode", "w");
|
||||
if (!access("/sys/devices/virtual/input/ftm4_touch/vrmode", W_OK)) {
|
||||
FILE *f = fopen("/sys/devices/virtual/input/ftm4_touch/vrmode", "w");
|
||||
if (f) {
|
||||
fprintf(f, "%d", (enabled ? 1 : 0));
|
||||
fclose(f);
|
||||
|
||||
Reference in New Issue
Block a user