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

    # Screen color
    write /sys/devices/platform/kcal_ctrl.0/kcal_enable 1
    write /sys/devices/platform/kcal_ctrl.0/kcal 250 250 255
    write /sys/devices/platform/kcal_ctrl.0/kcal_cont 256
    write /sys/devices/platform/kcal_ctrl.0/kcal_hue 1515
    write /sys/devices/platform/kcal_ctrl.0/kcal_min 26
    write /sys/devices/platform/kcal_ctrl.0/kcal_sat 245
    write /sys/devices/platform/kcal_ctrl.0/kcal_val 251

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
