pedant/safe-java-js-webview-bridge
为WebView中的Java与JavaScript提供【安全可靠】的多样互通方案 observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4440
- days_rel: n/a
- days_push: 2525
- n_releases_24m: 0
Adoption not part of the score
2415 stars · 561 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
An Android library providing a safe alternative to WebView's addJavascriptInterface for Java-JavaScript communication, using WebChromeClient prompt-based injection to avoid the remote code execution vulnerability on Android < 4.2. It supports async callbacks, method overloading, and all common JS parameter types.
Use cases
- call native Java methods from JavaScript in an Android WebView
- secure JS-to-Java bridge for hybrid Android apps
- avoid addJavascriptInterface security vulnerability on old Android versions
- support async callbacks between web page JS and native code
- build hybrid apps with safe WebView native interop
When to choose
- building a hybrid Android app that must support Android versions below 4.2 safely
- you need a lightweight drop-in WebView JS bridge with async callback support
When to avoid
- targeting only Android 4.2+ where @JavascriptInterface is sufficient
- you need an actively maintained library with recent updates and support
- building cross-platform apps where a modern framework bridge is available
Facets
library · maturity abandoned
security sdk developer-tools mobile-development web-development security android-tools jvm webview hybrid-app javascript-bridge android js-java-interop mobile
2 sources
- readme: https://github.com/pedant/safe-java-js-webview-bridge · fetched 2026-08-28 · eca6495bb40a
- homepage: http://pedant.github.io/2014/07/04/webview-js-java-interface-research/ · fetched 2026-08-29 · dd54469aad55
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pedant/safe-java-js-webview-bridge | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="pedant/safe-java-js-webview-bridge")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem