boklm pushed to branch main at The Tor Project / Applications / tor-browser-build Commits: 1e44ffd9 by Dan Ballard at 2026-11-05T12:44:23+01:00 Bug 41912: add newish --alignment-preserved argument to apksigner sign calls - - - - - 2 changed files: - tools/signing/generate-keys/sign-apk - tools/signing/wrappers/sign-apk Changes: ===================================== tools/signing/generate-keys/sign-apk ===================================== @@ -14,5 +14,5 @@ if test "$#" -ne 1; then fi apksigner sign --ks "$script_dir/android-key/${key_alias}-private.p12" \ - --ks-pass "pass:${key_password}" --out signed.apk "$1" + --ks-pass "pass:${key_password}" --alignment-preserved true --out signed.apk "$1" echo "Signed $1 in signed.apk" ===================================== tools/signing/wrappers/sign-apk ===================================== @@ -58,7 +58,7 @@ sign_apk() { echo Signing ${INPUTAPK} # Use this command if reading key from file - apksigner sign --verbose -ks ${android_signing_key_path} --ks-type pkcs12 --ks-pass env:KSPASS --debuggable-apk-permitted=false --out "${SIGNEDAPK}" "${INPUTAPK}" + apksigner sign --verbose -ks ${android_signing_key_path} --ks-type pkcs12 --ks-pass env:KSPASS --debuggable-apk-permitted=false --alignment-preserved true --out "${SIGNEDAPK}" "${INPUTAPK}" # Or, use below command if using a hardware token # apksigner sign --verbose --provider-class sun.security.pkcs11.SunPKCS11 --provider-arg pkcs11_java.cfg --ks NONE --ks-type PKCS11 --debuggable-apk-permitted=false --out "${SIGNEDAPK}" "${INPUTAPK}" View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/1e... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/1e... You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
participants (1)
-
boklm (@boklm)