summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhao Wei Liew <zhaoweiliew@gmail.com>2017-01-24 13:55:20 (GMT)
committerZhao Wei Liew <zhaoweiliew@gmail.com>2017-01-31 14:43:56 (GMT)
commit2eb969fe8a0d789e0a0b3382aed55f639ff078fd (patch)
tree682fc76ddf053d50203634b4a642a02417b8f3cd
parentf97f4ffca63d370b8d7fd75b5325b8d1a2acf15c (diff)
downloadandroid_hardware_samsung-2eb969fe8a0d789e0a0b3382aed55f639ff078fd.zip
android_hardware_samsung-2eb969fe8a0d789e0a0b3382aed55f639ff078fd.tar.gz
android_hardware_samsung-2eb969fe8a0d789e0a0b3382aed55f639ff078fd.tar.bz2
Revert "allow override of cabc file via property"
A quick search reveals that only 1 device uses this - kona. Instead of adding a system prop for this, that one device can add its own AdaptiveBacklight class. This allows kona to use AdaptiveBacklight without having to modify the common class. This reverts commit c11396ecc6738126e84f6262fecbd6021ca20abd. Change-Id: Id912091f64da39a10d30c9770f248cf6467e8760
-rw-r--r--cmhw/org/cyanogenmod/hardware/AdaptiveBacklight.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmhw/org/cyanogenmod/hardware/AdaptiveBacklight.java b/cmhw/org/cyanogenmod/hardware/AdaptiveBacklight.java
index 16a3748..8e763e3 100644
--- a/cmhw/org/cyanogenmod/hardware/AdaptiveBacklight.java
+++ b/cmhw/org/cyanogenmod/hardware/AdaptiveBacklight.java
@@ -16,8 +16,6 @@
package org.cyanogenmod.hardware;
-import android.os.SystemProperties;
-
import org.cyanogenmod.internal.util.FileUtils;
/**
@@ -26,8 +24,7 @@ import org.cyanogenmod.internal.util.FileUtils;
*/
public class AdaptiveBacklight {
- private static final String FILE_CABC = SystemProperties.get(
- "ro.cm.hardware.cabc", "/sys/class/lcd/panel/power_reduce");
+ private static final String FILE_CABC = "/sys/class/lcd/panel/power_reduce";
/**
* Whether device supports an adaptive backlight technology.