Android remote connector: New client then immediately Disconnected client on ColorOS / HyperOS
Author: TianyoulianglCreated Aug 22, 2026Updated Aug 23, 2026
Environment
- Letos version: latest release
- Test devices:
- Xiaomi HyperOS (Android 15)
- OnePlus ColorOS (Android 15)
- App: Android debug build, using Room (WAL mode enabled)
- JAR: Android connector JAR exported inside Letos (
工具 → 获取 Android 连接器 JAR 文件)
Problem description
When using USB cable‑port forwarding Android remote connection:
- The
SQLiteStudioRemoteservice inside Android app starts successfully and listens on custom port (e.g. 33000). Log showsStarted instance on port 33000andListening for clients.... adb forward tcp:33000 tcp:33000executed successfully on host.- Inside Letos, click "Test connection": TCP connection succeeds, returns green checkmark.
- But every time trying to open database, log on Android device prints: New client from 127.0.0.1 Disconnected client 127.0.0.1 Socket is accepted, then immediately closed during upper‑layer protocol handshake. The OK button remains gray, cannot establish real database session.
Ports have been changed (12121 / 33000), cold‑start app, restart Letos, clean rebuild project, all reproduce this issue.
This issue happens on ColorOS / HyperOS custom ROMs. On stock Android devices this remote mode works fine.
Expected behavior
Remote Android connection can complete protocol handshake and open SQLite database normally.
Additional info
Many similar existing issues in dbandroid repository about New client → Disconnected immediately on Chinese custom ROMs (HyperOS / ColorOS). The TCP layer works well, but custom protocol handshake fails.
Source: pawelsalawa/letos