From 0503a618013b6de7a2885a09d6b845dd4be552c6 Mon Sep 17 00:00:00 2001 From: SanyaNya Date: Wed, 3 Jul 2024 20:22:04 +0300 Subject: [PATCH] Add info about apk signing --- docs/building.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/building.md b/docs/building.md index c2d4c9b6..b87dfda6 100644 --- a/docs/building.md +++ b/docs/building.md @@ -56,6 +56,17 @@ Review and accept the licenses with sdkmanager --sdk_root="${HOME}/Android" --licenses ``` +#### Apk signing +Your device may refuse to install an unsigned apk, so you must create signing keys before building the client +``` +# Create key, then enter the password and other information that the tool asks for +keytool -genkey -v -keystore ks.keystore -alias default_key -keyalg RSA -keysize 2048 -validity 10000 + +# Substitute your password that you entered in the command above instead of YOUR_PASSWORD +echo signingKeyPassword="YOUR_PASSWORD" > gradle.properties +``` +Once you have generated the keys, the apk will be automatically signed at build time + #### Client build From the main directory. ```bash @@ -66,4 +77,4 @@ export JAVA_HOME=/usr/lib/jvm/openjdk-bin-17/ # Or for Pico assemblePico ``` -Outputs will be in `build/outputs/apk/standard/release/WiVRn-standard-release-unsigned.apk` +Outputs will be in `build/outputs/apk/standard/release/WiVRn-standard-release.apk`