From: sbrissen Date: Mon, 28 Oct 2013 19:37:34 +0000 (-0400) Subject: allow override of cabc file via property X-Git-Tag: cm-10.2-M1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c11396ecc6738126e84f6262fecbd6021ca20abd;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git allow override of cabc file via property Note 8's cabc is implemented in mdnie instead of the panel file like other smdk4x12 devices. Change-Id: I9bd7c4bb5899cd323e4f6861bf7ceb61f459da05 --- diff --git a/cmhw/org/cyanogenmod/hardware/AdaptiveBacklight.java b/cmhw/org/cyanogenmod/hardware/AdaptiveBacklight.java index 9eeddf2..d96dad9 100644 --- a/cmhw/org/cyanogenmod/hardware/AdaptiveBacklight.java +++ b/cmhw/org/cyanogenmod/hardware/AdaptiveBacklight.java @@ -18,6 +18,8 @@ package org.cyanogenmod.hardware; import org.cyanogenmod.hardware.util.FileUtils; +import android.os.SystemProperties; + import java.io.File; /** @@ -26,7 +28,7 @@ import java.io.File; */ public class AdaptiveBacklight { - private static String FILE_CABC = "/sys/class/lcd/panel/power_reduce"; + private static String FILE_CABC = SystemProperties.get("ro.cm.hardware.cabc", "/sys/class/lcd/panel/power_reduce"); /** * Whether device supports an adaptive backlight technology.