Repository navigation
Add cloudfone install: APK install over REST - #1
Merged
Merged
Conversation
cloudf.one serves POST /api/v1/devices/{serial}/install (live, and
documented on cloudf.one/developers since 2026-10-01), but the README
and the client docstring still said there is no APK install over REST,
so a reader would think the invite-only adb tunnel was the only way.
- CloudfoneClient.install(serial, path): multipart field `file`, a
local 512 MB check before uploading, and a 900 s timeout because the
server answers only after Android has installed the app.
- `cloudfone install SERIAL FILE` prints the installed package (--json
for the raw response). 413/429 get a hint like 401/403/404 do.
- README: new "Installing an app" section, the "no APK install" bullet
removed, and the install line now points at GitHub because PyPI has
no cloudfone-cli release yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
cloudf.one serves
POST /api/v1/devices/{serial}/install: it's live (an unauthenticated POST gets the app's own401 {"error":"unauthorized"}, not an STF 404) and documented on cloudf.one/developers since 2026-10-01. This repo still said "No APK install over REST. Use the web panel, or adb", so a reader would think the invite-only WireGuard tunnel was the only route.Client / CLI
CloudfoneClient.install(serial, path)sends multipart fieldfile(same field name asroutes/apk_install.py). It refuses a missing file or anything over 512 MB before uploading, and uses a 900 s timeout because the server answers only after Android finishes installing (nginx allows 900 s).cloudfone install SERIAL FILEprintsinstalled <package> on <serial>, or the raw response with--json.install_in_progress, Android'sINSTALL_FAILED_*) come through in the error text.Docs
cloudfone-clirelease yet.Tests: 27 passed before, 33 after (6 new: multipart field, long timeout, missing file, size cap, 409 surfacing, CLI output). pyflakes clean. Also checked against a local HTTP server that real
requestssendsContent-Length(the route answers 411 without it) andname="file".Not done: no version bump or release.
cloudfone-android-test-actionstill pinscloudfone-cli@v0.1.0, so it won't seeinstalluntil a tag is cut.🤖 Generated with Claude Code