Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Generate APK #4

Open
Dist0rtion opened this issue Jul 22, 2020 · 3 comments
Open

Unable to Generate APK #4

Dist0rtion opened this issue Jul 22, 2020 · 3 comments

Comments

@Dist0rtion
Copy link

Dist0rtion commented Jul 22, 2020

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 
@DiamondLink
Copy link

Same issue

@voldemort2000
Copy link

Same issue here to...

@ghost
Copy link

ghost commented Jun 17, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants