Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23e19066 authored by Adam Lesinski's avatar Adam Lesinski Committed by Android (Google) Code Review
Browse files

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

parents d9c2ff99 68569644
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -67,13 +67,13 @@ public class KernelWakelockReader {

        try {
            FileInputStream is;
            try {
                is = new FileInputStream(sWakeupSourceFile);
                wakeup_sources = true;
            } catch (java.io.FileNotFoundException e) {
            try {
                is = new FileInputStream(sWakelockFile);
                wakeup_sources = false;
            } catch (java.io.FileNotFoundException e) {
                try {
                    is = new FileInputStream(sWakeupSourceFile);
                    wakeup_sources = true;
                } catch (java.io.FileNotFoundException e2) {
                    return null;
                }