Revert "allow override of cabc file via property"
authorZhao Wei Liew <zhaoweiliew@gmail.com>
Tue, 24 Jan 2017 13:55:20 +0000 (21:55 +0800)
committerZhao Wei Liew <zhaoweiliew@gmail.com>
Tue, 31 Jan 2017 14:43:56 +0000 (14:43 +0000)
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

cmhw/org/cyanogenmod/hardware/AdaptiveBacklight.java

index 16a3748a66dfd772be4c11656637b5696b6ae46a..8e763e3f550b2fc3b7d015b5058743f416ae8bc7 100644 (file)
@@ -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.