Carry your browsing across engines.
Move bookmarks, history, cookies and open tabs between Android browsers, or copy a full profile between two browsers that use the same engine—without cloud sync or manual exports.
Browser Relay is an open-source tool for rooted Android phones. It copies and patches browser data files directly, so you can move from Firefox to Iceraven, Chrome to Brave, or even Chrome to Firefox without losing your bookmarks, history, website sessions or open tabs.
Important
Root access is required (Magisk, KernelSU, or SuperSU) to access protected browser data directories.
- 🚀 One-Tap Migration: Enter source and target package names, press start.
- 🔀 Same-Engine Transfers: Full profile migration between two Chromium browsers or two Gecko browsers.
↔️ Cross-Engine Transfers: Chromium → Gecko and Gecko → Chromium for bookmarks, history and cookies, converted on-device without needing an externalsqlite3binary.- 🗂️ Open-Tab Transfer: Reads Chromium SNSS sessions, Gecko
sessionstore.jsonlz4/MozLz4 andtabs.sqlite, then opens the source URLs as new tabs in the target browser. - 🧩 Extension Bridge: Inventories Firefox add-ons, finds a Chrome Web
Store match, downloads the CRX, converts
storage.localdata, and hands the store page to the user for a confirmed install. - 🛡️ Shizuku / ADB-aware: Optional Shizuku backend. A Shizuku server started with root (UID 0) can run the same privileged migration; the normal ADB backend (UID 2000) is detected and explained instead of silently failing.
- 🔧 Smart Patching: Updates internal paths and package names in SQLite
databases (when
sqlite3is available) and JSON configuration files. - 🛡️ Safety First: Automatic target backups are created before any change, and the rollback action restores them.
- 🧹 Built-in Cleanup: One-tap button to delete old migration backups.
- 🌍 Wide Compatibility: Supports both Gecko (Firefox-based) and Chromium (Chrome-based) engines, including de-Googled Chromium builds such as Bare Browser.
| Data Type | Same engine | Chromium ↔ Gecko | Notes |
|---|---|---|---|
| Bookmarks | ✅ | ✅ | Folder structure is preserved. |
| History | ✅ | ✅ | URL, title, visit count and visit times. |
| Passwords | ✅* | ❌ | Engine-specific encryption; not converted cross-engine. |
| Cookies | ✅ | ✅ | Android stores both engines' cookies as plaintext; rows are merged so website sessions survive. |
| Extensions | ✅* | Inventory + Chrome Web Store match + CRX download + storage.local conversion; the user taps Install. |
|
| Site Permissions | ✅ | ❌ | Same-engine only. |
| Tabs | ✅ | ✅ | Same-engine session files are copied; cross-engine URLs are opened in the target (all unique HTTP(S) tabs). |
* Same-engine password/extension migration depends on the target app using compatible encryption and extension IDs. Chromium passwords are tied to the source app's Android Keystore key, so they often cannot be decrypted by a different browser package.
- Root Access: Essential for reading/writing
/data/data/. A Shizuku server started with root (UID 0) also works. - Both Browsers Installed: Open each browser at least once before migrating so it creates its profile.
- Storage: Free space for temporary copies and backups (roughly the size of the target profile).
- Open the app and grant root permission when prompted.
- Source: Enter the package name of the browser you are moving from
(for example
com.chrome.betaororg.mozilla.firefox_beta). - Target: Enter the package name of the browser you are moving to
(for example
org.barebrowserorcom.chrome.beta). - Start: Tap START MIGRATION and watch the log.
- Verify: Open the target browser and check its bookmarks/history and new tabs. The target is opened with the source tab URLs after data conversion.
- Extensions: Open the generated
extension_report_*.htmlfrom/data/local/tmp/browser_relay/. It contains target-store search links; Android Chromium builds often cannot install arbitrary extensions. - Cleanup: Use DELETE BACKUPS when you no longer need the safety copies.
If root is unavailable, Shizuku users can tap SHIZUKU ACCESS. Shizuku must
be running with its root backend for data access. Shizuku started through ADB
runs as UID 2000 and cannot read /data/user/0/<package>; the app reports that
limitation and keeps migration disabled.
| Browser | Package |
|---|---|
| Chrome Beta | com.chrome.beta |
| Firefox Beta | org.mozilla.firefox_beta |
| Brave | com.brave.browser |
| Bare Browser (Chromium) | org.barebrowser |
| Iceraven | io.github.forkmaintainers.iceraven |
Cross-engine migrations use the app's own SQLite/JSON support instead of
shelling out to sqlite3, which is missing on many Android systems.
- Chromium → Firefox: reads
HistoryandBookmarks, then inserts into Firefox'splaces.sqlite(places, visits, bookmark roots/folders). - Firefox → Chromium: reads
places.sqlite, then merges into Chromium'sHistoryandBookmarksJSON. - Only
http,https, andftpURLs are migrated. - Cookies are moved in both directions. Android Chromium has no cookie crypto
delegate and Gecko stores plaintext, so the app merges the two
cookiesdatabases instead of copying ciphertext. Firefox schema 16+ millisecond expiry values, SameSite values and session cookies are converted explicitly. Chrome's own Google account is managed by AndroidAccountManagerand is not copied; Google website sessions are preserved by the cookie merge. - Firefox Account/Sync state: Release and Beta store the account in plaintext
shared_prefs/fxaAppState.xml, which is copied to the target together with thepref_key_fxa_signed_inflag. Nightly (org.mozilla.fenix) and debug builds keep the live state in Keystore-bound secure storage. Trestle detects that state and unlocks it in place: a small helper runs from Trestle's APK under root, temporarily switches to Nightly's Linux UID, decryptsfxaStatewith Nightly's own AndroidKeyStore key, and writes only the resulting plaintext account XML to the target. The key itself is never exported or moved, and tokens are not written to logs. If a device blocks the helper, the app reports the bridge reason and keeps the target account untouched. - Same-engine open tabs are restored from the engine session files. Fenix open
tabs use
mozilla_components_session_storage_gecko.json(with an AtomicFile.bakfallback);tabs.sqlitealone is not the live session. Cross-engine tabs are restored as URLs, so tab groups, pinned state and per-tab back/forward history are not preserved. Every unique HTTP(S) tab is opened. - Extensions are not transplanted as binaries. The Firefox → Chromium bridge
inventories source add-ons, finds a Chrome Web Store match, downloads the CRX,
converts Firefox
storage.localdata to Chromium LevelDB, and opens the store page for the user to confirm installation. A JSON/HTML report and a data archive are exported to/data/local/tmp/browser_relay/. - After a cross-engine transfer, launch the target browser once more so it can finish rebuilding its caches/favicons.
- Local Only: Browser data stays on the device. No analytics and no cloud upload. Internet is used only when the user runs the Firefox → Chromium extension bridge (Chrome Web Store search and CRX download).
- Input Validation: Strict regex filtering on package names prevents shell injection.
- Controlled Execution: Scripts run under
/data/local/tmpand are removed with their backups when you clear them. - SELinux Aware: File contexts are restored with
restoreconwhen it is available.
- Cross-engine scope: Bookmarks, history, cookies and open-tab URLs. Passwords and extension binaries remain engine-specific. The extension bridge installs a matched CRX only after the user confirms it in the store UI.
- Shizuku/ADB: Shizuku's ADB backend is UID 2000 and cannot read app-private
data. Only a root-started Shizuku (UID 0) or
sucan perform the migration. - Chromium passwords: Android Keystore encryption binds them to the source app; moving to a different package may make them undecryptable.
- Missing optional files: A fresh Chrome profile may not have
Bookmarks,Login Data, or extension folders. These are reported as skipped, not as a failed migration. sqlite3missing: Same-engine data is still copied; only the optional package-path rewriting inside SQLite databases is skipped. Cross-engine conversion does not depend onsqlite3.- Tabs: Cross-engine tabs are opened via intents, so tab grouping, pinned
tabs and history are not preserved. Non-HTTP(S) tabs (for example
about:blank) and duplicate URLs are skipped; all other tabs are opened. - Google account: Chrome's signed-in Google account is part of Android
AccountManager; copying a Chrome profile cannot move it. Website Google logins are preserved through cookies. - Extensions: No silent cross-engine install. Store matching is name-based; most Android Chromium browsers do not support arbitrary extensions, and Bare Browser is the recommended target.
- Firefox Account: Release/Beta account state is copied. Nightly/debug secure state is UID-bound; Trestle decrypts it under Nightly's UID so it can normally be moved without another sign-in. Some hardened root/SELinux setups may block the helper, in which case one sign-in is still required.
git clone https://github.com/omersusin/browser-relay.git
cd browser-relay
./gradlew assembleReleaseDeveloped with ❤️ for the Android community.