使用apksigner给apk签名

背景

签名放在工程中不安全,于是决定放在jenkins上

对齐

zipalign -v -p 4 my-app-unsigned.apk my-app-unsigned-aligned.apk

签名

apksigner sign --ks E:\test.jks --ks-pass pass:test123  --out E:\test2-signed.apk E:\my-app-unsigned-aligned.apk

补个不存在的教程连接
| https://developer.android.com/studio/publish/app-signing.html#secure-shared-keystore

你可能感兴趣的:(使用apksigner给apk签名)