sdm660: parts: Rename hall prop to folio_daemon prop
*needed to prevent neverallow in user builds
This commit is contained in:
parent
fd9cdbe6c5
commit
5d39827818
5 changed files with 5 additions and 8 deletions
|
@ -52,7 +52,7 @@ public class DeviceSettings extends PreferenceFragment implements
|
|||
private static final String CATEGORY_HALL_WAKEUP = "hall_wakeup";
|
||||
public static final String PREF_HALL_WAKEUP = "hall";
|
||||
public static final String HALL_WAKEUP_PATH = "/sys/module/hall/parameters/hall_toggle";
|
||||
public static final String HALL_WAKEUP_PROP = "vendor.persist.hall_wakeup";
|
||||
public static final String HALL_WAKEUP_PROP = "persist.service.folio_daemon";
|
||||
|
||||
private static final String DEVICE_DOZE_PACKAGE_NAME = "org.lineageos.settings.doze";
|
||||
|
||||
|
|
|
@ -157,10 +157,10 @@ service folio_daemon /system/bin/folio_daemon
|
|||
group system uhid
|
||||
disabled
|
||||
|
||||
on property:vendor.persist.hall_wakeup=0
|
||||
on property:persist.service.folio_daemon=0
|
||||
stop folio_daemon
|
||||
|
||||
on property:vendor.persist.hall_wakeup=1
|
||||
on property:persist.service.folio_daemon=1
|
||||
start folio_daemon
|
||||
|
||||
#Peripheral manager
|
||||
|
|
3
sepolicy/vendor/property.te
vendored
3
sepolicy/vendor/property.te
vendored
|
@ -9,6 +9,3 @@ type thermal_engine_prop, property_type;
|
|||
|
||||
# Dirac
|
||||
type dirac_prop, property_type;
|
||||
|
||||
# Hall wakeup
|
||||
type hall_wakeup_prop, property_type;
|
||||
|
|
2
sepolicy/vendor/property_contexts
vendored
2
sepolicy/vendor/property_contexts
vendored
|
@ -39,4 +39,4 @@ persist.audio.dirac. u:object_r:dirac_prop:s0
|
|||
sys.post_boot.parsed u:object_r:vendor_mpctl_prop:s0
|
||||
|
||||
# Hall wakeup
|
||||
vendor.persist.hall_wakeup u:object_r:hall_wakeup_prop:s0
|
||||
persist.service.folio_daemon u:object_r:system_prop:s0
|
||||
|
|
2
sepolicy/vendor/system_app.te
vendored
2
sepolicy/vendor/system_app.te
vendored
|
@ -10,4 +10,4 @@ allow system_app sysfs_thermal:dir search;
|
|||
allow system_app sysfs_vibrator:file rw_file_perms;
|
||||
allow system_app sysfs_vibrator:dir search;
|
||||
|
||||
set_prop(system_app, hall_wakeup_prop);
|
||||
set_prop(system_app, system_prop);
|
||||
|
|
Loading…
Reference in a new issue