签名/重新签名apk


  • [重新签名,新签名略过]用压缩工具打开apk,删除META-INF目录
  • [生成keystore,已有略过] keytool是jdk提供的位于%JAVA_HOME%/bin/ keytool -genkey -v -keystore my.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias app
  • Zipalign build-tools/24.0.2 zipalign 4 -p my.apk my-aligned.apk 验证 zipalign -c 4 my-aligned.apk
  • 签名apksigner sign --ks my.keystore my-app.apk --ks-key-alias alias_name 验证 apksigner verify my-app.apk

来源


Copyright © FengGuangtu 2017