[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser-build][main] Bug 41912: add newish --alignment-preserved argument to apksigner sign calls



Title: GitLab

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:

Changes:

  • tools/signing/generate-keys/sign-apk
    ... ... @@ -14,5 +14,5 @@ if test "$#" -ne 1; then
    14 14
     fi
    
    15 15
     
    
    16 16
     apksigner sign --ks "$script_dir/android-key/${key_alias}-private.p12" \
    
    17
    -               --ks-pass "pass:${key_password}" --out signed.apk "$1"
    
    17
    +               --ks-pass "pass:${key_password}" --alignment-preserved true --out signed.apk "$1"
    
    18 18
     echo "Signed $1 in signed.apk"

  • tools/signing/wrappers/sign-apk
    ... ... @@ -58,7 +58,7 @@ sign_apk() {
    58 58
         echo Signing ${INPUTAPK}
    
    59 59
     
    
    60 60
         # Use this command if reading key from file
    
    61
    -    apksigner sign --verbose -ks ${android_signing_key_path} --ks-type pkcs12 --ks-pass env:KSPASS --debuggable-apk-permitted=false --out "${SIGNEDAPK}" "${INPUTAPK}"
    
    61
    +    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}"
    
    62 62
     
    
    63 63
         # Or, use below command if using a hardware token
    
    64 64
         # 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}"
    

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx