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

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

View File

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