//移除android默认与js通信接口
this.mWebView.removeJavascriptInterface("searchBoxJavaBridge_");
this.mWebView.removeJavascriptInterface("accessibility");
this.mWebView.removeJavascriptInterface("accessibilityTraversal");
//防止webview明文存储密码
this.mWebView.getSettings().setSavePassword(false);
this.mWebView.removeJavascriptInterface("searchBoxJavaBridge_");
this.mWebView.removeJavascriptInterface("accessibility");
this.mWebView.removeJavascriptInterface("accessibilityTraversal");
//防止webview明文存储密码
this.mWebView.getSettings().setSavePassword(false);
本文介绍了如何通过移除默认的JavaScript接口以及设置不保存密码的方式增强Android应用中WebView的安全性。
2015

被折叠的 条评论
为什么被折叠?



