Skip to content

Releases

v4.18.0

Choose a tag to compare

@yuedaochangmendian yuedaochangmendian released this 04 Dec 13:31

Other languages: 简体中文 · English

English

This line adds profile merging, closes the in-app update loop, and turns the
diagnostics that used to need adb into a one-tap export.

Changes

Release 4.18.0

  • Two editions. 4.18.0 is the first stable release of this line and ships
    two signed builds from the same app: full (every protocol family) and
    lite, whose kernel is built without WireGuard, OpenVPN, OpenConnect and
    naive — those outbound types are hidden in the UI — cutting the arm64 APK
    from 38.6 to 31.5 MiB. Both are arm64-v8a.
  • The IP card shows the first reachable answer. The egress probe now races
    every source and paints whichever valid answer returns first (with an added
    HTTPS fallback) and gives a slow but reachable node more time, instead of
    reporting it unreachable when a source misses a short window.

Fixes (preview 22)

  • The IP card shows the first reachable answer. The egress probe now races
    every source and shows whichever valid answer comes back first, instead of
    waiting out a 700 ms window for the preferred one; an added HTTPS source
    (https://api.ip.sb/geoip) keeps a blocked cleartext/ip-api host from
    reporting "unreachable" when another route works. Location and quality
    details still fill in afterwards.

Hardening (preview 18)

  • Streaming backup and restore. WebDAV and local SAF/share imports stream
    the THRN container through a capped private file instead of holding base64
    copies; restore takes a thrPath and releases the staged file on success or
    failure, cutting the peak from hundreds of MiB to a few MiB.
  • Route document lock. The kernel now takes the same
    documents/global_route_rules.json.lock as Dart around each read-merge-write,
    closing the last-writer window recorded in §5.2.
  • Cleanup and i18n. Removed the last dead host-call arms and stale
    Kotlin/Go comments, deleted 17 unused resources per locale, translated the
    VPN consent notice into all 19 locales, and enabled unawaited_futures for
    the Flutter tests.

Hardening (preview 17)

  • Core lifecycle and action bus. Generation tokens now fence stale core/TUN
    teardown, the JNI crossing runs off the main thread, message-port detach is
    part of the C ABI (35 live exports), and the Go action bus reports bounded
    deadlines, encoded-result fallbacks and panic fences.

  • Profiles and subscriptions. Multi-selector status no longer reuses the
    primary plan, selection writes are race-free (rename-take lock), and
    subscription refresh has an overall deadline, retry/guard reporting and a
    terminal apply check.

  • Data and backup. Document writes are atomic (fsync/rename), the restore
    journal heals by phase and refuses to start over an unhealed rollback, and
    backup limits and key filters agree on both ports.

  • Security. Android and Dart cleartext policy now agree (loopback/private
    literals only), WebDAV has an explicit local-network cleartext opt-in,
    imported remote URLs are rejected before they are saved, and host errors are
    redacted.

  • UI and accessibility. 48 dp targets, chart semantics, reduce-motion
    coverage, the restored i18n gate, and explicit WebDAV/restore dialogs.

  • Background cost. Dashboard cadence is adaptive (1 s visible, 5 s hidden;
    2 s/10 s on low-RAM devices), widget and notification updates throttle
    off-screen, and Dart pauses sparkline/notification work while hidden.

  • Cleanup and gates. Dead code was removed across Kotlin, Dart, Go, C/C++
    and tooling; bindgen now emits the action-bus and FFI shapes byte-for-byte;
    1649 Flutter tests, 827 JVM tests and the three-ABI build pass locally.

  • Merge profiles. Select two or more profile cards: the kernel combines
    their stored sing-box documents (outbounds, route rules and rule-sets, with
    tag collisions renamed and references rewritten), and the result becomes a
    new profile through Dart's document service. The sources are untouched and
    the dialog lists every warning (renamed tags, sections kept from the first
    profile, conflicting rule-set tags).

  • In-app update install. A release with an update manifest now downloads
    the current ABI's APK in the app, verifies its SHA-256 while streaming, and
    hands it to the system installer. The host re-checks size, digest, package
    identity, version, signature and signer before the PackageInstaller session;
    a browser fallback stays for releases without the manifest.

  • Update downloads resume. An interrupted transfer leaves a .part file
    and a small sidecar (URL, digest, size, ETag), and the next attempt continues
    with Range/If-Range when the server still serves the same revision; a
    changed resource, a range mismatch or a 416 restarts cleanly. The resume pair
    survives an app restart for up to a week (older leftovers are cleared), while
    cancels and checksum/size refusals still delete it. A resumed download
    re-hashes the bytes already on disk before streaming the remainder, so the
    final SHA-256 and size gates are unchanged.

  • Kernel moves to sing-box alpha.16. Throne is pinned to 8cf3333e
    (1.5.0 dev) and the maintained fork is rebased as v1.15.0-ext.12 on its
    official v1.15.0-alpha.16 base. The 135 kernel commits since the old base
    bring OpenConnect/Cloudflared/AnyTLS/ShadowTLS/Snell/VMess fixes, the new
    QUIC/H2/H3 packet paths, FakeIP persistence and Android auto-redirect/TUN/DNS
    fixes; XHTTP, mKCP, VLESS Encryption and Juicity are kept. The bridge overlay
    needed two small adaptations (the upstream probe timeout helper and the scan
    request's TraceColo field); the regenerated schema carries the new options.

  • B-box-era identifiers are gone. The UI preference document is now
    flrone_ui (a one-time copy migrates bbox_ui, then removes it), the
    outbound-mode setting is flrone_outbound_mode (existing
    bbox_outbound_mode rows are renamed on read and on every settings write,
    including backup restore), and the leftover thread/temp-file/log prefixes,
    test data and stale Bbox class files were renamed or removed. No user data
    or settings are lost by the rename.

  • The IP card answers sooner. The egress probe now starts during the
    450 ms start morph instead of waiting for it to finish (the flag spin stays
    paused), the ip-api request asks only for the fields the card parses, and a
    route change cancels the in-flight probe so the next route does not queue
    behind it.

  • Per-app and TUN settings apply immediately. Saving the access-control
    list or a TUN-shape value (MTU, CIDRs, routes, IPv6, allow-bypass, system
    HTTP proxy, metered) now re-establishes the Android tunnel in place instead
    of asking for a full Flrone restart. A plain core reload reused the old
    descriptor, so the allow/deny list and link properties stayed stale.

  • Doze wake resets the network. Waking from device doze now runs the core's
    network reset after un-pausing, so a default-network or DNS change that
    happened while the screen was off no longer strands existing connections
    until the app is restarted. Repeated doze broadcasts stay edge-triggered.

  • Diagnostics bundle. The Logs page can export one structured text file
    with app/core/device facts, the memory metrics, the newest crash record, an
    allow-listed settings summary and the redacted log tail. Credentials and
    subscription URLs never enter it; the native log redactor runs over the
    final file too.

  • Idle memory trim. Going to background asks the kernel for one light GC
    plus a native allocator purge when no instance is running or the tunnel is
    not moving traffic; a busy tunnel is left alone. The kernel reports heap
    metrics alongside the decision.

  • Import hardening. Externally opened profile/backup files are limited to
    content/file schemes and read through a bounded stream (16 MiB for documents,
    64 MiB for backups), so a mislabeled huge file is refused before it is
    buffered.

  • Smaller rebuilds. The Connections card watches a derived count record
    instead of the whole feed, the dashboard reacts only to card layout changes
    instead of every preference write, and the Clash API secret repair moved off
    the main thread at startup.

  • Widgets and notification. A package update redraws the widgets instead of
    leaving a stale "Connected"; identical speed text skips the binder call.

  • Exit lookup provider. The provider selected for exit lookups now also
    drives IP test batches, not just the egress card.

  • Signing. Release builds are signed with APK Signature Scheme v3 in
    addition to v2, ready for a future signing-key rotation.

  • Exit card follows Bettbox. The home IP card probes ip-api first with
    language-aware country/region/city names and keeps freeipapi as the location
    fallback (the wider race and route-keyed cache stay). ipwho/geojs/ip.sb are
    organization-heavy for non-native or anycast addresses, so they are selectable
    through the lookup-provider setting instead of automatic fallbacks; even then
    their country/region/city are overlaid with ip-api's edge location (the
    provider keeps supplying ISP/ASN), so the flag follows the exit rather
    than the ASN holder's registered country. TW/HK/MO
    are derived from a CN code or region text, and the card shows one
    country · city line. A repeated probe that returns the same address keeps
    its quality; automatic events no longer regrade it — only a manual refresh
    forces a new IP and quality check. Flags use the bundled Twemoji font, so a
    ROM whose system font has no flag glyphs no longer draws two boxed letters
    (the font's Apache-2.0 / CC-BY-4.0 notice is registered in the license page).

  • Bundled startup defaults. A fresh install starts from the bundled split:
    the six converted rules ...

Read more

v4.17.5

Choose a tag to compare

@github-actions github-actions released this 29 Nov 12:48

Other languages: 简体中文 · English

English

Config generation now runs entirely in Go: the Kotlin ConfigGenerator path is
gone, and every outbound type Kotlin could build is supported again.

Changes

  • One config path. The service driver calls config.prepare (random mixed
    port, dashboard port fallback, secret repair, dashboard unpack, empty
    rule-set, deferred-start consent) and then the Go configBuild action.
    Kotlin no longer builds start configs; ConfigGenerator, CoreConfigs,
    BoxInstance and their generator-only models/tests are deleted.
  • All outbound types. tuic, juicity, trusttunnel, anytls, mieru, snell,
    shadowtls, standalone masque, openvpn(-client), openconnect, ssh and naive
    are ported to Go with byte-identical builds. tailscale and extracore remain
    InvalidOutbound as they were in Kotlin. A coverage test pins the full factory
    matrix.
  • Test configs from Go. The Kotlin test session, probe and
    subscription-filter DNS lookup use the new build_test_config host call;
    an unknown type is skipped with the Kotlin reason instead of failing the
    whole batch.
  • Kotlin outbound model deleted. The node editor and the group-content
    import now talk only to the Go profile codec
    (profileNewOutbound/profileImport/profileNormalize/profileValidate/
    profileExport). The 40-file outbound model, FlroneNodeEditorLegacy,
    SettingsMapper and the reflective proguard keep rule are gone; a Go
    refusal is the editor's error instead of a second Kotlin implementation.
    chain, custom and autoselector gained their Go save gate so the typed forms
    keep working.
  • Node editor fixes. The stored validator now covers vmess, vless, trojan
    and hysteria (TLS/transport values, VLESS encryption and Vision, hysteria
    ports/hop/obfs/realm, shadowsocks 2022 keys and plugin casing) so a vless
    node saves normally. throne://add/ / json://# JSON links are importable
    again, partial imports keep the supported entries of a paste, and the
    profiles.relay reply no longer raises Unsupported value: 'kotlin.Unit'.
  • Subscription and selector safety. A partial subscription body keeps the
    old rows of the entries it could not parse instead of deleting their nodes;
    a user edit during a download is detected via a revision ticket before the
    answer is applied. The auto-selector status now comes from the running core
    (phase, counters and ranked members), and deleting a member prunes its
    references from selector pool/last_built/pinned_id.
  • Corpus gate. The frozen profile corpus now byte-compares export, import,
    validate and migrate payloads, not just blank templates; it caught and fixed
    a shadowsocks share link that dropped its multiplex query.
  • Batch import and live pin. Pasting many nodes now goes through one
    nodeCreateBatch call: the Go codec parses every entry, one batch write
    persists them and one document revision is written, with per-row failures
    still reported. The selector's pin/recheck goes to the kernel's
    AutoSelectorAction (autoSelectorAction), and the core's pool-<i> member
    tags map back to profile ids, so pinning works on the live selector instead
    of only in the shadow state.
  • Build. Content stamps cover schema/routeprofiles/dashboard as well as the
    kernel/AAR and skip every unchanged step. The kernel is staged into
    core/build/generated/throneJniLibs instead of the source tree, three ABIs
    build in parallel (CORE_JOBS), and the unused x86 CMake ABI is skipped. The
    release keystore is written by a WriteReleaseKeystore task instead of at
    configuration time, so signed builds reuse the configuration cache too. CI
    publishes the AAR + c-shared once per run and later jobs reuse them after
    checking the inputs key and the kernel symbols; a nightly full run catches
    toolchain drift and the actions are pinned by SHA.
  • Golden coverage. 56 started-config fixtures and 5 buildTest envelopes
    are frozen after the Kotlin oracle was removed; the Go harness compares
    bytes and config_golden.py validates fixtures, envelopes and SHA-256.
  • Fixes on the way. A15 no longer requires the retired routeId; the
    per-user mixed port is persisted before the build; selector members the core
    rejects are dropped; Java-only name filters fail loudly; IDN punycode and the
    relaxed duration grammar match Kotlin.
  • JSON editor schema. The Flutter JSON editor ships its own copy of the
    sing-box schema, and only the app copy was regenerated: after the 1.4.5 pin the
    editor was 196 nodes behind and still offered removed keys. --only=schema
    now writes both copies and --check compares them; CI runs ThroneCore before
    the AAR and syncs the file, so the editor always matches the kernel it ships
    with.
  • Kernel 1.4.5. The upstream pin moves to Throne 46e0691a and its sing-box
    base d1ea6bc3, built with Go 1.27.4. The maintained sing-box-ext fork was
    rebased as v1.15.0-ext.11 (VLESS encryption, XHTTP, mKCP and REALITY kept);
    core/mobile and core/gen are unchanged upstream, so the bridge overlay
    needed no edits. Unmeasured speed-test rates now report N/A and upload bodies
    are larger.

Verification: flutter analyze --fatal-infos clean, 1259 Flutter tests,
520 JVM tests (the model-oracle parity tests went with the model; the Go suite
and the frozen profile corpus keep the byte gate), assembleOssDebug passed,
Go mobile tests (excluding the pre-existing Windows
TestParseProfileRequest* path-escaping failures) and the 50/50 corpus + 56/56
started-config + 5/5 buildTest golden suites passed, and the action, channel,
platform, settings, legacy, FFI, bindgen and core-patch audits are green. No
device matrix was run.

简体中文

配置生成已全部由 Go 负责:Kotlin ConfigGenerator 路径删除,Kotlin 原本能构建的
所有出站协议也补齐了。

变更

  • 单一配置路径。 服务驱动先调 config.prepare(随机 mixed 端口、dashboard
    端口避让、secret 修复、dashboard 解包、空 rule-set、延迟启动授权),再调 Go
    configBuild action。Kotlin 不再生成启动配置;ConfigGenerator、CoreConfigs、
    BoxInstance 及其只被生成器使用的模型/测试已删除。
  • 全部出站类型。 tuic、juicity、trusttunnel、anytls、mieru、snell、
    shadowtls、独立 masque、openvpn(-client)、openconnect、ssh、naive 全部迁到
    Go,构建字节一致。tailscale 与 extracore 仍和 Kotlin 一样是 InvalidOutbound。
    新增覆盖测试锁定整个工厂类型矩阵。
  • 测试配置也走 Go。 Kotlin 测速会话、探针和订阅过滤 DNS 查询改用
    build_test_config host call;未知类型按 Kotlin 原有 reason 跳过,不再拖垮
    整批。
  • Kotlin 出站模型整体删除。 节点编辑器与群组内容导入现在只走 Go profile
    编解码(profileNewOutbound/profileImport/profileNormalize/
    profileValidate/profileExport)。40 文件的 outbound 模型、
    FlroneNodeEditorLegacy、SettingsMapper 与反射 proguard keep 规则全部
    删除;Go 拒绝即编辑器错误文案,不再有第二套 Kotlin 实现。chain、custom、
    autoselector 补上 Go 保存门,类型表单保持可用。
  • 节点编辑器修复。 stored 校验补齐 vmess/vless/trojan/hysteria(TLS/
    transport 值、VLESS encryption 与 Vision、hysteria 端口/hop/obfs/realm、
    shadowsocks 2022 密钥与插件大小写),vless 节点可正常保存;throne://add/ /
    json://# JSON link 可再次导入;部分导入保留可解析条目;profiles.relay
    回复不再触发 Unsupported value: 'kotlin.Unit'。
  • 订阅与选择器安全。 部分导入的订阅 body 会保留无法解析条目的旧行,不再
    删除对应节点;下载期间的用户编辑通过 revision ticket 在应用前识别并丢弃过期
    结果。选择器状态改为读取运行中的内核(phase、计数、排名成员),删除成员时
    同步剪掉 selector 的 pool/last_built/pinned_id 引用。
  • Corpus 门禁。 冻结的 profile corpus 现在对 export/import/validate/
    migrate 全部做字节比较(不再只比空模板);本轮据此发现并修复了
    shadowsocks 分享链接丢失 multiplex query 的问题。
  • 构建。 内容 stamp 覆盖 schema/routeprofiles/dashboard 与 kernel/AAR;
    无签名 Gradle 构建启用 configuration cache,签名 release 显式关闭;跳过
    未发布的 x86 CMake ABI。
  • Golden 覆盖。 Kotlin oracle 删除后冻结了 56 个启动配置 fixture 与 5 个
    buildTest envelope;Go harness 做字节比较,config_golden.py 校验 fixture、
    信封与 SHA-256。
  • 顺带修复。 A15 不再要求已废弃的 routeId;每用户 mixed 端口在构建前落盘;
    selector 中被核心拒绝的成员会剔除;Java-only 正则直接报错;IDN punycode 与
    宽松 duration 语法与 Kotlin 对齐。
  • JSON 编辑器 schema。 Flutter JSON 编辑器自带一份 sing-box schema,此前
    只刷新了 app 侧那一份:1.4.5 内核之后编辑器落后 196 个节点,还会提示已删除
    的字段。--only=schema 现在同时写两份、--check 比对两份;CI 把
    ThroneCore 放到 AAR 之前并显式同步,编辑器始终与随包内核一致。
  • 内核 1.4.5。 上游 pin 升到 Throne 46e0691a(sing-box 基座 d1ea6bc3),
    用 Go 1.27.4 构建。自维护的 sing-box-ext fork 重基为 v1.15.0-ext.11
    (保留 VLESS encryption、XHTTP、mKCP、REALITY);上游 core/mobile 与
    core/gen 无改动,桥接 overlay 无需调整。测速未测得速率现在显示 N/A,
    上传 body 加大。

验证:flutter analyze --fatal-infos 干净,1259 个 Flutter 测试通过,520
个 JVM 测试通过(模型 oracle parity 测试随模型删除,字节门禁由 Go 测试与冻结
profile corpus 承担),assembleOssDebug 通过,Go mobile 测试(排除既有的
Windows TestParseProfileRequest* 路径转义失败)与 56/56 + 5/5 golden 通过,
action / channel / platform / settings / legacy / FFI / core-patch 审计全绿。
未做设备矩阵。


Built from commit 6a419f4d7b2a432dc438581988fcbb262054c9bf.

v4.15.1

Choose a tag to compare

@github-actions github-actions released this 24 Nov 11:53
8ec2448

The 4.15.0 preview line lands as a stable release: the connections/dashboard fixes, the
single-node import and REALITY corrections, the Bettbox toolbox and the subscription-card
additions, plus one vocabulary and brand pass over the app's own code.

Fixes

  • The route card's edit and menu buttons no longer drift. They were vertically centred against the whole card, so the remote detail line that arrives after the list (and the update bar while a profile refreshes) moved them down with the card's height. They now sit on the title row, where the card's growth cannot move them; a layout test pins the action button to the title's centre.

  • Every bulk event was zero bytes. Flutter 3.50's StandardMessageCodec.encodeMessage returns its buffer positioned after the bytes (it allocates, writes and returns without a flip); BulkWire read from that position, so the connections list and the logcat feed were always sent as an empty payload. The original symptom was a bare Message corrupted; after 4.15.1 started dropping undecodable frames the connections page simply stayed empty. The encoder now normalises the buffer (flip only when nothing remains) and a JVM test decodes the produced bytes with the same codec, which also checks there is no trailing garbage.

  • An empty connections list now says why, and can fix itself. The page asks the host for connections.state: a stopped tunnel is named as such, a switched-off Clash API gets a one-tap Enable (it writes the port and reloads the core), and an enabled-but-silent API shows its address, port and HTTP error with Retry. The host skips the request entirely when the API is off and keeps the poller's last failure for the state.

  • A bad bulk frame is dropped, not shown as "Message corrupted". The byte payloads of the connection and log feeds are copied when they arrive (the codec hands back a view into the event envelope), a frame that does not decode is skipped with one diagnostic per feed instead of a banner per tick, and the host no longer sends an empty bulk frame when a value encodes to nothing. The next 1.5 s tick rebuilds the connection list, so a single bad frame costs one refresh.

  • A single-node import ends on the node page. The profile form no longer asks for a target group — the host always puts a single imported node into the single-node container, so the question only blocked the save — and it switches to the node page before the sheet pops.

  • Editing a single node keeps its protocol. A bare typed outbound is parsed as one node instead of being wrapped as a Custom configuration, so saving an edited node no longer changes its type.

  • A node selected outside the proxies page survives a reopen. The proxies page replayed its own per-configuration memory over the host's selection, which reverted a node picked on the single-node page (or by a notification) as soon as that configuration was shown or the app was reopened. A native selection that is not the group's first member is trusted and written into the memory, and the node page records its pick there too.

  • REALITY derives the auth key from the standalone X25519 share. Xray and sing-box REALITY servers take the key from the ClientHello's standalone X25519 share when one is present and only fall back to the X25519 half of the hybrid X25519MLKEM768 share otherwise; Xray's client selects the same way. The extended kernel's previous choice preferred the hybrid's key whenever ML-KEM was advertised first, which diverges from every reference server. A failed verification now also logs which share was used.

  • REALITY works with fingerprints that predate ML-KEM. Xray-core v26.9.8+ REALITY servers reject a ClientHello without the hybrid X25519MLKEM768 key share. Only the Chrome presets offered it, so a REALITY node set to firefox, safari, ios, edge, android, 360 or qq (or random when it picked one of them) received the fallback certificate and reported "reality verification failed" with hybrid share present: false. That fingerprint's ClientHello now gains the group and the key share, keeping everything else it defines; Chrome keeps its untouched fast path, TLS-1.2-only presets and randomized/custom fall back to Chrome, and the failure log names the fingerprint beside the two shares.

  • A second "Default" group is adopted instead of duplicated. A document whose last group was deleted gets a group with no stored name; it renders with the localized default label, but the single-node container check only compared the stored name, so the first import created a flagged "Default" beside it and the pickers listed both. An unnamed local group now counts as the container (an import backfills its flag), and the node page removes extra empty containers, keeping the one that holds nodes.

  • The network toolbox speaks the app's language. The Bettbox cards rendered their titles from the English keys directly; they now go through the translation table, so 测速 / 连通性测试 / 流量统计 / 节点测试 replace "Speed test" / "Connectivity test" / "Traffic statistics" / "Node tests" (and the two settings cards likewise).

  • The tool sheets are Prism forms, not bare lists. A bare bottom sheet still reserves the compact sheet bar's height, which showed as a large empty forehead above the first section; each tool's settings now open as a titled form sheet with the standard close button, and the traffic sheet likewise.

  • The node editor no longer offers Multiplex. The section and its derived state were removed from the outbound editor (an existing multiplex object in a node's JSON is left untouched). The TLS fragment row is a switch now instead of a text field, matching the boolean the model stores.

  • The proxies page owns "Clear test results". The profile card's long-press menu loses that entry, along with "Clear traffic statistics" and "Group settings"; the proxies page's own overflow menu clears the visible configuration's test results.

  • Subscription cards show what is left. The quota line reads Remaining 87.7 GB · Expires Nov 30, 2026; a subscription the provider did not date reads … · Permanent, an unlimited provider shows Remaining Unlimited, and a local profile still shows no quota line.

  • An unnamed subscription names itself. The add/edit form no longer requires a name for a subscription: a new one takes the server's Profile-Title, then its URL host (www. dropped); an existing one whose name was cleared falls back to the URL host.

Changes

  • The connectivity card is a service-status card. A header with the verdict chip ("All available" / "N failed") and the refresh button, then a two-column grid of up to four pinned services, each cell carrying its artwork, name and latest result — latency, limited/flagged, not unlocked or failed. The full page is still one tap away.

  • The network toolbox is a Bettbox-style card grid. The one-column settings list became a 92 dp card grid with wide and tall cards, icon boxes and watermarks, press tint, and each tool's settings in a sheet; the switches, traffic store and exit detection behind them are unchanged.

  • One vocabulary in the app's own code. The Dart presentation, document and controller layers now call the two concepts by the UI's names — Configuration for a profile card and Node for a proxy entry — and the Kotlin sources carry the Flrone brand (Bbox*/ThroneBoxBridge files and classes became Flrone*/FlronePlatformBridge, bboxmodel became flronemodel). The compatibility boundaries stay untouched: profiles.json, the profiles.platform op, every wire/settings key, the FFI throne_* symbols and the Android package ids. docs/naming.md records the vocabulary and the boundaries.

  • The About page's version and licence badges are the entries. Tapping the version badge checks for updates and the GPL-3.0 badge opens the licence page; the separate "Check for updates" button and the "Open-source licenses" row are gone. The credits name B-box for the early migration approach and Bettbox for the detailed feature reference.

  • The kernel link points at the maintained fork. The About Core row and all three READMEs link yuedaochangmendian/sing-box-ext (Throneproj's base plus VLESS encryption, XHTTP, mKCP and REALITY); the credits keep the upstream sing-box entries.

Features

  • Traffic statistics, the whole chain. A new Tools page records traffic from the core's cumulative totals and attributes it with a host-side poller: the connection list is read every five seconds, each connection's delta is split by proxy/direct and attributed to its destination, node, rule and app, and the app merges the deltas into a daily ledger (hour buckets, per-profile split, bounded maps). The page follows the reference layout: an enable switch (off by default), day/week/month with previous/next navigation, a total ring with upload/download and the proxy/direct split, rule hits, a domain/node ranking with site icons, and a settings sheet (record details, website icons, 7/30/90-day retention, clear data). A core restart re-baselines instead of counting a negative delta; the ledger persists every five minutes and on a lifecycle pause.

中文说明

4.15.0 预览线转为正式版:连接/仪表盘修复、单节点导入与 REALITY 修正、Bettbox 网络工具箱、订阅卡片增强,以及一次覆盖自有代码的词汇与品牌整理。

修复

  • 路由卡片的编辑/更多按钮不再漂移。 它们此前相对整张卡片垂直居中,列表加载后才到达的远程信息行、以及刷新时出现的进度条都会让卡片变高,按钮随之向下漂移。现在按钮固定在标题行上,卡片内容增长不会再移动它们;新增布局测试把动作按钮钉在标题中线。
  • 所有 bulk 事件都是 0 字节。 Flutter 3.50 的 StandardMessageCodec.encodeMessage 返回的缓冲区位置在字节之后(分配、写入后直接返回,没有 flip);BulkWire 从当前位置读取,导致连接列表与 logcat 流永远以空载荷发出。最初表现为裸的 Message corrupted;4.15.1 改为丢弃无法解码的帧后,连接页就只剩下空列表。编码器现在会归一化缓冲区(仅在无剩余时 flip),并新增 JVM 测试用同一编解码器解码产物(同时验证没有尾部垃圾)。
  • 连接列表为空时会说明原因,并可一键修复。 页面向宿主查询 connections.state:隧道未运行会直接说明;Clash API 被关闭时给出一键「启用」(写入端口并重载内核);已启用但无响应时显示地址、端口与 HTTP 错误并提供「重试」。宿主在 API 关闭时不再发请求,并保留轮询器最近一次失败原因供状态展示。
  • 坏帧被丢弃,而不是显示「Message corrupted」。 连接与日志的字节载荷在到达时先复制(编解码器返回的是事件信封的视图),解码失败的帧按每种流只记录一次诊断、不再每个周期弹一次横幅;宿主在编码结果为...
Read more

v4.14.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 10:04
8c49c28

A UI and kernel-health line: the Profiles/Proxies split is finished, the start button's long-standing freeze is gone at the root, the log screen became one stream with a silent level, and the transport stopped paying payload-sized costs on the frame thread.

New

  • Access control gains a smart selection. One tap fills the per-app list the way Bettbox's 智能选择 does: in "proxy selected apps" it selects everything the host does not classify as a mainland app, in "bypass selected apps" exactly those. The classifier (ChinaApps) is a port of Bettbox's rules — a skip list of foreign publishers whose names would otherwise match, a mainland publisher/app prefix table (a dot boundary, so com.miui never claims com.microsoft…), then one cached package-manager query per install for the two signals a name cannot give: declared component names (a wrapper app embedding a mainland SDK) and the signing certificate's country (C=CN/C=86). It writes a draft like any other edit — Save still commits — and the name half of the rules is unit-tested.
  • The log screen is one stream now. The source switch (all / kernel / android / previous session) and the per-row level badge — which also acted as a display filter — are gone: the two tails render merged in time order, each line exactly as written, with search, export, pause-on-scroll and the recording level left. The archive of the previous session is no longer fetched.
  • Recording level gains silent. It is a client-side level: choosing it writes panic (the core's quietest accepted value) to the logLevel setting, tails logcat at *:S and drops the kernel lines this process filters itself, so nothing is recorded without inventing a value the config builder would reject. The label survives a restart because it is read back from the stored logcat level.
  • The Profiles screen has two modes: profiles and single nodes. One bar button flips between the profile list (subscriptions and local configs) and the single-node list, the shape Bettbox's node library uses, and it switches the configuration with them: entering the node page makes the single-node container current (a running tunnel follows), going back restores the subscription the user was on, and the node list reloads on every switch. Single nodes live in their own container group, which the profile grid hides — a hand-imported link is never a profile card, and the Proxies screen draws that container's nodes directly (no group tab or header) while it is the current configuration. The node page lists each node with its type and last latency, selects it, opens the typed form, copies its share link and deletes it. Importing reads the clipboard through the same ProfileImport the profile editor uses — one share link opens the editor on that node, a list (a base64 subscription included) is added row by row with the importer's own refusals reported instead of failing the whole paste — and the toolbar's "New node" menu keeps the typed-protocol flow. The bridge adds two duties (nodeList, nodeParse) over the existing node CRUD; a widget test pins the mode/configuration switch, the hidden container and the list, and a JVM test pins the single wire flag.
  • Single-node imports land in the node list, not in a profile. Saving one pasted link used to create the shared Default group as an extra profile card. Single nodes now go to their own container group: the node page (the second mode) shows them, the profile grid does not, and the host never creates a group as a side effect of a node import. The same container backs the node page's list, the clipboard import and the typed form, so "where did my node go" has one answer.
  • The Proxies screen is the Profiles screen's other half. It derived its groups from the selection, so only the active configuration's group had a tab and every other profile was invisible there. It now carries one tab per profile, in the profile list's order, follows the configuration selection when that changes (a manual tab tap is not undone), and keeps the single-node container's direct-nodes mode: while one of its members is selected the page renders its nodes with no tab.
  • Long-press the network-speed card for diagnostics. The panel reports whether the FFI driver is active, the kernel connection, the status/rate event counts and their ages, the current rates map, and the last dashboard totals — enough to tell a dead feed from a stopped counter without logcat.

Performance and kernel

  • Bulk feeds cross as one encoded payload, decoded off the frame thread. The log tails and the connection list are the only events whose size follows the payload, and they used to arrive as a list of maps — decoded on the UI isolate, and emit posted them to the platform thread after the codec had encoded them there. The host now encodes one StandardMessageCodec message on its producing thread (BulkWire), and the UI decodes it inline below 50 KiB or on a background isolate above it (FlClash's coreIsolateDecodeBytes); the isolate wrapper is a top-level function so the closure cannot drag the controller's scope into the message (the offload lesson, now enforced by the call's shape). The three feeds also share one applier each instead of three inline case bodies, and the dead logs.previous wrapper — its screen went away with the log rewrite — is removed.
  • The kernel log tail crosses the isolate boundary as bytes, and only when a screen is watching. A start's burst is one encoded string per batch (receivedAt, level, text joined by newlines) instead of a map per line — one copy instead of hundreds — and while no log screen is open the worker keeps a bounded ring and sends nothing; opening the screen replays it. The UI decodes the payload in a single pass.
  • A node tap switches the running core's selector in place. The groups are selector outbounds, so groups.select now tries the clash-api's PUT /proxies/{group} first (group resolved by exact tag or a single /<group> suffix, member resolved against the group's own all list) and only falls back to rebuilding the config when that cannot be proven — API off, group not found, stopped core. The persisted selection is written either way, so the next start honours it, and the core log records which path ran (select: live switch … / the reload fallback).
  • The start button's remaining freeze was the kernel booting on the UI thread. Flutter's Android embedder merges the platform and UI task runners (merged_platform_ui_thread defaults to enabled in the engine settings) and answers platform channels on the platform thread, so the service engine's Dart isolate ran every synchronous ThroneCore.create/start on the very thread that builds frames: the log showed one 303 ms ui stall bracketing core started in 365 ms, with no slow event, no frame work and no IPC lag — the sender itself was the busy one, so nothing was in flight to arrive late. The service engine now keeps its root isolate for the channel only and runs the kernel — KernelService, the FFI driver and the UI-facing IPC port — in a spawned isolate on its own VM thread; the kernel keeps its own isolate group and heap, so the GC separation the standalone engine bought is intact. A unit test drives serviceMain end to end: root channel, worker spawn, host-call proxy and the IPC hello.
  • Prism UI catches up with upstream 0.1.3. The vendored kit was at 260f53f1e, which already had seven of the thirteen later commits; the remaining four files are taken with their package imports rewritten: typography span emphasis, the long trailing value fix, the menu label width, and the collapsible-section header caption/leading gap. Files with local patches are untouched, and the manifest hashes and provenance doc are updated.
  • The dashboard rebuilds on real changes, not on every traffic tick. The page and the outbound-mode card watch a primitives-only layout record instead of the dashboard map (replaced every second); the restart hint restarts its timer on a second config change; the speed tile shows -- when no sample has arrived.

Fixes

  • The connections list stopped printing a connection's whole volume as its per-second rate. The clash-api lists each connection with its cumulative upload/download (mihomo's shape), and the host mapped those straight into the wire's rate fields, so every row read 1.2 MB · 1.2 MB/s: the second number was the first. The two are now sampled apart — the wire's upload/download are diffs against the previous 1.5 s sample, uploadTotal/downloadTotal keep the cumulative values — and a connection the core stops reporting is kept with closedAt stamped (bounded ring, survives closing the page), so the Active / Closed / All filters and the Closed label mean what they say instead of Closed being permanently empty.
  • The dashboard speed card keeps updating while the window is unfocused. The lifecycle gate treated inactive — visible but without window focus: split screen, the notification shade, a system dialog — as background, so the traffic rebuilds were held and the card froze the moment another window took focus. Only a hidden app (paused/hidden/detached) suspends them now, matching FlClash's live dashboard, and a unit test pins the predicate.
  • One readiness answer for the kernel. The driver described itself with four independent flags (starting, stopping, recovering, instance-lost) that the status text, the start guard and the diagnostics each combined on their own. KernelPhase — idle / starting / running / stopping / lost / recovering — is derived in one place, shown in the speed card's long-press panel, and pinned by tests that walk idle → starting → running → idle and loss → recovering → running. starting and stopping are now one value instead of a pair, so they cannot disagree.
  • The start path names what it waits for, and stops conflating "no answer" with "refused". Th...
Read more

v4.12.2

Choose a tag to compare

@github-actions github-actions released this 17 Nov 23:44
f4ed216
  • The system proxy switch follows the service mode, not the API level. The capability manifest only knows Android 10+, while the host can write the system proxy only in VPN mode; the inbound page now gates the section on dashboard.systemProxyAvailable, so proxy-only mode no longer shows a switch that answers unsupported. A widget test covers both values.
  • Toolbox colours are readable in both themes. Each Bettbox seed is resolved to HCT tone 40 in light and tone 80 in dark (the raw orange was 2.64:1 on white and burnt orange 3.82:1 on the dark surface). Focus now reaches the icon through the card's press surface, hover lights the home cards again, and a press still paints no row wash or shadow.
  • Logs lose the dead label-to-keyword path and the wrong clear target. No label was ever wired to onLabel, so the keyword strip was always empty; the dead path is removed and the level action remains the only chip-era control. The clear button is disabled on the previous-session archive (it used to clear live logcat while showing the archive), and the Chinese labels remain 应用 / 清除应用日志.
  • The speed card no longer blames the core for a failed test. A timeout with no resolved server now shows — instead of “Core stopped”; the stopped wording is reserved for a stopped core.
  • Interaction and robustness fixes. The TV long-press key handler is removed on dispose/menu close (it could swallow a key for the rest of the process), the terminal editor latches its back action to avoid double confirmation/double pop, openContainer checks mounted after its route returns, the dock guards its focus-highlight setState, sheetNavigatorOf is null-safe, the paged sheet's first-page pop goes through onExit, and the test panel ignores malformed speed samples. Full suite: 673 tests, flutter analyze --fatal-infos clean.

v4.12.1

Choose a tag to compare

@github-actions github-actions released this 17 Nov 11:56
6d8621e
  • A toolbox row lights its icon in the tool's own colour. Following Bettbox's toolbox, every tool and settings entry owns one palette colour (blue, purple, teal, orange, green, pink…); pressing or hovering tints only the leading glyph with it — no row wash, no shadow and no separator change — and the colour holds until the finger lifts, even when the drag starts a scroll. Other list rows keep their usual press.
  • The speed sheet follows the core while it is open. The outbound card read box.running once when the page loaded, so a sheet opened before the service finished starting kept printing "Core stopped" for the rest of the visit; it now watches the box state. A running core whose snapshot names no route shows a dash instead of the stopped text.
  • The log screen's recording level is a setting, not a chip. The "Recording level " chip is gone; the filter action still opens the level sheet, and both tails keep recording at it. The Android segment, source badge and clear action now read "应用" in Chinese.
  • The Appearance page no longer offers a font picker. The Font family entry is hidden; an existing font preference still applies, and a new install uses the default font. The full suite (663 tests) and flutter analyze --fatal-infos pass.

v4.11.1

Choose a tag to compare

@github-actions github-actions released this 15 Nov 15:58
e30a398
  • The form confirmation button is a real primary action now. Scaffold.confirmationAction was folded into TonalButtonGroup like any other icon, so on a phone "Save" and an unrelated icon were clipped into two halves of one capsule — the shape of a segmented control on the button that commits the whole form. The confirmation is now kept out of the group and rendered last as an independent filled button (solid accent, onPrimary glyph), matching the "filled default" the API always documented. Shared fix, so every form page (route/profile/rule editors, settings, node editor, …) reads correctly.
  • One release path instead of three. release.yml now has only workflow_run: a successful main CI run publishes the stable vX.Y.Z for VERSION_NAME, with 3 ABI APKs, SHA256SUMS and throne-update.json, and marks it releases/latest. workflow_dispatch, push.tags and the preview channel are gone; an existing tag is a safe skip, so the next release is cut by bumping VERSION_NAME. docs/github-workflow.md, release-runbook.md, README.md, CONTRIBUTING.md and the governance spec are synced.
  • Egress IP and speed test work across the FFI/gobind split. The seeded Default route profile now defaults to proxy (with a one-time migration and a startup hook), so the status card shows the proxy exit instead of the device's direct address; a connected session without a mixed inbound no longer falls back to the direct client or serves a stale exit IP. The speed test's two entry points are both fixed: the C ABI export resolves the live FFI box through currentInstance(), and the gobind Mobile.startSpeedTest path (the one Kotlin actually calls) now resolves a nil current through the same fallback in core-patch/test.go. The speed page surfaces rows[].error instead of a generic "Cancelled"/"instance is not running".
  • The gauge sweep turns steadily and the two curves are distinguishable. SpeedGauge owns a linear repeating controller for its connecting sweep, so it no longer jumps between irregular kernel samples; download/upload curves use primary and its HCT complement (blue / orange on the default theme) with the same pair on both legends.

v4.11.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 13:20
34b0eb9
  • The route data plane belongs to the kernel now: Go is its only writer (ADR 0002, phase 3c). route_store.go + route_actions.go keep route_profiles.json, route_rules.json and global_route_rules.json under <filesDir>/documents, with atomic writes (temp file, fsync, rename), a version guard, and a mutex serialising every read-modify-write — two concurrent saves racing on one document is exactly the lost update that lock prevents. basePath comes from CoreRuntime.setup (app.filesDir), which Setup mkdir's, so the kernel never asks the platform for a path
  • The whole routing domain moved, not a subset. 13 actions: profile list / seed / save / delete / set-current, rule list / save / batch-add / reset, and the global pool (get / save / per-profile disable / delete). Behaviour is ported value for value from BboxRoutes.kt and RouteProfile.appendSimpleAddressRule: the prefix:value -> outbound text format (last -> wins, absent arrow means direct), the lowercase-for-host-but-not-regex rule, one-value dedupe, save folding a (prefix, outbound) pair into one rule while batch-add makes one rule per line, the Default profile's single hijack-dns rule, and the raw-profile read-only refusal
  • Kotlin keeps a read-only view, because ConfigGenerator needs a synchronous answer. RouteJsonStore lost every write method (191 lines deleted); RouteManager.save / delete now fail loudly when the documents exist instead of writing Room behind the kernel's back. RoomToJsonMigration.seed(dir) is the one-time hand-over: it copies the three route tables by column name, runs only when the documents are absent, and never syncs back
  • Compatibility with older builds is dropped, deliberately. RoutesApi has no channel arm left: without the FFI driver there is no route store to answer from, and it says so instead of falling back. BboxRoutes.kt is deleted down to nothing (presets/addPreset had no caller either); what remains on the channel is routes.ruleSets, which searches the local rule-set catalog
  • action_contract.py now scans the whole core patch, not just action.go, and only counts constants declared as Method — the wider scan first pulled in speedTestPhaseLatency = "latency" and friends and reported them as drift. schema_audit.py compares the Kotlin seed against the tables the Go store actually names, since only the route tables moved
  • Tests follow the change. Ten JVM tests pin the read-only view (every column maps, rules stay ordered and scoped, a corrupt document reads as absent so Room stays authoritative). routes_page_test and input_keyboard_test drive the screens through a FakeRouteKernel attached with kernel.debugAttach — the same seam the hand-over tests use — instead of a mock channel
  • Profiles and groups went to Room instead of JSON documents (ADR 0002, phase 3d). The eight profiles.* actions had been writing profiles.json / groups.json, which nothing read: GroupRepo and ProfileManager are Room-backed, so a name or order edit answered the old value on the next read. Mounting the documents as a read view cannot fix that while Kotlin keeps writing Room — the readers would answer stale data the moment the other side saved — so both sides now share one database. The kernel opens databases/sager_net.db over WAL, which is the journal mode SagerDatabase already sets, so short-lived external writers coexist with Room's connection
  • The kernel writes Room through a vendored SQLite, not through Android. Room has no JNI handle to hand out and the kernel is its own process, so room_db.go compiles the SQLite amalgamation into the gomobile .so via cgo: one connection per call, busy_timeout for WAL writer contention, sqlite3_get_table for reads (the row shape the document readers already used). No runtime shared library, no Go module change. The vendored copy is unmodified upstream 3.54.1 — upgrading it means dropping in a newer release, never patching the 9 MB file
  • GroupRepo and ProfileManager lost their JSON fallbacks back to plain Room. They had grown guards that refused to write while a document existed; with Room the single authority those are gone, which is what makes a rename, a reorder and a node delete actually reachable. data.refresh stays: Room's invalidation tracker does not observe writes from outside Room, so Dart asks the host to re-read the catalog after each kernel mutation
  • profiles.reorder reproduces setDisplayOrder exactly. The rows in the request become 0..n-1; ids naming no group are dropped, duplicates count once, and groups the caller omitted follow in their stored order. Renumbering only the named rows would interleave them with the ones left behind — the ordering rule is a Go function with tests, not SQL inline
  • The dead JSON-profile code is gone: ProfileJsonStore, GroupJsonStore, profile_store.go's document store, and their tests. RoomToJsonMigration now seeds only the three route tables, because profiles and groups never need a document

v4.0.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 19:50
9b64a3e
  • The platform line moves to compileSdk 37 and current dependency majors. OkHttp is now 5.5.1, ZXingLite 3.5.0, rosemoe editor 0.24.7 without a Kotlin stdlib exclusion, and ThroneCore follows 5e753ce7; targetSdk remains 35 pending a separate platform behavior review

v3.3.2

Choose a tag to compare

@github-actions github-actions released this 09 Nov 17:15
1295ce6

Development notes for the next release. This section will be finalized once the 3.3.1 post-release device matrix and the 3.3.2 scope are closed.

  • The 3.3.2 maintenance pass hardens imports, scanning and kernel recovery. A subscription corpus now covers standard, MIME-wrapped and URL-safe Base64 plus JSON bodies; the import scanner is split out for reuse; QR scanning runs in a host ZXing activity and removes the mobile_scanner/ML Kit payload; profile wire encoding and the kernel heartbeat policy are independently testable; protocol, group and auto-selector pages gain render regressions; coverage gates now measure owned code rather than generated FFI/vendored UI; and the roadmap reflects the current release line
  • GitHub delivery now skips redundant work. ThroneCore restores its AAR cache before cloning the pinned core; docs-only changes take a lightweight CI path; automatic previews skip commits with no app or build-input changes since the latest release tag; CI artifacts upload only on main or failure; and the governance audit runs weekly instead of daily
  • Speed tiles and delay tests follow FlClash. The dashboard keeps FlClash's 1.45 tile ratio with the traffic chart filling the area under the title. Queued proxies show a clock, the running group shows a spinner, finished nodes show their delay, and Test all runs as a visible queue in both grid and list layouts
  • Rule JSON import uses the same multiline dialog as rule fields. The import flow opens in the same title/description/text-field/action layout as the IP CIDR editor, while retaining schema parsing and the route/DNS preview
  • The Kotlin bridge namespace is now io.flrone. Core, model, bridge, Flutter host, manifest, ProGuard rules, tests, JNI names, audit scripts and live docs moved from io.throne.bbox; the existing io.flrone/box MethodChannel is unchanged
  • DNS rule import has a dialog regression test. The test enters the JSON in the same dialog field and taps its actual Import action instead of bypassing the UI path
  • Rule and proxy interactions are tightened. JSON import now uses the same multiline dialog as the rule fields; the node speed-test panel hides IP check, test kind and scope; clicking a node delay shows a visible running spinner until the test finishes; and upload/download charts use distinct colors
  • The follow-up FlClash and Throne parity round lands. The speed panel keeps both upload (tertiary) and download (primary) curves after a test finishes; proxy cards consume the live test session so queued nodes show clocks and only the active node spins while groups.test stays pending for the whole run. Outbound IP details use the newest of the IP and quality timestamps, JSON import classifies route and DNS rules without a kind picker, and Node presets now match Throne for Android's mode-dependent Mux/Xray rows, fragment gating, uTLS choices, TLS-trick scope and combined HTTP/2 plus QUIC section
  • Review cleanup removes the duplicate latency path and closes two edge cases. Retesting a node now ignores the previous finished session until the new session starts, mixed route/DNS imports validate each rule against the correct schema instead of producing false errors, and the orphaned fire-and-forget test methods are gone so only the awaitable bridge path remains
  • Preview publishing follows successful main CI automatically. release.yml now listens for the completed CI workflow, verifies the tested commit is still main, skips an already-published tag, and publishes the next vX.Y.Z-pre.N GitHub prerelease with the existing signed asset and no throne-update.json; stable releases remain manual or tag-driven
  • Proxy delay testing now follows FlClash's target selection. The group action tests only the rows visible after search/timeout filtering, a node action tests exactly that node, and Test all keeps the full group set while the existing per-row queued/running session animation remains intact
  • Delay tests now measure the live exit instead of trusting a probe. The running node is tested through the instance already carrying traffic and its result is persisted to the card; probe tests for other nodes issue one request like FlClash, use at least an 8-second floor and migrate the legacy Cloudflare default to generate_204. Group and Test all runs measure the live node separately, so a probe-box failure can no longer mark an actually working exit as unreachable
  • Runtime regressions are closed in one pass. The outbound IP card follows the live core instead of a stale mixed-inbound cache, stamps each answer when it arrives, and shares one routed HTTP path with quality checks; proxy delay tests always clear their spinner with a bounded native session; single-rule enable/disable saves canonical booleans, refreshes the list and reloads the active route; replaced egress clients and detached probe sessions release their dispatchers and connection pools
  • GitHub validation is no longer duplicated. ci.yml runs feature branches only through their pull request and reserves push runs for main, so one commit no longer creates both push and pull-request copies of the same build, Flutter tests and audit artifact uploads
  • Preview and stable share one package identity and one release workflow. Both channels now build with PACKAGE_NAME (com.throneflclash) and the same release signing key, so a preview can upgrade a stable install in place. release.yml handles channel=preview|stable; the separate preview workflow is removed while GitHub prereleases, artifact-only builds and the no-manifest preview contract remain intact
  • Verification: main@fa3a18db CI and CodeQL are green, the unified preview build 3.3.2-pre.11 is published, and 424 Flutter tests pass on this follow-up branch. The 3.3.1 physical-device matrix remains tracked in Issue #17; the 3.3.2 baseline was closed in Issue #22