am e1cd38e9: am ca34b184: am a50f43e0: am 23e19066: Merge "BatteryStats: Read /proc/wakelocks first before trying /d/wakeup_sources" into mnc-dev

* commit 'e1cd38e9298f0a62418e95adee64e5f2d7e36297':
  BatteryStats: Read /proc/wakelocks first before trying /d/wakeup_sources
This commit is contained in:
Adam Lesinski
2015-07-21 20:24:36 +00:00
committed by Android Git Automerger

View File

@@ -68,12 +68,12 @@ public class KernelWakelockReader {
try {
FileInputStream is;
try {
is = new FileInputStream(sWakeupSourceFile);
wakeup_sources = true;
is = new FileInputStream(sWakelockFile);
wakeup_sources = false;
} catch (java.io.FileNotFoundException e) {
try {
is = new FileInputStream(sWakelockFile);
wakeup_sources = false;
is = new FileInputStream(sWakeupSourceFile);
wakeup_sources = true;
} catch (java.io.FileNotFoundException e2) {
return null;
}