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

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

Merge "StatsPullAtomCallbackImpl: fixed StrictMode policy violation" into main

parents ff757b79 9c771c23
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1122,7 +1122,11 @@ public final class BatteryStatsService extends IBatteryStats.Stub
                    throw new UnsupportedOperationException("Unknown tagId=" + atomTag);
            }
            final byte[] statsProto = bus.getStatsProto();

            try {
                bus.close();
            } catch (IOException e) {
                Slog.w(TAG, "Failure close BatteryUsageStats", e);
            }
            data.add(FrameworkStatsLog.buildStatsEvent(atomTag, statsProto));

            return StatsManager.PULL_SUCCESS;