APK Ref Injector Quick Start
Before you start
Section titled “Before you start”You need:
- a Linux x86_64 host with systemd;
- the
apk-ref-injectorexecutable; - your
license.zip; sudoaccess for installation and service management.
Choose a domain or address that users will use to download APKs, for example https://apk.example.com.
Install
Section titled “Install”sudo ./apk-ref-injector install \ --license ./license.zip \ --public-url https://apk.example.com \ --bind 0.0.0.0:8080The first install creates the configuration and a random Console password, prints the password once, and does not start the service automatically. Existing configuration and data are never overwritten.
If you access the service by IP address instead of a domain, use that address for --public-url, for example http://203.0.113.10:8080.
sudo apk-ref-injector startsudo apk-ref-injector statusOpen:
https://apk.example.com/console/Sign in as admin with the printed password, then change it immediately.
Upload and download
Section titled “Upload and download”- Open Applications in the Console.
- Upload a V2/V3-signed base APK.
- Open the app and create a download link with the channel value you need.
The download URL has this shape:
https://apk.example.com/d/{app_id}/{filename}.apk?referer=channel-areferer is a query parameter. It is not the HTTP Referer header.
Verify the signature
Section titled “Verify the signature”The downloaded APK should pass the same signature check as the original:
apksigner verify --verbose downloaded.apkThe service does not re-sign the APK. The download keeps the original V2/V3 signature.