apkinfector
apkinfector copied to clipboard
Unable to Generate APK
Hey, im using Kali 2019.4, installed all dependencies, but i am getting some errors. Tried diffrent JavaJDK (1.8, and the latest one), the errro occurs with Jarsigner and APKsigner Legit APK is about 9-10MB Any Tipps or Workarounds?
[*] Trying to Sign APK Using Jarsigner
jarsigner: unable to open jar file: /root/Desktop/apkinfector/injected.apk
[+] Signed the .apk file using ~/.android/debug.keystore
[*] ZipAligning Signed APK
==================================
Unable to open '/root/Desktop/apkinfector/injected.apk' as zip archive
mv: cannot stat '/root/Desktop/apkinfector/signed.apk': No such file or directory
[+] Output : /root/Desktop/apkinfector/Final_Infected.apk
[*] Trying to Sign APK Using APKsigner
Exception in thread "main" java.io.FileNotFoundException: /root/Desktop/apkinfector/injected.apk (No such file or directory)
at java.base/java.io.RandomAccessFile.open0(Native Method)
at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:345)
at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:259)
at java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:214)
at com.android.apksig.ApkSigner.sign(ApkSigner.java:169)
at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:340)
at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:83)
[+] Signed the .apk file using ~/.android/debug.keystore
[*] ZipAligning Signed APK
==================================
Unable to open '/root/Desktop/apkinfector/injected.apk' as zip archive
mv: cannot stat '/root/Desktop/apkinfector/signed.apk': No such file or directory
[+] Output : /root/Desktop/apkinfector/Final_Infected.apk
Same issue
Same issue here to...
There is "No such file or directory" in your error message The problem is the "injected apk" not generated. And it should occur before signing the apk.
Please provide with the full process