Merge "BatteryStats: Read /proc/wakelocks first before trying /d/wakeup_sources" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
23e19066de
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user