Application Android signant avec une YubiKey – Matthew Nelson

Application Android signant avec une YubiKey – Matthew Nelson

Signature de la version finale:

$ set -o history
// Android SDK location
$ export ANDROID_SDK=~/path/to/Android/Sdk/
// Build tools version expressed in build.gradle
$ export BUILD_TOOLS_VERSION=29.0.3
// Your app's minSdkVersion expressed in build.gradle
$ export MIN_SDK_VERSION=23
// Your app's compileSdkVersion expressed in build.gradle
$ export MAX_SDK_VERSION=29
// Replace  with your actual PIN$ $ANDROID_SDK/build-tools/$BUILD_TOOLS_VERSION/apksigner sign 
--ks NONE
--ks-pass "pass:"
--min-sdk-version $MIN_SDK_VERSION
--max-sdk-version $MAX_SDK_VERSION
--provider-class sun.security.pkcs11.SunPKCS11
--provider-arg ~/.pkcs11_java.cfg
--ks-type PKCS11
--out app-release-signed.apk
app-release-unsigned.apk
$ $ANDROID_SDK/build-tools/$BUILD_TOOLS_VERSION/apksigner verify 
--verbose app-release-signed.apk
Sortie du terminal – Apksigner Verify
$ set +o history

Et c’est un tour! Prendre plaisir!