Skip to content

Ark 1.8.0

Choose a tag to compare

@github-actions github-actions released this 05 Dec 08:40
· 10 commits to main since this release

Ark 1.8.0 — signed arm64 APK.

Install: download ark-1.8.0-arm64.apk below. This fork is signed with its own key, so uninstall the official Ark first if it is installed (that removes its data — back up what you need).

This build includes Firefox Sync, Browse for me, Spaces, the Theme studio, read-aloud in reading mode, and resumable downloads. The Space icon uses your phone's own emoji keyboard, and the Browse for me pill spans the full width.

This build includes a complete Firefox Sync client and four new features on top: Browse for me, Spaces, a Theme studio, and read aloud in reading mode. Downloads now survive a restart, and the app has a performance and APK-size pass.

New in this revision

Downloads that survive

  • Interrupted downloads are persisted and come back as paused rows after Android kills Ark or the user closes it. Resume continues from the bytes already on disk with an HTTP Range request; if the server ignores Range, the file is cleanly restarted.
  • Failed downloads are persisted too. The Failed section survives a restart; Retry continues the partial file instead of starting over, and Remove deletes the partial file (and its pending MediaStore row).
  • Files that had already finished writing before the process died are published as completed downloads instead of being downloaded again.
  • Private downloads stay memory-only: they are never persisted, listed after a restart, or shown in a notification after completion.
  • Progress/state is flushed every ~1.5 s while downloading, on pause, on failure, and when Ark goes to the background, so the resume point is never far behind.

Listen (TTS reader)

  • Reading mode has a Listen button. The article's text is sent to Android TextToSpeech in sentence-sized chunks.
  • Playback uses the existing Media MediaSession + foreground service: lock-screen/notification play-pause, previous/next sentence, progress, Bluetooth headset buttons and Android Auto/watches all work.
  • Pauses for calls and other audio through the existing audio-focus handling, resumes afterwards, and stops when the reader is closed, the tab navigates, or the tab is closed.
  • The in-page Listen button changes to Stop while speaking, and back when it ends.
  • No TTS engine or voice installed → a short snackbar instead of a silent failure.

Browse for me, Arc-style

  • A Browse for me pill now sits above the suggestions and spans the full width, so it reads as one clear action instead of a small floating chip.
  • Same behaviour as before: appears for a typed question, hides in private mode, comes back when private is turned off, and never appears for a URL.
  • The existing flow is unchanged: search → read the top results in the background → one cited answer with numbered sources.

Faster and smaller

  • Application Services (Firefox Sync) initialises off the main thread, so having Sync enabled no longer adds a startup pause.
  • HTTP/3 (QUIC) with 0-RTT is enabled, and every open/new tab now starts DNS/TCP/TLS while the tab is being created (not just while typing in the search sheet).
  • Stale-download notification cleanup no longer loops on the main thread.
  • Release APK: locale filtering (AndroidX/Application Services translations Ark never uses) and extra packaging exclusions. The release remains dominated by GeckoView's own libxul.so (~65 MB compressed of ~111 MB total); no Gecko functionality was removed.
  • versionCode is 28 so the rebuilt 1.8.0 installs over 1.8.0 (27).

Firefox Sync (implemented)

  • Sign in with a Mozilla account from Settings › Sync. The OAuth page opens in a normal Ark tab and the redirect is intercepted in NavigationDelegate.onLoadRequest; the sign-in tab closes itself afterwards.
  • Account state (tokens, scoped keys, device id) is stored with AES-256-GCM under an Android Keystore key, never in SharedPreferences and never logged.
  • Open tabs: Ark publishes its tabs to the Firefox tabs collection (sleeping tabs as inactive, private/about: pages excluded) and reads tabs from other devices into Settings › Sync › Tabs from your other devices. Tapping a remote tab opens it locally.
  • Pins: mapped to a dedicated “Ark Pins” bookmark folder in the mobile root, so they appear as bookmarks in Firefox and Zen. The merge is bidirectional (local order wins, remote pins are added, nothing is wiped on first sync). Spaces and their pins are never uploaded.
  • Passwords: the Firefox passwords engine via Application Services' LoginStore, with a scoped-key KeyManager and a one-time migration of Ark's existing Vault logins. Passkeys/cards/addresses remain out of scope.
  • History is deliberately never synced. Ark is privacy-focused; history stays in Ark's own database and there is no switch to enable it.
  • Per-type toggles (tabs / pins / passwords), Sync now, last-sync status, error reporting and sign-out that disconnects the device and deletes the local FxA state.
  • Application Services 162.0 (fxaclient, syncmanager, places, tabs, logins, db-crypto, viaduct) plus the Android Components HTTP client that Application Services requires on Android.
  • The build uses a public test client id from local.properties for personal testing. A release still needs Ark's own Mozilla FxA client (identity.mozilla.com/apps/oldsync scope). The registration request and full architecture are in docs/firefox-sync.md.

Browse for me

  • The search sheet gains Browse for me: Ark searches DuckDuckGo, quietly opens the top results in background tabs, extracts their text, closes them, and asks the AI for one answer that cites the pages it used ([1], [2], …).
  • Answer sheet shows progress per page, the cited answer, the numbered sources (tap to open), the model name, and a Retry button on failure.
  • Uses the existing Summarizer to condense long pages and the existing AiSummary (Pollinations) plumbing; hidden in private tabs.

Spaces

  • Local, named, coloured tab groups (max 5), with an optional emoji icon chosen with your phone's own emoji keyboard behind a round icon control.
  • The row floats centred just above the new-tab pill; the + disappears at five spaces.
  • Tapping a space filters the tab switcher; All shows every space's tabs.
  • Each tab card shows its space's emoji (or colour) in the top-left corner; tapping the badge moves the tab to another space.
  • Each space has its own pins (the home Pins section follows the selected space). Spaces are device-local: never synced, never in the widget, never in private mode.

Theme studio

  • Settings › Appearance → Theme studio: accent colour from eight presets plus a custom HSV colour (hue, saturation, brightness), with on-colours chosen by luminance so text stays readable on every accent.
  • Corner roundness (40–160%) scales the cards, sheets, settings rows and tab cards.
  • Bar opacity tints the bottom bar.
  • Reset restores the default look.

Fixes since the first revision

  • Signing in closes Settings so the Mozilla page is visible (and the sign-in tab closes after the redirect).
  • Settings keeps its scroll position when returning from a sub-screen (Sync, History, Downloads, …).
  • The tab-switcher space badge sits at the card's top-left corner without clipping.
  • Sync no longer offers history anywhere in the UI, the engine list or the docs.
  • The widget incognito icon uses the same Material Symbols visibility_off glyph as the URL bar.

App UI sizing

  • Settings › Appearance → Text size (80–150%) scales Ark's own Compose UI immediately: menus, settings, tab titles, snackbars, dialogs.
  • Display size (85–115%) scales Ark's layout: padding, bars, cards, icons.
  • Both have a live preview and a Reset button.
  • Website text is not affected; page zoom and per-site zoom still control web content.
  • Existing installs are migrated: the old Gecko fontScale value is reset to 100% once, so a previous 80% does not silently shrink websites after updating.
  • Reading mode keeps its own A−/A+ control.

Startup destination

  • New Settings › Sites → When Ark starts: Last tab / New tab / Homepage.
  • Non-destructive: “New tab” restores the tab list but puts the search sheet in front; “Homepage” reuses an existing homepage tab instead of creating duplicates on every launch.
  • “Restore tabs on launch” still controls whether the list is restored at all.

Tab switcher

  • Closing a tab now moves focus only; it does not wake/open the next tab while the switcher is visible.
  • Next-tab policy: live parent tab → most recently used tab that is already awake → nearest tab in list order.
  • Pager animates to the focused card in ~200 ms; swipe-out is ~150 ms; grid items animate with animateItem().
  • Header counts update immediately; Undo restores and focuses without waking until the switcher closes.
  • The focused page is woken when the switcher is dismissed.

Bottom-bar tab swiping

  • Swiping left/right on the bottom bar slides/fades the page in the swipe direction (~240 ms) instead of snapping.
  • The page you left is captured first and slides away over the new page, so the animation shows website content leaving instead of a black frame while the next session attaches.

Custom idle time

  • Settings › Tabs & speed → Put idle tabs to sleep gains Custom, with a 1–240 minute slider.
  • The existing 5 min / 30 min / 2 hours / Never options are unchanged.

Downloads (fixes #2)

  • Real task model: percentage, bytes downloaded/total, smoothed speed, ETA.
  • Pause / Resume in the app row and in the notification; pausing keeps the partial file and the open stream.
  • Cancel closes the stream, deletes the partial file and removes the notification.
  • Failed section with a human-readable error (including “The site closed the connection before the file finished.”), Retry and Remove.
  • Retry/Resume continues from the partial file (Range), and failed/interrupted rows survive a restart.
  • Foreground service (dataSync) keeps downloads alive when Ark is backgrounded or the process is under memory pressure.
  • One running notification per download (the service summary), with Pause/Resume and Cancel actions; a per-download notification is only a fallback if the service cannot start.
  • Completed notifications show size and an Open action; tapping a notification opens the Downloads screen.
  • Stale ongoing notifications left by a killed process are cleared at startup.
  • Private downloads still never persist and get no completed notification.

Widgets

  • Ark search 4x1: Ark mark on the left, a rounded search bar with the hint, a voice search icon and a private/incognito icon, matching the in-app URL bar. The bar opens search; the mic starts voice input; the incognito icon opens a private search.
  • Ark pins 4x2: up to 8 pins with cached site icons (monogram fallback), tap to open, updates when pins change, host-only labels when app lock is on, empty state when there are no pins. The pre-seeded default pins are restored once on upgrade if the stored list is empty.
  • Settings › Your stuff → Pins widget: choose exactly which pins appear in the widget (leave all unchecked for all pins).
  • Both appear in the launcher widget picker.

Version

  • 1.8.0, versionCode 28. The rebuilt 1.8.0 installs over the previous 1.8.0 build.

Testing

  • assembleArm64Debug, assembleArm64Release and compileArm64DebugKotlin pass.
  • Manually verified in earlier revisions on a Galaxy Xcover 7 (Android 17 / API 37):
    • text/display sliders apply immediately, reset works, website text unchanged;
    • all three startup modes, including no duplicate homepage tabs;
    • tab close: no ~1 s blank gap, next card stays asleep until the switcher closes, counts update, Undo works;
    • bottom-bar swipe animation shows the old page leaving;
    • downloads: progress/speed/ETA, pause/resume, cancel (row + partial file + notifications gone), truncated failure + Retry/Dismiss, completion + notification, foreground service while backgrounded;
    • Firefox Sync: sign-in completes against accounts.firefox.com, the device appears on the account, the status/email/sync-now UI updates, and “Tabs from your other devices” lists Firefox's tabs;
    • browsing, history, settings and empty states unchanged.
  • Downloads resume, read-aloud, the Browse pill and the performance changes in this revision compile and are in the release build; visual QA is left to the tester.

Known limitations

  • Firefox Sync needs Ark's own Mozilla OAuth client before release. The current build uses a public test client id from local.properties; the registration request is in docs/firefox-sync.md.
  • Password sync is implemented through LoginStore but has not yet been round-tripped against Firefox/Zen in this test pass.
  • History is intentionally not synced, by design.
  • Spaces are device-local: no sync, no widget entries, hidden in private mode.
  • Browse for me depends on the free Pollinations service and can hit rate limits.
  • A paused download keeps an open stream only while Ark's process is alive; after a process death it is restored as paused and resumes with a Range request. Servers that do not support Range restart the file.
  • Failed rows and their partial files are kept up to 20 entries.
  • The running notification is a single foreground-service summary, so one download produces one notification.
  • Read aloud uses the device's installed TTS engine/voice; Android's own TTS settings choose the voice and speed.