packer-ng-plugin icon indicating copy to clipboard operation
packer-ng-plugin copied to clipboard

使用脚本进行V2签名验证显示成功,但是安装app时报错

Open AWarmHug opened this issue 2 years ago • 3 comments

企业微信截图_20220323172850

D:\MyConfiguration\签名>java -jar packer-ng-2.0.1.jar verify build\app-release-123456.apk ========== APK Verify ========== File: app-release-123456.apk Signed: true Channel: 123456

D:\MyConfiguration\签名>adb install build\app-release-123456.apk Performing Streamed Install adb: failed to install build\app-release-123456.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl35742925.tmp/base.apk using APK Signature Scheme v2: Size of APK Signing Block is not a multiple of 4096: 12343]

AWarmHug avatar Mar 23 '22 09:03 AWarmHug

ref: https://github.com/Meituan-Dianping/walle/pull/259 使用版本低于28.0.x的apksigner进行签名试试

mcxiaoke avatar Mar 26 '22 04:03 mcxiaoke

@mcxiaoke 我们参考walle这部分代码修改了一下,貌似没有问题了

AWarmHug avatar Mar 30 '22 08:03 AWarmHug

@AWarmHug 有packer-ng改过的版本吗?

iworkcloud avatar Jun 27 '22 12:06 iworkcloud