# Network Risk evidence record Status: reviewed Question: what network and proxy configuration is visible to this application, which exact client packages are visible, and what module deployment metadata can this ordinary process actually read? These observations do not establish that any request used a proxy, attribute a core to a module, or establish that a device is compromised. Observed VPN/proxy configuration, exact client-package hits and valid module deployment traces are WARNING for review within their stated scope. Warning does not imply hostile activity. ## Ownership and applicability - `domain`: typed observations, coverage states, client catalogue and signer policy; no Android types. - `data`: ConnectivityManager adapter, packageinventory consumer and independent Box4Magisk / Box for Root metadata probes. No shell, root request, JNI, port scan or config traversal. - `presentation`: shared card wording and explicit privacy export projection. `ui`: existing card frame, paired facts and collapsible section components. `detector`: the only composition boundary for App and headless SDK; catalogue registration is the only external touch point. - Minimum API 29. Active network / process binding / default proxy require API 23, LinkProperties proxy/routes API 21, Private DNS API 28, current signing certificates API 28, typed PackageManager flags API 33 with an older overload below it. No hidden APIs. - Implementation comparison: Android 10 `android-10.0.0_r1` and Android 15 `android-15.0.0_r1`; public API contracts govern later releases, including compile/target API 37. Later OEM/Mainline implementations and release changes have not been validated on devices. A missing/null property is retained, never promoted into a device-wide negative. - A completed READY report preserves probe errors in its headline and SDK status. When no warning evidence is present, platform queries, read limits, malformed metadata, disappeared network properties and signing-read failures aggregate to INFO/ERROR with an incomplete verdict. Observed warning evidence takes precedence over unrelated errors, with incomplete coverage retained in the verdict, summary and detail rows. Permission limits, unsupported scope, changing samples, source differences and disabled active checks remain INFO/SUPPORT; available observations are retained. - Every probe retains its own observation state: OBSERVED, NOT_OBSERVED, UNAVAILABLE, PERMISSION_LIMITED, UNSUPPORTED or INCONCLUSIVE. A permission denial is coverage loss; a platform/read failure is an error; neither means a clean result. Disabled active probes are unavailable coverage, not execution failures. ## Signals ### Caller default, process binding and visible VPN transport - Observable signal: Calling UID's default Network, explicitly bound process Network, framework-visible network handles and transport capabilities. - Producing subsystem: ConnectivityManager Binder client, ConnectivityService UID selection/access filtering and process-local NetworkUtils binding. - Mechanism: `getActiveNetwork()` and `getBoundNetworkForProcess()` are separate observations. Read `getAllNetworks()`, include queried default/bound handles, then query each handle's capabilities and LinkProperties. More than 32 handles is an explicit collection-budget failure. No binding is changed. VPN transport on another visible handle is not equated with the caller's default or every socket. - References: [Android ConnectivityManager](https://developer.android.com/reference/android/net/ConnectivityManager), [NetworkCapabilities](https://developer.android.com/reference/android/net/NetworkCapabilities); AOSP frameworks/base [Android 10 ConnectivityManager](https://android.googlesource.com/platform/frameworks/base/+/android-10.0.0_r1/core/java/android/net/ConnectivityManager.java) and [ConnectivityService](https://android.googlesource.com/platform/frameworks/base/+/android-10.0.0_r1/services/core/java/com/android/server/ConnectivityService.java); packages/modules/Connectivity [Android 15 ConnectivityManager](https://android.googlesource.com/platform/packages/modules/Connectivity/+/android-15.0.0_r1/framework/src/android/net/ConnectivityManager.java) (`getActiveNetwork`, `getBoundNetworkForProcess`) and [ConnectivityService](https://android.googlesource.com/platform/packages/modules/Connectivity/+/android-15.0.0_r1/service/src/com/android/server/ConnectivityService.java) (`getActiveNetworkForUidInternal`, `getVpnForUid`, `getDefaultNetworkForUid`). - Applicability: API 29+ here; ACCESS_NETWORK_STATE is declared by the data module for both App and SDK hosts. All-network enumeration is deprecated from API 31 but still public; results are scoped to what that caller can observe. - Visibility limits: Default selection is UID scoped. Blocked and disconnected default queries can both be null. Process binding does not describe explicitly Network-bound sockets or older sockets. App exclusions, work-profile VPNs and local filters can produce different views. No claim about all users or kernel policy routing. - Result states: Non-null values OBSERVED; null default/binding NOT_OBSERVED in the stated scope; permission failure PERMISSION_LIMITED; API/service/read failure UNAVAILABLE; disappearing capabilities/links UNAVAILABLE; changed sample INCONCLUSIVE. - Interpretation: Configuration/context only. Observed VPN transport in a repeated sample is WARNING in its transport row, header fact and headline. Enterprise VPN, ad filtering and legitimate privacy clients are ordinary explanations; the warning does not attribute a module or assert that this app uses that VPN. Default/bound handles and successful enumeration alone remain INFO. ### Interfaces, routes, proxy configuration, PAC and Private DNS - Observable signal: Per-handle LinkProperties interface, route family/prefix/default/gateway-presence summaries, HTTP proxy type/port/exclusion count, Private DNS active/strict-name flags and DNS-server count; separately, default HTTP proxy configuration. - Producing subsystem: ConnectivityService network LinkProperties, ProxyTracker global proxy and ConnectivityManager process binding. - Mechanism: `getDefaultProxy()` calls `getProxyForNetwork(getBoundNetworkForProcess())`. The service chooses global proxy first, then the supplied bound handle if accessible, otherwise the calling UID's active network (the null-network path uses `ignoreBlocked=true`). This can legitimately differ from a blocked `getActiveNetwork()` result or a particular link's proxy. `getHttpProxy()` belongs to that link. A nonempty PAC URI identifies configuration only; no PAC script is fetched or evaluated. Private DNS is independently recorded. - References: [Android ConnectivityManager.getDefaultProxy](https://developer.android.com/reference/android/net/ConnectivityManager#getDefaultProxy()), [LinkProperties](https://developer.android.com/reference/android/net/LinkProperties), [ProxyInfo](https://developer.android.com/reference/android/net/ProxyInfo); AOSP packages/modules/Connectivity [ConnectivityManager](https://android.googlesource.com/platform/packages/modules/Connectivity/+/android-15.0.0_r1/framework/src/android/net/ConnectivityManager.java) (`getDefaultProxy`), [ConnectivityService](https://android.googlesource.com/platform/packages/modules/Connectivity/+/android-15.0.0_r1/service/src/com/android/server/ConnectivityService.java) (`getProxyForNetwork`, `getLinkPropertiesProxyInfo`), [ProxyTracker](https://android.googlesource.com/platform/packages/modules/Connectivity/+/android-15.0.0_r1/service/src/com/android/server/connectivity/ProxyTracker.java) and [LinkProperties](https://android.googlesource.com/platform/packages/modules/Connectivity/+/android-15.0.0_r1/framework/src/android/net/LinkProperties.java). Android 10 counterparts above were also compared. - Applicability: Link properties API 21+, default proxy API 23+, Private DNS API 28+, project minimum API 29. No procfs/netlink routing-table parser or kernel-wide inference is used. - Visibility limits: Link routes are the framework's per-network view, not firewall marks, per-UID ip rules or the whole routing table. Apps may ignore proxy settings, bind sockets differently, use native protocols or hit PAC DIRECT/exclusion rules. Private DNS says nothing about a proxy or a particular library's DNS path. - Result states: Proxy present OBSERVED, null NOT_OBSERVED for the query scope; inaccessible/vanished link UNAVAILABLE or PERMISSION_LIMITED. Private DNS false is NOT_OBSERVED for that link. Changes during repeated reads make configuration observations INCONCLUSIVE. - Interpretation: Observed default HTTP, per-network HTTP/PAC or JVM HTTP proxy configuration in a repeated sample is WARNING; actual request use is unevaluated. Interface/routes and Private DNS remain INFO. Private DNS alone never counts as proxy evidence. No proxy host, URI, DNS name, DNS address, local address or gateway address is retained in the domain report. Interface names and ephemeral handles appear locally but are excluded from export. ### Scan-time network changes - Observable signal: Equality or change in two adjacent complete raw framework samples, with monotonic duration and wall-clock sample start. - Producing subsystem: Independent ConnectivityManager snapshots, which have no transactional multi-query API. - Mechanism: Compare default/bound handles, default ProxyInfo, process-local JVM HTTP proxy values and every selected handle's NetworkCapabilities/LinkProperties and failure state. Retry the entire pair once on differences (at most four complete reads). Raw values are discarded after comparison and reduced to the privacy projection. A changed second pair retains only the last sample and marks its positive and negative network observations INCONCLUSIVE. No contradiction rule exists. - References: [Android network state guide](https://developer.android.com/develop/connectivity/network-ops/reading-network-state), [NetworkCallback](https://developer.android.com/reference/android/net/ConnectivityManager.NetworkCallback); AOSP packages/modules/Connectivity ConnectivityManager and ConnectivityService methods linked above establish separate synchronous Binder reads, not atomic snapshots. - Applicability: All supported APIs. No callback registration, background listener or implicit callback lifecycle is introduced. Binder calls have no application-enforced hard timeout; the count is bounded, not their kernel/service latency. - Visibility limits: Equal adjacent reads cannot exclude ABA transitions, changes immediately afterward or changes in actual packet routing. Timestamp is a sampling window, not a claim of simultaneous values. Package and module probes are separate observations and are never correlated into network inconsistencies. - Result states: Repeated sample OBSERVED consistency with limited scope; persistent change INCONCLUSIVE; individual query failures retain their own states. - Interpretation: No observations from different retries are merged into an alleged contradictory state. ### Framework / JVM HTTP proxy cross-check - Observable signal: Default ProxyInfo and fresh process-local `http.proxyHost` / `http.proxyPort` values, observed inside the same repeated-sampling window. - Producing subsystem: ConnectivityService's default proxy, ActivityThread proxy updates, android.net.Proxy's JVM-property synchronization, and libcore's java.lang.System Properties object. - Mechanism: Reuse the JVM reader extracted from capability/systemproperties; its existing consumer retains the same trim/empty fallback, while networkrisk preserves null versus read failure. Compare static HTTP host (case-insensitive textual equality, without DNS resolution) and numeric port. Both absent or equal endpoints align; different views remain INCONCLUSIVE. A partial/out-of-range JVM pair is INCONCLUSIVE. PAC is explicitly not comparable to a static endpoint. Raw host values participate in adjacent sample equality but are discarded before report projection; only JVM state/port and the typed comparison result survive. - References: [Android System.getProperty](https://developer.android.com/reference/java/lang/System#getProperty(java.lang.String)), [ConnectivityManager.getDefaultProxy](https://developer.android.com/reference/android/net/ConnectivityManager#getDefaultProxy()), [ProxyInfo](https://developer.android.com/reference/android/net/ProxyInfo); AOSP frameworks/base [Android 10 Proxy.setHttpProxySystemProperty](https://android.googlesource.com/platform/frameworks/base/+/android-10.0.0_r1/core/java/android/net/Proxy.java), [Android 15 Proxy.setHttpProxyConfiguration](https://android.googlesource.com/platform/frameworks/base/+/android-15.0.0_r1/core/java/android/net/Proxy.java), [ActivityThread.updateHttpProxy](https://android.googlesource.com/platform/frameworks/base/+/android-15.0.0_r1/core/java/android/app/ActivityThread.java), packages/modules/Connectivity [ConnectivityManager.bindProcessToNetwork](https://android.googlesource.com/platform/packages/modules/Connectivity/+/android-15.0.0_r1/framework/src/android/net/ConnectivityManager.java), and libcore [System.getProperty / setProperty](https://android.googlesource.com/platform/libcore/+/android-15.0.0_r1/ojluni/src/main/java/java/lang/System.java). - Applicability: Project API 29+; JVM property reads are public API 1. Reviewed Android 10 and 15 synchronization paths. No reflective framework call, getprop process, native property probe or traffic request is added. - Visibility limits: Java system properties are a process-local namespace, distinct from Android's Bionic/init property service. The two views are correlated because framework code writes the JVM view; they are not independent trust anchors. Application overrides, asynchronous updates and process binding changes can produce legitimate differences. A custom ProxySelector, per-request overrides, exclusion lists, HTTPS/SOCKS settings and PAC decisions are outside this static HTTP host/port comparison. - Result states: JVM absent NOT_OBSERVED, complete pair OBSERVED, partial/invalid pair INCONCLUSIVE, denied read PERMISSION_LIMITED and read failure UNAVAILABLE. Comparison aligns, differs (INCONCLUSIVE), skips PAC (UNSUPPORTED scope), or lacks comparable sources (INCONCLUSIVE). A changed sample invalidates any apparent agreement. The cross-check row remains INFO because a difference is inconclusive; a complete observed JVM proxy pair independently receives WARNING only when sampling repeats. - Interpretation: Reports agreement or difference between two scoped configuration views; neither agreement nor difference establishes proxy use, a hook, a module or compromise. No default proxy, JVM property or selector is modified by collection. ### Exact client packages and signer identity - Observable signal: Exact catalogue package in the calling user's packageinventory result, installed version code and current signer certificate set. - Producing subsystem: PackageManager application visibility and SigningInfo. - Mechanism: Reuse capability/packageinventory; no label or app-name substring match. Request exact `` in the data manifest. For visible matches, read GET_SIGNING_CERTIFICATES and SHA-256 each current certificate. Signature verification requires the entire current signer set to equal the one pinned release key. Past signing history, unknown keys, missing certificate reads and extra signers never pass. Repackaged, store-specific and future rotated-key builds can remain identity-unverified. - References: [Android package visibility](https://developer.android.com/training/package-visibility), [SigningInfo](https://developer.android.com/reference/android/content/pm/SigningInfo), [PackageManager](https://developer.android.com/reference/android/content/pm/PackageManager); AOSP frameworks/base [AppsFilterImpl](https://android.googlesource.com/platform/frameworks/base/+/android-15.0.0_r1/services/core/java/com/android/server/pm/AppsFilterImpl.java), [ComputerEngine](https://android.googlesource.com/platform/frameworks/base/+/android-15.0.0_r1/services/core/java/com/android/server/pm/ComputerEngine.java); [packageinventory evidence](../../capability/packageinventory/EVIDENCE.md). Upstream artifacts and reproducible signer extraction are recorded below. - Applicability: API 29+, visibility filtering for target/API 30+; typed flags on API 33+. Fused SDK manifest includes the same exact queries. No QUERY_ALL_PACKAGES permission is added by this feature. - Visibility limits: Calling user/profile only; other users, work profiles, disabled profile state and packages hidden from the inventory are outside coverage. Full/restricted/unknown visibility is reported. A package disappearing between inventory and signature query becomes INCONCLUSIVE. Inventory absence is only NOT_OBSERVED, never "uninstalled". - Result states: Exact package hit OBSERVED, package not returned NOT_OBSERVED in inventory scope; inventory failure UNAVAILABLE. Identity separately SIGNATURE_VERIFIED or IDENTITY_UNVERIFIED with signing-read state; permission errors remain PERMISSION_LIMITED. - Interpretation: An observed exact client-package match is WARNING, whether signature verified or identity unverified. A signing-read failure cannot erase package presence; its failure detail remains visible. The header client count warns only for positive hits, not for successful empty inventory. Package-name match, signing-key verification and service activity are distinct claims. Installation cannot establish service activity, active rules or any traffic effect. Pins describe the sampled GitHub release channel, not all stores/forks or every historical version. ### Box4Magisk and Box for Root deployment metadata - Observable signal: Bounded regular-file read of `/data/adb/modules/box4/module.prop` or `/data/adb/modules/box_for_root/module.prop`, matching exact `id` plus a single printable version field. - Producing subsystem: Root manager module deployment layout, Android file access controls and upstream module metadata. - Mechanism: Independent feature-owned collectors share only bounded metadata reading. `Os.open` uses O_NOFOLLOW, O_NONBLOCK and O_CLOEXEC; fstat must be regular; read limit 4096 bytes. Preserve errno; EACCES/EPERM becomes PERMISSION_LIMITED; ENOENT/ENOTDIR only means this exact path was not observed. No shell, symlink following at the final component, module configuration, subscriptions or process enumeration. - References: [Android Os](https://developer.android.com/reference/android/system/Os), [Android SELinux](https://source.android.com/docs/security/features/selinux), AOSP system/sepolicy [Android 15 file_contexts](https://android.googlesource.com/platform/system/sepolicy/+/android-15.0.0_r1/private/file_contexts) (`/data/adb` is adb_data_file), [libcore Linux JNI](https://android.googlesource.com/platform/libcore/+/android-15.0.0_r1/luni/src/main/native/libcore_io_Linux.cpp), [Bionic open](https://android.googlesource.com/platform/bionic/+/android-15.0.0_r1/libc/bionic/open.cpp), [ACK android15-6.6 namei](https://android.googlesource.com/kernel/common/+/refs/heads/android15-6.6/fs/namei.c); upstream deployment metadata and scripts in the matrix below. - Applicability: Known module IDs/paths at the pinned upstream revisions only. Android sandbox policy, root-manager overlay mounts and OEM policy determine actual visibility. ACK source explains access-error propagation; no tested-device kernel revision or universal visibility guarantee is claimed. - Visibility limits: Commonly inaccessible under ordinary permissions; inaccessible parent directories conceal both existing and missing children. Different install roots, renamed modules, overlay state and modified metadata escape or spoof these probes. No privileged directory listing, firewall rules, process state or logs are available. No cross-feature dependency on mount detection is introduced. - Result states: Exact readable metadata OBSERVED deployment trace; denied PERMISSION_LIMITED; path absent NOT_OBSERVED within exact-path scope; malformed/duplicate/mismatched metadata INCONCLUSIVE; I/O or budget failure UNAVAILABLE. Service response and traffic effect separately UNAVAILABLE because not probed. - Interpretation: WARNING for an exact readable deployment trace only, with unauthenticated metadata explicitly stated. Denied, missing, malformed or unreadable metadata never receives warning. The proxy core and actual REDIRECT/TPROXY/TUN mechanism remain unknown. Shared `/data/adb/box` paths, port numbers and TUN names are deliberately not attributed to either project. ## Severity policy `domain` owns report aggregation and the shared VPN observation rule. Presentation raises only rows describing observed VPN/proxy configuration, exact client packages or valid deployment metadata; successful queries, visibility, scan consistency and privacy facts stay INFO. Network warnings require a REPEATED window. CHANGED windows retain INCONCLUSIVE network rows and cannot warn from their last snapshot; independent package/module warnings still survive. Local configuration warnings neither authenticate a service nor establish traffic routing. Source differences, ordinary network binding, routes, Private DNS, denied access and disabled active tests remain informational. The references above establish observable semantics; warning is a review policy rather than a platform security guarantee. Collection, retry budgets and privacy projection are unchanged. ## Client release provenance Reviewed on 2026-10-21. APKs were downloaded from each upstream GitHub release below into temporary storage. Android build-tools 37.0.0 `apksigner verify --print-certs` succeeded for all seven; `aapt dump badging` supplied the exact package/version code. Pins are certificate SHA-256, not APK hashes. No APK, private key or upstream code is included in the project. | Upstream release | Package / version code | APK | APK SHA-256 | Signer certificate SHA-256 | |---|---|---|---|---| | [cfa v2.11.35](https://github.com/MetaCubeX/ClashMetaForAndroid/releases/tag/v2.11.35) | `com.github.metacubex.clash.meta` / `211035` | `cmfa-2.11.35-meta-arm64-v8a-release.apk` | `af7f05d8801798a8e75de682e5f67070138becb8623b7a341c3e5cd042a3753d` | `5f5571af767fe0f611292aa088b445a05f725fb8262fb80a13b69e4d809ae1f1` | | [surfboard mobile-2.35.2](https://github.com/getsurfboard/surfboard/releases/tag/mobile-2.35.2) | `com.getsurfboard` / `292` | `mobile-arm64-v8a-release.apk` | `88e9f2260724afbfbcca4194ad1f95b70dace57a38af5588c818a7df7f471fbe` | `62c9bb5f2d1804c61c1026a3c98e45c697a076542ec784b736438eb8bba221d4` | | [flclash v0.9.1](https://github.com/chen08209/FlClash/releases/tag/v0.9.1) | `com.follow.clash` / `2026103702` | `FlClash-0.9.1-android-arm64-v8a.apk` | `7a8aeedbe3c376b724a1f76521f5322df1da4bb8d8e09833a2fa804b2913ecc2` | `2859e236b6c1c6073773752678c52e8e902a9503ae9beed6729ca999c376841c` | | [sing-box v1.14.3](https://github.com/SagerNet/sing-box/releases/tag/v1.14.3) | `io.nekohasekai.sfa` / `743` | `SFA-1.14.3-arm64-v8a.apk` | `bde02cb70bc15a98bea14309f97cb7026ec61abda0694378873fd6cead2685fd` | `32250a4b5f3a6733df57a3b9ec16c38d2c7fc5f2f693a9636f8f7b3be3549641` | | [v2rayng 2.3.11](https://github.com/2dust/v2rayNG/releases/tag/2.3.11) | `com.v2ray.ang` / `4000751` | `v2rayNG_2.3.11_arm64-v8a.apk` | `b9aed943bdace5531b2268eb57479db769fffa5463adecb1559c8c62d5864b6f` | `b7dc883e7678d6c618569e48a1c8c267a134a75f8bcb763510c8bffb3b90b077` | | [nekobox 1.4.2](https://github.com/MatsuriDayo/NekoBoxForAndroid/releases/tag/1.4.2) | `moe.nb4a` / `230` | `NekoBox-1.4.2-arm64-v8a.apk` | `d01e76feeb05e4701f3ae382cb71c0a3ebb77039005e5893f8817e1051f8ac28` | `35762758ce86a6ec297d9ccac689469bc43b9fed8ae1b27f100a86bbac00a055` | | [hiddify v4.1.1](https://github.com/hiddify/hiddify-app/releases/tag/v4.1.1) | `app.hiddify.com` / `40101` | `Hiddify-Android-arm64.apk` | `5f0d16867b70405d312b9435c56604b393b51ec3b2b6a4b9e748182bc2e59d1f` | `454bf1f622d0fd5ebf93d4ce51fe5d4a93083b710bf2a01480cd570254c73d92` | Reproduce for the named asset (choose the row's repository/tag/asset): ```sh gh release download TAG --repo OWNER/REPO --pattern ASSET --dir /tmp/networkrisk-release $ANDROID_SDK_ROOT/build-tools/37.0.0/apksigner verify --print-certs /tmp/networkrisk-release/ASSET $ANDROID_SDK_ROOT/build-tools/37.0.0/aapt dump badging /tmp/networkrisk-release/ASSET shasum -a 256 /tmp/networkrisk-release/ASSET ``` Source cross-checks (immutable revisions): - [Clash Meta build variants](https://github.com/MetaCubeX/ClashMetaForAndroid/blob/3cc102aab3f251ef460a3b6e2835b6c1eb581e73/build.gradle.kts): `.meta`, `.alpha`, and suffix-removal/custom application ID options. Only the sampled `.meta` release has a pin; `.alpha` and base ID matches are identity-unverified. Arbitrarily renamed builds are outside the catalogue. - [Surfboard upstream](https://github.com/getsurfboard/surfboard/tree/4ad978c1fad550f96d6ec2c24ef439066e71eaeb) distributes binaries, not the client source; package and pin come from the verified release artifact. Google Play signing is not separately verified here. - [FlClash Android build](https://github.com/chen08209/FlClash/blob/8d4f9744948751f1273fe871e1d05276fac09b0e/android/app/build.gradle.kts): release ID `com.follow.clash`; `.dev` is excluded from this release catalogue. - [sing-box Android build](https://github.com/SagerNet/sing-box-for-android/blob/bc73504fcb858400a939140ad785ed92f4c9f429/app/build.gradle.kts): `io.nekohasekai.sfa`; Android release APKs are published in SagerNet/sing-box, not the Android source repository. Store/re-signed variants require their own provenance. - [v2rayNG Android build](https://github.com/2dust/v2rayNG/blob/118cf5bc7d0b290947b0827f5ad03e73018d8e5d/V2rayNG/app/build.gradle.kts): `com.v2ray.ang` and `.fdroid` flavor. The fdroid flavor is listed without a pin; do not assume the F-Droid store key equals the sampled GitHub key. - [NekoBox build metadata](https://github.com/MatsuriDayo/NekoBoxForAndroid/tree/5768494d8ae3c74a057bb6d46c0f8dc071b0d821): released package `moe.nb4a`, confirmed from APK. Similar store names are not identity evidence. - [Hiddify Android build](https://github.com/hiddify/hiddify-app/blob/f26aadb351fb23c222e06fcf4f5350d0ba596bb9/android/app/build.gradle): `app.hiddify.com`; internal namespace is not the installed application ID. ## Deployment / core / mechanism research matrix These are upstream implementation findings, **not ordinary-app observations or successful device tests**. No additional modules are registered without a repository and revision. - **Box4Magisk** deployment: [CHIZI-0618/box4magisk at 6ff4307060d43dc7be0f1ffc599d9f78c951c18a](https://github.com/CHIZI-0618/box4magisk/tree/6ff4307060d43dc7be0f1ffc599d9f78c951c18a), module.prop `id=box4`, development metadata `v5.2pre`; latest published release inspected separately is [v5.1](https://github.com/CHIZI-0618/box4magisk/releases/tag/v5.1). Reviewed README, module.prop, `box/scripts/box.config`, `box/scripts/box.tproxy` and `box/scripts/start.sh`. `box.tproxy` deploys AndroidTProxyShell mechanisms; the pinned bundled script is the reviewed implementation, not an unpinned external HEAD. - **Box for Root** deployment: [taamarin/box_for_magisk at 75d7150481af54b652f0cd89b462fd56ba2dc16f](https://github.com/taamarin/box_for_magisk/tree/75d7150481af54b652f0cd89b462fd56ba2dc16f), module.prop `id=box_for_root`, [v1.10.2](https://github.com/taamarin/box_for_magisk/releases/tag/v1.10.2). Reviewed module.prop, `box/settings.ini`, `box/scripts/box.service` and `box/scripts/box.iptables`. | Deployment | Mechanism | TCP / UDP | IPv4 / IPv6 | Per-app and core constraints | |---|---|---|---|---| | Box4Magisk | REDIRECT | TCP documented; DNS UDP redirect is separately configurable. Script's UDP hooks do not establish generic UDP proxy support. | IPv4; IPv6 optional, script checks kernel IPv6 NAT/REDIRECT support. | APP_PROXY_ENABLE with userID:package allow/bypass lists; ports configurable. | | Box4Magisk | TPROXY | TCP + UDP, each independently configurable. | IPv4; PROXY_IPV6 optional/default off. | Auto mode can fall back according to support checks. Owner/mangle/mark rules require privileged verification. | | Box4Magisk | TUN | Core-controlled TCP + UDP. | Core configuration determines IPv4/IPv6. | PROXY_MODE outside 0–2 starts core without transparent rules; upstream lists sing-box/clash/mihomo/xray support. | | Box4Magisk | Hybrid | REDIRECT TCP + TUN UDP documented. | Depends on both core TUN config and firewall support. | Not inferred from core name, an open port or a tun interface. | | Box for Root | redirect | TCP redirect, generic UDP direct per settings; DNS handling separate. | IPv4; ipv6 flag defaults false. | package.list.cfg blacklist/whitelist and UID/GID rules in scripts; ports configurable. | | Box for Root | tproxy | TCP + UDP. | IPv4; IPv6 conditional on settings/kernel. | Rules vary with core/user/group and interfaces. | | Box for Root | tun | TCP + UDP with core auto-route. | Core config controls address families. | Upstream script adjusts unsupported core/mode combinations; no universal result. | | Box for Root | mixed / enhance | mixed: redirect TCP + TUN UDP; enhance: redirect TCP + TPROXY UDP. | Separate firewall/core IPv6 constraints. | Must inspect actual effective rules and core logs per device. | Both deployments can launch several cores (mihomo/clash, sing-box, v2ray/v2fly, xray, hysteria as listed by each revision). These names identify software engines, not installation projects. Core version and active mechanism cannot be established by the deployment probes. Reading `/data/adb/box` configs or process directories is deliberately excluded; ordinary permission failures are shown as coverage limitations. ## Active-check research and privacy boundary Active probes remain disabled and unimplemented in this PR: zero endpoints, zero requests, zero payload bytes, no PAC download, no local port scan; timeout is not applicable. A future opt-in needs explicit UI/SDK configuration of endpoint, protocol, destination literal/domain, exact bytes, per-request/total timeout, request cap and byte budget before any request is sent. A positive control plus device ground truth is required before interpreting a traffic difference. Research candidates only: | Candidate | Protocol and sample record required | Counterexamples / interpretation | |---|---|---| | DNS consistency | Exact DNS/DoT/DoH protocol, resolver address/domain, query type/name, A/AAAA response and timestamp; respect active Private DNS. | Split DNS, caching, DNS64/NAT64, enterprise policy, portals and ad filtering can differ legitimately. | | Egress consistency | Explicit HTTPS endpoint, controlled response/body, chosen Network/socket path, destination family and timestamp. | NAT, carrier gateways, enterprise gateways, load balancing and dual-stack exits are not module evidence. | | Local protocol response | User-selected loopback address/port and minimal specified HTTP/SOCKS handshake with strict bounds; no credential guessing or proxy CONNECT to third parties. | Open TCP alone, protocol response, authentication refusal, connection refusal, timeout and parse failure must remain distinct. Ports can change and control APIs may be disabled; no module attribution follows. | No endpoint is chosen implicitly. A service response would establish only a responding service. A specific flow's effect requires a controlled test tied to its network, protocol, address family and time plus rules/logs; it cannot be inferred from a module path or package. Shared mount evidence, if later correlated, must enter at a composition boundary through a capability rather than a feature dependency. ## Validation and remaining acceptance work Severity-policy regression validation on 2026-10-24: 25 domain/presentation JVM tests passed. The full build passed 1706 JVM tests, `:app:assembleDebug`, `:app:lintDebug`, `:feature:networkrisk:data:assembleDebugAndroidTest`, `:sdk:aar:publish` and `:sdk:aar:verifySdkAar`, plus `./gradlew -p samples/sdk-consumer assembleDebug`, using the repository-pinned uihelper revision `32988d6539ec3bb2dadefa8a24a685616bec0439`. The seven repository guards passed. The severity policy has not been revalidated on a physical device; the earlier emulator results below establish collection coverage rather than validation of the new warning policy. Automated tests cover signer-set exactness, retry/budget behavior, malformed deployment metadata, scoped VPN/proxy warning semantics, informational Private DNS and ordinary network context, disconnected/blocked ambiguity, user/profile visibility, changed samples, privacy projection and shared App/SDK export verdict. Passive evidence deliberately cannot distinguish installed-only, stopped service, app-excluded and rule-direct states; tests ensure those states are not invented. Twenty Network Risk JVM tests passed (6 domain, 6 data, 8 presentation), alongside the shared JVM reader and System Properties regression suites. Full `unitTest`, `:app:assembleDebug`, `buildHealth`, `:sdk:aar:bundle`, `:sdk:aar:verifySdkAar`, and data/UI `lintDebug` passed in an isolated validation copy using the repository-pinned uihelper revision `18bed84a78dd811889ea1813d6954a988e44d688`. The existing local uihelper checkout differed from that revision and was left unchanged. All seven repository guards passed, including text-protocol validation after moving ADB property interpretation into typed domain accessors. The Zygisk FD path buffer is sized for the full directory entry to satisfy the host GCC format-truncation check without truncating a queried path. Ordinary-UID instrumentation (`NetworkRiskRuntimeTest`, three tests per run) passed on read-only arm64 emulator instances: | Environment | Actual checks | Result | |---|---|---| | API 29 / Android 10; patch 2019-09-05; kernel 4.14.175-gd7103c943974-dirty | Public framework queries; module metadata absent/permission limited; full pre-filtering package visibility; all seven sampled release APKs installed with `stopped=true`, `notLaunched=true`; exact package and signer verification; no configured proxy and manually configured `127.0.0.1:8888` HTTP proxy in separate runs. No client service was started. | Passed | | API 36 / Android 16; patch 2025-07-05; kernel 6.6.66-android15-8-gd0c43a640eab-ab13812146-4k | Public framework queries; no configured default proxy; restricted package visibility for target 37 without QUERY_ALL_PACKAGES; module metadata absent/permission limited. Client APK fixtures were not installed in this instance. | Passed | Reproduce the baseline instrumentation with `./gradlew :feature:networkrisk:data:connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.expectedProxy=absent`. Install the named upstream APKs without launching them, then supply `-Pandroid.testInstrumentationRunnerArguments.expectedClients=com.github.metacubex.clash.meta,com.getsurfboard,com.follow.clash,io.nekohasekai.sfa,com.v2ray.ang,moe.nb4a,app.hiddify.com`. The configured-proxy run uses `expectedProxy=present` instead. The test asserts an ordinary app UID and the applicable full/restricted inventory scope. The manually configured endpoint is not contacted by the detector. The framework/JVM cross-check also passed four ordinary-UID instrumentation tests on API 36, including a temporary process-local HTTP proxy override. The override produced an INCONCLUSIVE source difference while the framework proxy remained unchanged; the test restored the properties and made no network requests. ### Controlled VPN and offline coverage The test APK includes an opt-in, test-only `VpnService` fixture. Its owner keeps and closes a local TUN descriptor through an explicit bound control connection; no socket, packet forwarding, remote server or DNS query is implemented. The fixture manifest and its INTERNET permission are confined to androidTest. The production collector still changes no network binding and sends no requests. The fixture follows the public [VpnService](https://developer.android.com/reference/android/net/VpnService) contract and the release-matched Android 15 [VpnService.Builder](https://android.googlesource.com/platform/frameworks/base/+/android-15.0.0_r1/core/java/android/net/VpnService.java) (`addAllowedApplication`, `allowBypass`, `setHttpProxy`, `establish`) and [Vpn](https://android.googlesource.com/platform/frameworks/base/+/android-15.0.0_r1/services/core/java/com/android/server/connectivity/Vpn.java) implementations (authorization, per-UID ranges and descriptor lifecycle). PAC is not supported over VpnService; its additional runtime test constructs a ProxyInfo and checks the privacy projection/comparison without installing a PAC configuration or fetching a script. On 2026-10-22, seven instrumentation tests passed per release on separate read-only arm64 API 29 and API 36 emulator instances with the versions in the table above. They cover the four baseline probes, constructed PAC projection, VPN establishment, caller exclusion using an allowlist, VPN replacement/stop, and explicit process binding to the underlay while the calling UID retains a VPN default. The latter verifies that the VPN's static HTTP proxy yields to the process-bound underlay's absent proxy and that the JVM/framework views align. These are operating-system VPN fixtures, not enterprise VPN, third-party client or transparent-proxy module acceptance. A separate API 29 offline run disabled Wi-Fi and mobile data in the test harness, verified that ConnectivityService reported no active default network, and passed the ordinary-UID framework test with `expectedNetwork=absent` and `expectedProxy=absent`. The sample retained NOT_OBSERVED and INFO/SUPPORT. Connectivity was restored before the connected suite. Shell setup privileges are not adopted by the test application; the framework test verifies an application UID. Reproduce only on a dedicated emulator, after installing the test APK: ```sh adb -s SERIAL shell appops set com.eltavine.duckdetector.features.networkrisk.data.test ACTIVATE_VPN allow adb -s SERIAL shell am instrument -w -r -e runVpnFixture true -e expectedNetwork present \ com.eltavine.duckdetector.features.networkrisk.data.test/androidx.test.runner.AndroidJUnitRunner ``` Without `runVpnFixture=true`, both VPN tests skip and do not establish a VPN. The test runner must first wait for a connected underlay and an absent global proxy. For the offline check, disable Wi-Fi/mobile data on the dedicated instance, wait for no active default network, and select `NetworkRiskRuntimeTest#frameworkQueriesRemainScopedAndUnprivileged` with `expectedNetwork=absent` and `expectedProxy=absent` instead. Restore the instance's connectivity after testing. Twenty-four Network Risk JVM tests passed (9 domain, 6 data, 9 presentation), including error aggregation from root/nested network queries, JVM properties, inventory, signers and deployment metadata. Coverage limitations remain non-errors. Full unitTest, application debug build/lint, SDK publication/verification and the separate SDK consumer build passed with the pinned uihelper revision; the seven repository guards passed. These build results do not replace device-level App/SDK parity testing. Broader device acceptance is **pending**. The following matrix must be executed using an ordinary-permission app, with rules/module logs inspected separately for ground truth. Source review, unit fixtures and emulator smoke tests do not substitute for those scenarios. | Scenarios required | Ground truth and expected ordinary-app result | Status | |---|---|---| | Each catalogued client: installed only, stopped, enabled, caller excluded, direct rule | Record release/channel/key, enabled service and per-app rules; installed evidence must stay independent of traffic state. | Installed/not-launched verified on API 29; remaining states pending | | Box4Magisk and Box for Root: REDIRECT, TPROXY, TUN, hybrid; changed ports; disabled control API | Record deployment revision, core/version, effective rules and logs; metadata scope remains independent of service/traffic. | Pending rooted test device, ordinary app permissions | | Both modules: TCP/UDP and IPv4/IPv6, allow/bypass app lists | Compare individual controlled flows with effective rules and logs; passive implementation does not assert flow routing. | Pending device test | | Enterprise VPN, local-filter VPN, manual HTTP proxy, PAC and Private DNS alone | Repeated VPN/proxy observations warn for review; Private DNS stays INFO. No module/running-service assertion; PAC configuration is not per-request use. | Manual HTTP configuration verified on API 29; remaining scenarios pending | | Offline, blocked ACCESS_NETWORK_STATE, network switching and missing/vanished handles | Preserve NOT_OBSERVED/PERMISSION_LIMITED/UNAVAILABLE/INCONCLUSIVE and sample scope; never a clean security claim. | API 29 offline and API 29/36 controlled VPN transitions passed; permission-restricted and broader device switching cases pending | | Restricted visibility, other user/work profile, unknown/re-signed key | No globally uninstalled claim; identity unverified unless exact pinned current signer set. | Restricted visibility verified on API 36; other-profile/re-signed scenarios pending | | App and SDK | Same detector, report, mapper, status and minimized export; host manifest/UID may legitimately yield different observations. | Build/unit verification; pending device parity test | This PR should remain draft until required device acceptance is recorded. Active traffic consistency tests need a separate explicitly budgeted implementation and its own protocol validation before release.