Repository navigation
Releases
v0.5.0 — 即時代理速度與核心更新
XrayDroid v0.5.0 整合即時代理出站速度、核心基準更新與兩項回歸修正。
- 原生首頁顯示上傳/下載速度,約每秒更新,自動換算 B/s、KB/s、MB/s、GB/s。
- 修正從網頁面板重新啟動後統計序號歸零,導致首頁長時間無法取得速度的問題。
- 修正 Android TCP/UDP 權限拒絕後,在延後取樣期間持續產生無效警告的問題。
- 核心更新為 3x-ui v3.11.0、Xray-core v26.11.9、frpc v0.72.0;保留既有資料、網路選擇與獨立 frp 實例行為。
- 建置需求更新為 Go 1.27.3 與 Node.js 26,並新增 Shadowsocks AEAD/SS2022、VLESS+REALITY+Vision、Hysteria 2 的傳輸測試。
適用 Android 8.0/API 26 以上的 arm64-v8a 裝置。下載 app-release.apk 安裝;使用與既有版本相同的簽章,可直接覆蓋更新並保留資料。SHA256SUMS 提供安裝檔校驗值。
流量數值為 Xray 邏輯出站合計;多層出站串接可能重複計入資料。這個版本沿用專案的預先發行形式。實際驗證結果與已知限制見 進度紀錄。
驗證:34 項 JVM test、51 個有測試的 3x-ui Go 套件、6 項相關 race test 通過;Pixel 9 Pro XL/Android 17 完整實機 suite 為 50 項通過、1 項行動網路條件不足略過、0 失敗。ktlint、Android lint、三個原生核心 build 與 release APK 簽章驗證通過。
XrayDroid v0.4.0
Material 3 Expressive 介面與導覽動畫
- 依 Material 3 Expressive 重新設計原生介面:可收合的大型頂端列與圖示按鈕、分段式清單,首頁與 frp 實例共用狀態主視覺。
- frp 實例頁的「驗證設定」「儲存設定」移至浮動工具列;表單/TOML 改為相連的切換按鈕;表單分節改為可收合卡片;「新增伺服器」改為浮動動作按鈕。
- 預測返回過場改依 Android 設計規範的全螢幕介面規格(離開頁縮至 90%、進入頁由 110% 縮回,35% 進度處 fade through)。
- 進入子頁新增進場動畫,為返回過場的鏡像。
- 修正返回收尾動畫播放中再次返回時第二次被吃掉的問題;連按兩次現在會退兩層。
- 功能與原生核心不變;沿用 3x-ui v3.8.5、Xray-core v26.6.27 與 frpc v0.71.0。
Material 3 Expressive interface and navigation motion
- Redesigned the native interface with Material 3 Expressive: collapsing large top app bars with icon buttons, segmented lists, and a status hero shared by the home screen and frp instances.
- On the frp instance page, Validate and Save moved to a floating toolbar; Form/TOML is now a connected toggle; form sections are collapsible cards; "Add server" is a floating action button.
- The predictive back transition now follows the Android full-screen surface spec (exit scales to 90%, enter scales from 110%, fade through at 35% progress).
- Entering a subpage now animates as the mirror of the back transition.
- Fixed a second back press being swallowed while the first back's commit animation was still playing; pressing back twice now goes up two levels.
- No feature or native core changes; cores remain pinned to 3x-ui v3.8.5, Xray-core v26.6.27, and frpc v0.71.0.
安裝 / Install
下載 app-release.apk 後覆蓋安裝,或執行:
adb install -r app-release.apk版本:0.4.0(versionCode 5)。沿用既有 Android debug key 簽署,可覆蓋安裝使用相同金鑰的舊版並保留資料。
XrayDroid v0.3.1
面板連接埠 TOCTOU 修補
XuiService啟動流程改將127.0.0.1:2053綁定測試與子程序啟動緊接於同一區間,預檢 socket 持有至啟動返回後才釋放,避免第三方 App 於空檔搶先佔用連接埠,使真正的管理面板無法綁定。- 功能與原生核心不變;沿用 3x-ui v3.8.5、Xray-core v26.6.27 與 frpc v0.71.0。
Panel port TOCTOU fix
XuiServicenow performs the127.0.0.1:2053bind check and the child process spawn inside a singleServerSocketscope, holding the pre-check socket untilstart()returns so no third-party app can squat the port in the gap and force the real panel to fail binding.- No feature or native core changes; cores remain pinned to 3x-ui v3.8.5, Xray-core v26.6.27, and frpc v0.71.0.
安裝 / Install
下載 app-release.apk 後覆蓋安裝,或執行:
adb install -r app-release.apk版本:0.3.1(versionCode 4)。沿用既有 Android debug key 簽署,可覆蓋安裝使用相同金鑰的舊版並保留資料。
Requires Android 8.0 / API 26+ on arm64-v8a.
Targeted validation: ktlint, lint, unit tests, and release build passed; APK verified as versionCode 4 / versionName 0.3.1 with v2 signature (same debug certificate as previous releases). On-device instrumentation tests (ServerLifecycleTest, NetworkSwitchLifecycleTest) and the adversarial port-squatting scenario were not exercised this round — no device was available.
XrayDroid v0.3.0
frpc 多伺服器實例
- 多個伺服器實例可同時連線;各自儲存完整 TOML、驗證設定、轉發/訪客規則、支援檔案及網路選擇。
- 「設定 → frp」提供實例清單、新增與重新命名;各實例獨立啟動、停止、重新啟動及顯示連線狀態。
- 指定網路不可用時僅該實例等待恢復,停止與程序清理不影響其他實例。
- 原有設定保留為預設實例,覆蓋安裝保留既有資料。
Android 8.0/API 26 以上,僅支援 arm64-v8a。沿用 3x-ui v3.8.5、Xray-core v26.6.27 與 frpc v0.71.0。
驗證:4 項相關單元測試及 7 項相關 Pixel 9 Pro XL/Android 17 案例均有通過結果;實測兩個 frpc 同時登入不同本機 frps,確認個別重啟、網路等待與停止互不影響。Android 自動重建後的多實例恢復、其他 Android/OEM 及不同實體網路同時綁定尚未實測。
Concurrent frpc server instances
Multiple instances can connect simultaneously, each with independent configuration, authentication, proxy/visitor rules, support files, network selection, and runtime controls. Settings → frp now opens an instance list with add and rename actions. Existing settings remain in the default instance, and installing over the existing app preserves its data.
Requires Android 8.0 / API 26+ on arm64-v8a. Cores remain pinned to 3x-ui v3.8.5, Xray-core v26.6.27, and frpc v0.71.0.
Targeted validation covers 4 unit tests and 7 device cases on Pixel 9 Pro XL / Android 17, including simultaneous login to two local frps servers and independent restart, network waiting, and stop. Automatic service recreation, other Android/OEM combinations, and concurrent binding to different physical networks have not been exercised.
安裝 / Install
下載 app-release.apk 後覆蓋安裝,或執行:
adb install -r app-release.apk版本:0.3.0(versionCode 3)。沿用既有 Android debug key 簽署,可覆蓋安裝使用相同金鑰的舊版並保留資料。
SHA-256:
0be7f141ffb03ddf81eb911e869fcdcc5de3bc6b2d9a07f5e0b55182b1e6eed1
XrayDroid v0.2.0
Second release: 3x-ui v3.8.5, Xray-core v26.6.27 and frpc v0.71.0 packaged as a rootless Android app.
Highlights since v0.1.0
- Built-in frp client — full frpc v0.71.0 client with its own foreground service, connecting out to an external frps. The frp page offers both a form mode (all 8 proxy protocols, 3 visitor types, 5 server transports, validation, TLS, health checks, load balancing, metadata, rule add/remove) and a raw TOML mode, sharing one draft.
- Outbound network selection — detect interfaces, IPs and DNS, then choose system default, Wi-Fi, cellular or Ethernet per service. Xray and frp keep independent selections, persisted separately; an unavailable selection waits for recovery instead of falling back to another network.
- Live frp connection diagnostics — actual frps login, first-connection failure and reconnect state, with a dedicated diagnostic for servers that close the connection before login (for example a
tcpMuxmismatch). - Settings sub-pages and Android predictive back — the settings index, outbound network and frp pages preview the target page during a back gesture, with the gesture canceling cleanly.
- Localization — English, Traditional Chinese and Simplified Chinese.
- New launcher icon — adaptive icon with a themed monochrome variant.
- Responsiveness — frp rule lists render lazily with stable identity, TOML parsing/export moved off the input path, and panel statistics no longer block on external IP or CPU topology lookups.
Requirements
- Android 8.0 / API 26 or later,
arm64-v8a. - No root. The app runs a local server on the device; it does not use Android VPNService and does not intercept other apps' traffic.
Install
adb install -r app-release.apkOr copy the APK to the device and open it.
SHA-256 of app-release.apk:
9197178514031321d69ebebfee092bbc686ba59f4db7169ae076ff9f11655002
Upgrading from v0.1.0
Install over the existing app. Both builds are signed with the same debug key, so settings, the panel database and frp configuration are preserved.
First run
- Open the app, tap Start service, and choose whether to allow notifications.
- Tap Open admin panel; the panel is fixed at
http://127.0.0.1:2053/. - Sign in with the upstream defaults
admin/adminand change them in the panel settings. - Create inbounds on ports above 1024. Stop the service from the app or the notification; closing the dashboard does not stop it.
Notes
- Signed with the Android debug key: this is a personal-use build, not suitable for store distribution, and a differently signed build cannot upgrade it.
- Cores are version-pinned. Updating them means rebuilding the APK with
./scripts/build-core.shand Gradle. - Pre-release: not every Android/OEM combination, cellular transport or non-loopback frps deployment has been exercised. See the progress record for what was actually verified.
Documentation
XrayDroid v0.1.0
First release: 3x-ui v3.8.5, Xray-core v26.6.27 and frpc v0.71.0 packaged as a rootless Android app.
Requirements
- Android 8.0 / API 26 or later,
arm64-v8a. - No root. The app runs a local server on the device; it does not use Android VPNService and does not intercept other apps' traffic.
Install
adb install -r app-release.apkOr copy the APK to the device and open it.
First run
- Open the app, tap Start service, and choose whether to allow notifications.
- Tap Open admin panel; the panel is fixed at
http://127.0.0.1:2053/. - Sign in with the upstream defaults
admin/adminand change them in the panel settings. - Create inbounds on ports above 1024. Stop the service from the app or the notification; closing the dashboard does not stop it.
Notes
- Signed with the Android debug key: this is a personal-use build, not suitable for store distribution, and a differently signed build cannot upgrade it.
- Cores are version-pinned. Updating them means rebuilding the APK with
./scripts/build-core.shand Gradle. - Settings and service pages include a separate frp client (
frpcto an externalfrps) and outbound network selection.