Mobile Security · Web content and native bridges
WebView native bridge
Also known as: JavaScript bridge, Native bridge, WebView bridge, addJavascriptInterface
Lets web-page JavaScript call native app methods. Android's addJavascriptInterface exposes an object to loaded frames without authenticating the calling frame's origin. A method that uses the app session can give an untrusted page authenticated account capability. Keep privileged methods away from untrusted pages and frames, and enforce authorization downstream.