Skip to content

Commit

Permalink
sdm660: parts: Rename hall prop to folio_daemon prop
Browse files Browse the repository at this point in the history
*needed to prevent neverallow in user builds
  • Loading branch information
rcstar6696 committed Jan 5, 2020
1 parent ac0973e commit 4d9dff9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
Expand Up @@ -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";

Expand Down
4 changes: 2 additions & 2 deletions rootdir/etc/init.target.rc
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions sepolicy/vendor/property.te
Expand Up @@ -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 changes: 1 addition & 1 deletion sepolicy/vendor/property_contexts
Expand Up @@ -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 changes: 1 addition & 1 deletion sepolicy/vendor/system_app.te
Expand Up @@ -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);

0 comments on commit 4d9dff9

Please sign in to comment.