Repository navigation
feat: Android app (wireless debugging, Shizuku or root) - #675
Merged
Merged
Conversation
android/ is a small Compose app with the aarch64-linux-android client inside (libpcsc.so). It runs the client the way scripts/android-adb.sh does: copied to /data/local/tmp/pcsc-rs and kept running by a detached loop, through su or a Shizuku user service (shell user). It keeps PASS, the name and the server, reads them from an earlier adb install, shows the state and the log, and can start the client after a restart. The build workflow puts the Android client into the APK, signs it when the signing secrets are there, and attaches it to releases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…of Shizuku The app pairs with wireless debugging itself (the code is typed into a notification, found with mDNS) and runs commands over its own adbd connection as the shell user (libadb-android, Apache-2.0). Once connected it grants itself WRITE_SECURE_SETTINGS, so it can switch wireless debugging on by itself: for the Start button and to start the client after a restart (switching it back off afterwards). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Wireless debugging needs Wi-Fi to connect; Shizuku, once started, keeps working without it. The app now offers wireless debugging, Shizuku and root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Release builds call build.yml without the Android signing secrets, so no APK would be attached: pass them (secrets: inherit). Pull requests are no longer signed with the release key, and the signing step does not trace. The post-release step no longer pastes the commit message into a printf format. - Root mode runs as the shell user (su 2000). It ran the client as root from files the shell user could replace, and switching to wireless debugging or Shizuku afterwards could not stop it. - Start on boot over wireless debugging leaves it on when USB debugging is off: switching it off stops adbd, and init kills the client with it. The screen warns when USB debugging is off. - Pairing says so when notifications are blocked, instead of opening Settings with nowhere to type the code. - Shizuku errors (service died, bind timeout) no longer crash the app; start on boot skips settings the screen would reject; a failed copy of the bundled client stops the start. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Zel9278
force-pushed
the
feat/android-app
branch
from
October 9, 2026 14:15
b1ecd40 to
15db23d
Compare
Zel9278
marked this pull request as ready for review
October 9, 2026 14:21
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容
pcsc-rs を動かす Android アプリ(
android/)。動かし方は3つから選ぶ。WRITE_SECURE_SETTINGSを付けて、以後はワイヤレスデバッグを自分でオンにできるsuを1本開けっぱなしにして使うlibpcsc.soとして入れる(useLegacyPackagingで展開させる)scripts/android-adb.shと同じ。/data/local/tmp/pcsc-rsにコピーして、端末から切り離したループで常駐させる.envがあれば読み込む)assembleRelease。署名用の secrets があれば署名して、リリースにpcsc-rs-<tag>-android.apkを添付するレビューでの修正
secrets: inherit)。PR のビルドはリリース鍵で署名しない。署名のステップはトレースしないsu 2000(shell の権限)で動かす。root で動かすと、shell ユーザーが書き換えられるファイルを root で実行することになり、あとで別の方式から止められなかった確認
🤖 Generated with Claude Code