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

Commit f97c6019 authored by Ryan Zuklie's avatar Ryan Zuklie Committed by Android (Google) Code Review
Browse files

Merge "Catch errors thrown by SystemProperties.set" into main

parents 8e427022 0cd915aa
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -253,7 +253,11 @@ public class BatteryStatsHistory {
        public void traceCounter(@NonNull String name, int value) {
            Trace.traceCounter(Trace.TRACE_TAG_POWER, name, value);
            if (mShouldSetProperty) {
                try {
                    SystemProperties.set("debug.tracing." + name, Integer.toString(value));
                } catch (RuntimeException e) {
                    Slog.e(TAG, "Failed to set debug.tracing." + name, e);
                }
            }
        }