From 38adf7d7b902ef648b0edaf98ff541e4256144e8 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Thu, 20 Jan 2022 21:21:27 +0100 Subject: [PATCH] Makefile: Sign the debug apk with scheme v2 --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 268c48f..6b873e4 100644 --- a/Makefile +++ b/Makefile @@ -55,9 +55,8 @@ $(DEBUG_KEYSTORE): -keyalg rsa -storepass $(DEBUG_PASSWD) -validity 10000 _build/%.debug.apk: _build/%.debug.unsigned-apk $(DEBUG_KEYSTORE) - jarsigner -keystore $(DEBUG_KEYSTORE) \ - -storepass $(DEBUG_PASSWD) -keypass $(DEBUG_PASSWD) \ - -signedjar "$@" "$<" debug + apksigner sign --in "$<" --out "$@" \ + --ks $(DEBUG_KEYSTORE) --ks-key-alias debug --ks-pass "pass:$(DEBUG_PASSWD)" # Debug apk