
service supolicy /sbin/supolicy --live \
	"allow sensors diag_device chr_file { read write open ioctl }" \
	"allow sensors sensors capability net_raw" \
	"allow init kernel security setenforce"
     disabled
     oneshot

on fs
     start supolicy

on boot
    # Wake Gestures
    chown system system /sys/android_touch/doubletap2wake
    chmod 0644 /sys/android_touch/doubletap2wake
    chown system system /sys/android_touch/sweep2wake
    chmod 0644 /sys/android_touch/sweep2wake
    chown system system /sys/android_touch/sweep2sleep
    chmod 0644 /sys/android_touch/sweep2sleep
    chown system system /sys/android_touch/wake_gestures
    chmod 0644 /sys/android_touch/wake_gestures
    chown system system /sys/android_touch/vib_strength
    chmod 0644 /sys/android_touch/vib_strength
    write /sys/android_touch/vib_strength 40

    # Adreno Idler
    chown system system /sys/module/adreno_idler/parameters/adreno_idler_active
    chmod 0644 /sys/module/adreno_idler/parameters/adreno_idler_active
    chown system system /sys/module/adreno_idler/parameters/adreno_idler_downdifferential
    chmod 0644 /sys/module/adreno_idler/parameters/adreno_idler_downdifferential
    chown system system /sys/module/adreno_idler/parameters/adreno_idler_idewait
    chmod 0644 /sys/module/adreno_idler/parameters/adreno_idler_idewait
    chown system system /sys/module/adreno_idler/parameters/adreno_idler_ideworkload
    chmod 0644 /sys/module/adreno_idler/parameters/adreno_idler_ideworkload

service benzo-post-boot /sbin/benzo-post-boot.sh
     class late_start
     user root
     disabled
     oneshot

on property:sys.boot_completed=1
     start benzo-post-boot

on property:dev.bootcomplete=1
	stop mpdecision
	write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 2649600
	write /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq 2649600
	write /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq 2649600
	write /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq 2649600
	write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 300000
	write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 300000
	write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 300000
	write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 300000
	write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor conservative
	write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor conservative
	write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor conservative
	write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor conservative
	write /sys/block/mmcblk0rpmb/queue/scheduler bfq
	write /sys/block/mmcblk0rpmb/queue/read_ahead_kb 1536
