rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ThomasTZh/dsh-mobile
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A LAN-only Android client for DeepSeek Harness (DSH), with a native shell for the DSH web UI and a companion PC bridge for background alerts. It is unofficial and is not affiliated with, endorsed by, or sponsored by DeepSeek.
| Component | Path | Role |
|---|---|---|
| Android app | app/ |
Compose shell, DSH Pocket login, WebView host, PIN storage, local-only URL policy, QR/discovery, background alert service |
| PC alert bridge | bridge/ |
DSH plugin; subscribes to session events and serves a read-only SSE feed |
| Mock bridge | bridge/tools/mock-bridge.mjs |
Test double for the bridge contract; supports POST /emit |
DownloadManager downloads with the server cookie.localhost, and
.local/single-label names; public hosts, CGNAT, credentials in URLs, and
non-http schemes are refused before any request.Nothing from the following is bundled as source or binary except the icon attribution described below:
gradle/libs.versions.toml.| Component | Requirement |
|---|---|
| Phone | Android 10+ (minSdk 29); tested on Android 15 with WebView 155 |
| PC | Linux/macOS/Windows with dsh web and DSH Pocket 2.12.0; same LAN |
| Build | JDK 17, Android SDK 37, build-tools 36.0.0, Gradle 9.6.0 (or the Android Studio equivalent) |
| App dependencies | pinned in gradle/libs.versions.toml; AGP 9.4.0, Kotlin 2.4.20, Compose BOM 2025.08.00 |
| Bridge tests | Node.js 18+ |
| Network | Phone and PC on the same private LAN; Pocket proxy port 3081 and bridge port 3082 reachable |
The repository does not vendor the Gradle wrapper. Use Gradle 9.6.0 directly or let Android Studio use its bundled Gradle. To generate a local wrapper:
gradle wrapper --gradle-version 9.6.0 # optional; generated files are ignored
Set the SDK/JDK paths; local.properties is optional when ANDROID_HOME is set:
export JAVA_HOME=/path/to/jdk-17
export ANDROID_HOME=/path/to/Android/Sdk
gradle :app:assembleDebug
gradle :app:testDebugUnitTest :app:lintDebug
The debug APK is written to app/build/outputs/apk/debug/app-debug.apk and is
signed with the standard Android debug keystore. No keystore, APK, or build
output is committed.
The app targets SDK 36. Android 17's ACCESS_LOCAL_NETWORK runtime permission is
declared but not requested; moving to target 37 requires implementing that
request.
http://<PC-IP>:3081.The app never sends a request to a public address. If the PC is unreachable it shows a setup/retry message rather than hanging.
DSH's event bus lives inside the PC process. The companion bridge is required for reliable alerts; without it the app works normally and shows "Bridge not detected".
From the repository root, install the bridge into the DSH web profile:
bridge/scripts/install-into-profile.sh
The script links the plugin into $DSH_HOME/local-plugins, adds it to the
profile with pnpm, and appends an insert to cordis.patch.yml. It does not
restart dsh web. The profile's live patch reload may load it immediately; if
not, restart DSH when convenient (that ends the current DSH session).
Verify the bridge from the PC:
PIN=$(tr -d '\r\n' < ~/.dsh/dsh-pocket/token-lan)
curl -s -H "Authorization: Bearer $PIN" http://127.0.0.1:3082/health
On the phone: Menu -> Settings -> Background alerts, grant notification permission, and allow unrestricted battery use if the phone is aggressive.
The bridge exposes no command channel. It is read-only and local-only; see
bridge/README.md for the event contract, install/uninstall,
security notes, and tests.
All commands below were run from a clean release tree unless marked otherwise.
| Check | Command / conditions | Result |
|---|---|---|
| Debug build | Gradle 9.6.0, JDK 17, SDK 37; gradle :app:assembleDebug |
pass; APK produced |
| App unit tests | gradle :app:testDebugUnitTest |
31 tests pass |
| Lint | gradle :app:lintDebug |
pass |
| Bridge tests | cd bridge && node --test test/*.test.mjs |
14 tests pass |
| Device smoke | development phone; connectedDebugAndroidTest |
pass in development; not repeated in the clean tree because the runner uninstalls the app and its data |
| Live LAN E2E | Android 15 phone + DSH Pocket 2.12.0 + DSH web, development network | connect, DSH UI, drawer, composer, keyboard, PIN storage, notification permission/tap, recents-swipe stop, task-removal cleanup |
| Live alert | real bridge on the PC; one real DSH ask_user_question |
high-priority question notification delivered and cleared after answering; the matching turn-done was intentionally suppressed by the question alert |
| Mock alert paths | mock bridge POST /emit |
done, approval, question, error and clear notifications observed; recents swipe cancels the service notification |
| Icon licence | source/licence inspection | MIT; attribution and full notice included |
The live tests used a private development network and a phone; the exact hardware/network prerequisites are listed above and are not needed for the software-only checks. No performance or battery benchmark was run.
The app provides a small, local-only Android access path to DSH with native authentication and background alerts. It deliberately adds no cloud relay, no account system, and no command endpoint. The main replication boundaries are the separate GPL-2.0 DSH Pocket proxy, the PC-side bridge install, and phone/network conditions that cannot be reproduced by a software-only checkout.
blob:/data: links is not supported by WebView's download
callback.ACCESS_LOCAL_NETWORK runtime request
remain future work.THIRD_PARTY.md for complete attribution, licences,
modification details, and the full MIT text for the icon.The original source code, tests, build configuration, and documentation in this
repository are released under the MIT License; see LICENSE. The
launcher icon is a modified MIT-licensed work by Sutera-Diffusus and is excluded
from that copyright claim; its notice is preserved in
THIRD_PARTY.md and app/src/main/assets/THIRD_PARTY_NOTICES.txt.
Third-party dependencies remain under their own licences.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。