Android
Store
A private app store for my own apps
Why I built it
My Android apps are built for me and my phone, and I release them often. Copying APKs to the phone by hand got old quickly, and it skipped every check that an installed app is the one I built.
So I built a store just for them. A push to main publishes every app whose code changed, and the Store on my phone shows the update and installs it, including updates to itself.
What it does
- Lists my apps, shows which ones have updates, and installs or updates them.
- Checks each download's SHA-256 hash, package name and signing certificate before installing it.
- Checks for updates in the background.
- Download links are signed and expire after 10 minutes.
- One command, pnpm release, builds, verifies and publishes an app by hand.
- CI publishes each app whose folder, native module or shared packages changed on every push to main.
How it works
Builds are uploaded to Cloudflare R2 through a small Cloudflare Worker, which also keeps the store's manifest. The Store app fetches the manifest with a token, asks the Worker for a signed download link, and hands the verified APK to Android's package installer.
Every app is signed with one key, and the Store pins that certificate, so an APK signed by anyone else is refused. Downloads and update checks run on WorkManager, so they finish even when the app is in the background.
Why not just publish to Google Play?
These apps exist for one phone, mine. Play would mean a developer account, a review for every release, and policy reviews for an app that controls other apps through accessibility and another that runs a VPN. None of that buys anything when the only user is me.
A private store gives me one-command releases, my own signing key and checks I control, and it was a small amount of code: one Worker and one app.
Where it stands
Installed on my phone and keeping my other apps up to date. iOS isn't set up, because installing outside the App Store needs a paid Apple developer account.