Repository navigation
I only have a phone. Can I build and sign my own APK without a computer? #576
Answered
by
lumenpearson
lumenpearson
asked this question in
Q&A
|
I forked the repository from my Android phone and have no computer. I want a release APK signed with my own key, so that later builds install as updates. |
Answered by
lumenpearson
Oct 17, 2026
Replies: 1 comment
|
Applies to: any version — this is how the project works by design. Yes. GitHub's runner does the build. The phone only creates the key and stores it as your fork's secrets, in Termux.
Limits:
More: https://github.com/lumenpearson/lessons/blob/main/docs/build.md#configuring-your-own-key |
0 replies
Answer selected by
lumenpearson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Applies to: any version — this is how the project works by design.
Yes. GitHub's runner does the build. The phone only creates the key and stores it as your fork's secrets, in Termux.
pkg update && pkg install -y openjdk-17 keytool -genkeypair -v -keystore release.jks \ -alias lessons -keyalg RSA -keysize 4096 -validity 10000keytoolasks for one password, then for it again. A PKCS12 keystore holds a single password, so the same one goes into bothKEYSTORE_PASSWORDandKEY_PASSWORDin step 3. If they differ, the build fails at signing. To generate a password, runhead -c 24 /dev/urandom | base64.