Sign APK with credentials from keystore.properties

This commit is contained in:
Romain Vimont
2022-06-12 15:31:46 +02:00
parent 56eb9c3106
commit 174dc17a80
5 changed files with 34 additions and 1 deletions

12
server/HOWTO_keystore.txt Normal file
View File

@@ -0,0 +1,12 @@
For an APK to be installable, it must be signed: <https://developer.android.com/training/articles/keystore>
For that purpose, create a keystore by executing this command:
keytool -genkey -v -keystore ~/.android/scrcpy.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias scrcpy -dname cn=scrcpy
(Adapt ~/.android/scrcpy.keystore if you want to generate it to another location.)
Then create server/keystore.properties and edit its properties:
cp keystore.properties.sample keystore.properties
vim keystore.properties # fill the properties