L-JINBIN / ApkSignatureKiller

一键破解APK签名校验
830 stars 223 forks source link

Can an old apk be signed again without old source? #12

Open riccardocapatti opened 1 year ago

riccardocapatti commented 1 year ago

Hi, i'm using an old modified apk signed with your program and after moving to a new phone with Android 13 the app crashes on boot. In the logs i found this "java.lang.Long cannot be cast to java.lang.Integer" and the cause was cc.binmt.signature (...cc.binmt.signature.PmsHookApplication.invoke(Unknown Source:20)...).

I was trying to sign it again but of course it says that it has been done already:

Exception in thread "main" org.jf.util.ExceptionWithContext: Class Lcc/binmt/signature/PmsHookApplication; has already been interned at org.jf.dexlib2.writer.builder.BuilderClassPool.internClass(BuilderClassPool.java:94)
at org.jf.dexlib2.writer.builder.DexBuilder.internClassDef(DexBuilder.java:143)
at org.jf.dexlib2.writer.builder.DexBuilder.internClassDef(DexBuilder.java:348)
at cc.binmt.signature.NKillSignatureTool.processDex(NKillSignatureTool.java:123)
at cc.binmt.signature.NKillSignatureTool.process(NKillSignatureTool.java:68)
at cc.binmt.signature.NKillSignatureTool.main(NKillSignatureTool.java:33)

Is there a fix? Can i force it? Thanks.