sdm660: parts: Rename hall prop to folio_daemon prop

*needed to prevent neverallow in user builds
This commit is contained in:
Max Weffers 2020-01-02 20:43:31 +01:00
parent fd9cdbe6c5
commit 5d39827818
No known key found for this signature in database
GPG key ID: 795F73D22FB93FAE
5 changed files with 5 additions and 8 deletions

View file

@ -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";

View file

@ -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

View file

@ -9,6 +9,3 @@ type thermal_engine_prop, property_type;
# Dirac
type dirac_prop, property_type;
# Hall wakeup
type hall_wakeup_prop, property_type;

View file

@ -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

View file

@ -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);