arXiv:2610.27288cs.SEOct 2026

Manuscript Offprint

arXiv:2610.27288

A Hybrid Information Flow Analysis Framework for Android Hybrid Apps

Jyoti Prakash, Mikkel Baun Kjærgaard, Abhishek Tiwari

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

JYOTI PRAKASH, University of Southern Denmark, Denmark

MIKKEL BAUN KJÆRGAARD, University of Southern Denmark, Denmark

ABHISHEK TIWARI, University of Southern Denmark, Denmark

The WebView interface in Android (hybrid) applications enables the native side (e.g., Java) to exchange data with the Web (e.g., JavaScript). This creates cross-language information flow channels that existing single-language analyzers cannot analyze. Existing hybrid app analyses address only part of the problem: some build bridge-aware call graphs but provide limited information-flow analysis, some rely on coarse assumptions, and some focus only on web vulnerabilities. We present MifDroid, a static-analysis-guided dynamic-analysis framework with a lifecycle-aware per-WebView call graph, a bridge-aware type-and-effect system, and a modular JavaScript analysis engine. We evaluated MifDroid on 338 apps from the F-Droid repository (out of 4,126 total) that use addJavascriptInterface, enabling active communication between Java and JavaScript. Our guided dynamic phase adds 662 entries to the 444 produced by static analysis, raising the resolution rate from 36.5% to 74.5%, produces the resolved bridge-related entries for 115 apps that static analysis leaves empty. MifDroid reported 14 vulnerable cross-language information flows, five of which have been accepted and fixed by the maintainers.

CCS Concepts: • Security and privacy → Information flow control; • Theory of computation → Program analysis; • Software and its engineering → Dynamic analysis.

Additional Key Words and Phrases: information flow, static and dynamic analysis, Android WebView

ACM Reference Format:

Jyoti Prakash, Mikkel Baun Kjærgaard, and Abhishek Tiwari. 2026. A Hybrid Information Flow Analysis Framework for Android Hybrid Apps. ACM Trans. Softw. Eng. Methodol. 1, 1 (October 2026), 32 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn

1 Introduction

Android applications (apps) are increasingly hybrid, with Java/Kotlin code on the native side (as the host) and JavaScript on the Web (as the guest) communicating through a shared bridge. This communication is facilitated by the WebView [9]. The host side can invoke JavaScript/Web via dedicated APIs, such as loadUrl or evaluateJavascript. The communication is not merely one-sided. WebView also enables the guest side (JavaScript) to access the native side functionality via a special host object. We refer to this unique host object as bridge object. Although these bridge objects belong to the native-side Java/Kotlin class, they are exposed to JavaScript as if they were its own objects. Bridge objects were introduced to facilitate code reuse across the native side and the web. Unfortunately, this host-to-guest bridge communication also exposes sensitive host data (e.g., location) to a potentially untrusted web page [23, 25].

Detecting such flows is difficult for two reasons. First, a precise call graph for a hybrid app depends on communication endpoints of the WebView, such as loaded URLs and injected scripts. In practice, these values are often computed at

Authors' Contact Information: Jyoti Prakash, University of Southern Denmark, Odense, Denmark, jyp@mmmi.sdu.dk; Mikkel Baun Kjærgaard, University of Southern Denmark, Odense, Denmark, mbkj@mmmi.sdu.dk; Abhishek Tiwari, University of Southern Denmark, Odense, Denmark, abti@mmmi.sdu.dk.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.

Jyoti Prakash, Mikkel Baun Kjærgaard, and Abhishek Tiwari

runtime [10], for example, through string concatenation, resource lookup, or framework code. Consequently, static analyses may miss bridge communication entirely or merge multiple WebView instances to over-approximate communication context [25]. Second, dynamic analysis suffers from coverage issues. Even strong test-generation techniques, such as ω\omegaTest [10], cannot guarantee that all WebView-relevant paths will be exercised. A purely dynamic approach may therefore miss a flow simply because the triggering execution never occurs.

Existing hybrid app analyses only address part of this problem. HybriDroid [11] presented semantics of Java-JavaScript communication. However, their analysis mainly focused on type-mismatch bugs. LUDroid [23] targeted information flows via the Java-JavaScript bridge. It treats all sensitive data that leaves the host as a leak, flooding results with false positives. The most relevant related work [25] proposes a demand-driven IFC analysis for WebView bridges. However, their approach is based on static analysis, leaving dynamically computed targets unresolved. Additionally, their analysis relies on pre-existing call graphs that do not model WebView-specific lifecycle operations. WebViewJSdetect [28] advances the state of the art on the JavaScript side by leveraging concurrent abstract interpretation to detect vulnerabilities, such as unauthorized API access and privilege escalation, within the WebView's execution context. However, it operates entirely within the guest and does not precisely model flows originated on the host.

In this paper, we present MifDroid, a static-analysis-guided dynamic-analysis framework for detecting cross-language information flows in Android hybrid apps. The main insight is that static and dynamic analysis are not alternatives but collaborators. The static phase identifies which components host WebViews, collects statically resolvable information, and marks the statically unresolved sites. The dynamic phase is then guided toward those sites to obtain concrete runtime values. This resolved data is leveraged to create a lifecycle-aware, per-WebView call graph. A type-and-effect system leverages this call graph to compute confidentiality and integrity effects at the bridge boundary. Finally, a modular JavaScript analysis phase translates the computed effects into synthetic stubs so that existing JavaScript analyzers can detect information flows.

In summary, this paper makes the following contributions:

References (15)