summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-04-15 18:06:18 +0200
committerGerrit Code Review <gerrit2@gerrit>2014-04-16 17:35:37 +0200
commit9c102b536dab6091031aeff49158bd13b8070635 (patch)
tree66e490ba705013703b8270827e2c894386f29607
parentSupport alternative .android_secure location (diff)
downloadandroid_bootable_recovery-9c102b536dab6091031aeff49158bd13b8070635.tar
android_bootable_recovery-9c102b536dab6091031aeff49158bd13b8070635.tar.gz
android_bootable_recovery-9c102b536dab6091031aeff49158bd13b8070635.tar.bz2
android_bootable_recovery-9c102b536dab6091031aeff49158bd13b8070635.tar.lz
android_bootable_recovery-9c102b536dab6091031aeff49158bd13b8070635.tar.xz
android_bootable_recovery-9c102b536dab6091031aeff49158bd13b8070635.tar.zst
android_bootable_recovery-9c102b536dab6091031aeff49158bd13b8070635.zip
Diffstat (limited to '')
-rw-r--r--data.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/data.cpp b/data.cpp
index 1fbe0ffad..4bf8637a6 100644
--- a/data.cpp
+++ b/data.cpp
@@ -953,6 +953,7 @@ void DataManager::SetDefaultValues()
if (findbright.empty()) {
// Attempt to locate the brightness file
findbright = Find_File::Find("brightness", "/sys/class/backlight");
+ if (findbright.empty()) findbright = Find_File::Find("brightness", "/sys/class/leds/lcd-backlight");
}
if (findbright.empty()) {
LOGINFO("Unable to locate brightness file\n");