Repository navigation
Install the phone app over USB from the Windows app - #9
Merged
Merged
Conversation
Play Protect blocks browser installs of apps with a notification listener in several countries, so the Windows app now carries the release APK (phone\Orbit.apk) and installs or updates it with adb: - Pair page: "Install on phone" when the plugged-in phone has no Orbit; installs, then pairs over USB. - Settings: "Update over USB" for an older phone app, "Install over USB" for a new or reset phone (re-pairs). - Release workflow and build.ps1 build Android first and bundle the APK. - Website: the Android download is hidden for now; the Android card points to Install on phone. - Docs: README install steps, troubleshooting for "App blocked" and restricted settings, architecture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md
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.
What and why
In India, Brazil, Singapore, Thailand and other countries, Google Play Protect blocks installing Orbit's APK from a browser or file manager ("App blocked to protect your device"), because Orbit has a notification listener. Android 13+ also locks notification access for such installs ("restricted setting"). Installs through adb hit neither, and the Windows app already ships adb.
adb install -r --user currenton the bundled APK, then pairs over USB.phone\Orbit.apk. Inrelease.ymlthe Windows job now waits for the Android job, bundles its signed APK and fails if it's missing.build.ps1builds Android first. Plaindotnet buildhas no APK and hides the buttons.INSTALL_FAILED_…code, never the APK path (which contains the Windows user name).How I tested it
installerPackageName=null.--user currentinstalls for the main user only (plainadb installfails there with a SecurityException).Not tested
Checklist
dotnet test windows/Orbit.Testspasses (no Android changes; CI runs the Android checks)CHANGELOG.mdupdated🤖 Generated with Claude Code