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

Commit 6824c7c1 authored by Gustav Sennton's avatar Gustav Sennton
Browse files

Clear calling identity when enabling WebView fallback logic.

Using the shell to enable/disable the WebView fallback logic would,
before this CL, fail because the package from where we update the actual
setting wouldn't match that of the calling UID.

Bug: 27957671
Change-Id: Iedf3be71aeef572ebf92c1db163eb8f461b8287a
parent 06112bb2
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -242,7 +242,12 @@ public class WebViewUpdateService extends SystemService {
                throw new SecurityException(msg);
            }

            long callingId = Binder.clearCallingIdentity();
            try {
                WebViewUpdateService.this.mImpl.enableFallbackLogic(enable);
            } finally {
                Binder.restoreCallingIdentity(callingId);
            }
        }
    }
}