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

Commit 69df0846 authored by Vova Sharaienko's avatar Vova Sharaienko Committed by Android (Google) Code Review
Browse files

Merge "StatsPerUidLogger: fixed StrictMode policy violation" into main

parents 79441c08 52e042af
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1260,7 +1260,14 @@ public final class BatteryStatsService extends IBatteryStats.Stub
                                    .setMinConsumedPowerThreshold(minConsumedPowerThreshold)
                                    .build();
                    bus = getBatteryUsageStats(List.of(query)).get(0);
                    return new StatsPerUidLogger(new FrameworkStatsLogger()).logStats(bus, data);
                    final int pullResult =
                            new StatsPerUidLogger(new FrameworkStatsLogger()).logStats(bus, data);
                    try {
                        bus.close();
                    } catch (IOException e) {
                        Slog.w(TAG, "Failure close BatteryUsageStats", e);
                    }
                    return pullResult;
                }
                default:
                    throw new UnsupportedOperationException("Unknown tagId=" + atomTag);