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

Commit 39325373 authored by Makoto Onuki's avatar Makoto Onuki Committed by Android (Google) Code Review
Browse files

Merge "Clear calling identity before calling SysProp callbacks"

parents ece99121 f0cc59d6
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -208,6 +208,8 @@ public class SystemProperties {
                return;
            }
            ArrayList<Runnable> callbacks = new ArrayList<Runnable>(sChangeCallbacks);
            final long token = Binder.clearCallingIdentity();
            try {
                for (int i = 0; i < callbacks.size(); i++) {
                    try {
                        callbacks.get(i).run();
@@ -216,6 +218,9 @@ public class SystemProperties {
                        // Ignore and try to go on.
                    }
                }
            } finally {
                Binder.restoreCallingIdentity(token);
            }
        }
    }