diff --git a/XiaomiParts/src/org/lineageos/settings/device/DeviceSettings.java b/XiaomiParts/src/org/lineageos/settings/device/DeviceSettings.java index 440ad878..87d960da 100644 --- a/XiaomiParts/src/org/lineageos/settings/device/DeviceSettings.java +++ b/XiaomiParts/src/org/lineageos/settings/device/DeviceSettings.java @@ -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"; diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 10029636..75691eda 100755 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -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 diff --git a/sepolicy/vendor/property.te b/sepolicy/vendor/property.te index 31e4a884..354c0a16 100644 --- a/sepolicy/vendor/property.te +++ b/sepolicy/vendor/property.te @@ -9,6 +9,3 @@ type thermal_engine_prop, property_type; # Dirac type dirac_prop, property_type; - -# Hall wakeup -type hall_wakeup_prop, property_type; diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts index dc27c9aa..628a84a2 100644 --- a/sepolicy/vendor/property_contexts +++ b/sepolicy/vendor/property_contexts @@ -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 diff --git a/sepolicy/vendor/system_app.te b/sepolicy/vendor/system_app.te index f55b8216..e014d02e 100644 --- a/sepolicy/vendor/system_app.te +++ b/sepolicy/vendor/system_app.te @@ -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);