Restore per-domain Open by default link control on Android 12+ OEM ROMs.
Android utility (dev.miles.fliplink) for OEM ROMs (such as Honor MagicOS) where system settings hide per-domain toggles and leave web links disabled by default. Built as a flat, high-density system instrument: no background services, no root (su), and no Share-sheet or browser-interception workarounds—just direct control over Android's native pm domain-verification layer.
![]() App List (Light) |
![]() App List (Dark) |
![]() Conflict Takeover |
![]() Drift Review |
On several Android 12+ OEM ROMs, the system Open by default screen only exposes the master Open supported links in this app switch while hiding the per-domain host list. FlipLink brings that control back and handles two real-world edge cases:
- Non-
autoVerify& patched apps: Apps installed outside Google Play or patched with a different signing key cannot pass Digital Asset Links verification. Android leaves their domains disabled until explicitly enabled viauser-selection, and averifiedstock app will still win every link click unless its conflicting domains are demoted. - System update drift: OEM updates and app reinstalls can silently reset domain selections or re-verify a demoted stock app. FlipLink snapshots your applied choices locally and flags exact deltas for one-tap re-application.
- Searchable App List: Filters installed web-link apps by app name, package name, or declared domain host (
All,Needs attention,Conflicts,Configured, plus an independentSystemtoggle). - Per-Domain Control: Master link-handling switch,
Enable all/Disable all, and per-host toggles backed by livepm get-app-links --user 0re-reads. - One-Tap Conflict Takeover: Detects overlapping domain claims across installed apps, demotes competing owners per-domain (
STATE_DENIED+user-selection false) without touching their master switch or unrelated domains, promotes your chosen app, and offersUndo. - Read-Only &
adb shellFallback: When Shizuku is not running, FlipLink still discovers declaredhttp/httpshosts (Declaredstatus) and generates sanitized, copyableadb shell pm ...commands. - Drift Detection & Config Backup: Tracks applied selections and demoted competitors in
fliplink_snapshot_v1.json, surfaces a compact drift review sheet when OS state diverges, and supports JSON export/import via Android's Storage Access Framework. - Theming:
System,Light,Dark, andAMOLED Black(#000000) surfaces with opt-in Material You Dynamic Color.
flowchart LR
UI["Compose UI<br/>(AppList · AppDetail · Sheets)"] --> Repo["AppLinksRepository<br/>(Mutex + StateFlow)"]
Repo -->|"Shizuku Ready"| Bridge["ShizukuBridge<br/>(IShellService AIDL)"]
Bridge -->|"ProcessBuilder(argv)<br/>15s timeout · ≤40 hosts"| PM["pm CLI (--user 0)"]
Repo -->|"Read-only fallback"| PMDisc["PackageDiscovery<br/>(PackageManager)"]
Repo <-->|"Atomic JSON + Diff"| Snap["SnapshotStore & DriftDetector"]
| Pill | Meaning |
|---|---|
| Verified | OS cryptographic Digital Asset Links verification (STATE_SUCCESS / pre-verified) |
| Approved | Explicitly approved via pm set-app-links (STATE_APPROVED) |
| Selected | User-selected host (pm set-app-links-user-selection ... true) |
| Disabled | Host is declared but inactive / unselected |
| Denied | Explicitly denied (STATE_DENIED)—used when demoting a competing app |
| Declared | Read-only mode (Shizuku unavailable); host is declared in the app's manifest |
- OS: Android 12+ (
minSdk = 31,targetSdk = 35) - Privilege: Shizuku for in-app mutations (optional; read-only inspection and copyable
adbcommands work without Shizuku) - Scope: Single-user (
--user 0) only. Root (su), background install-watching services, multi-user/clone profiles, and Share-sheet interception are intentionally out of scope.
Download the signed release APK (FlipLink-v*.apk) from GitHub Releases and install it on your device.
If Shizuku is installed and running, grant FlipLink permission when prompted (or from the top-bar status pill) to enable in-app toggling.
Requires JDK 21 and Android SDK (compileSdk = 36, build-tools;36.0.0).
# Run JVM unit tests and build debug APK
./gradlew testDebugUnitTest assembleDebug
# Build R8-minified release APK (falls back to debug signing unless signing.properties is provided)
./gradlew testDebugUnitTest assembleReleaseApache-2.0 — see LICENSE.



