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

[ERROR] Signing Failed / could not execute zipalign - Run with '--debug' parameter #186

Closed
yayangkasep opened this issue May 27, 2022 · 34 comments
Labels

Comments

@yayangkasep
Copy link

python3 androRAT.py --build -i 0.0.0.0 -p 8080 -o hehe.apk
[INFO] Generating APK
[INFO] Building APK |
[SUCCESS] Successfully apk built in /data/data/com.termux/files/home/AndroRAT/hehe.apk
[INFO] Signing the apk
[INFO] Signing Apk |
could not execute zipalign
Run with '--debug' parameter to get additional information.

[ERROR] Signing Failed

I used android 11

@Louioui
Copy link

Louioui commented May 28, 2022

I have the same issue !

@Louioui
Copy link

Louioui commented May 28, 2022

python3 androRAT.py --build -i 0.0.0.0 -p 8080 -o hehe.apk [INFO] Generating APK [INFO] Building APK | [SUCCESS] Successfully apk built in /data/data/com.termux/files/home/AndroRAT/hehe.apk [INFO] Signing the apk [INFO] Signing Apk | could not execute zipalign Run with '--debug' parameter to get additional information.

[ERROR] Signing Failed

I used android 11
did you find any solution?

@daddydank99
Copy link

Exact problem here anyone figure it out?

@karma9874
Copy link
Owner

Solution

Windows: Download build tools 30, unzip and add the directory to your environment path. Then run the AndroRAT.

Linux: Just normal apt-get install zipalign should work.

Termux: Run pkg install aapt.

Hope this should help :)

@sainarravula575
Copy link

All good but I don't know how to download.The created application

@CayVb
Copy link

CayVb commented Feb 2, 2023

Tried all the fixes to zipalign but none work....can anyone create for me the app using this ip 192.168.0.103
caybenards@gmail.com (feedback)

@elizas6638
Copy link

Solution

Windows: Download build tools 30, unzip and add the directory to your environment path. Then run the AndroRAT.

Linux: Just normal apt-get install zipalign should work.

Termux: Run pkg install aapt.

Hope this should help :)

thanks, karma it's fixed...

@Hillellab
Copy link

Solution

Windows: Download build tools 30, unzip and add the directory to your environment path. Then run the AndroRAT.

Linux: Just normal apt-get install zipalign should work.

Termux: Run pkg install aapt.

Hope this should help :)

for kali linux, i tried apt-get as mentioned and it didnt work. try instead using sudo apt install zipalign and it should work just fine.

@AqidShah
Copy link

Zipalign is already installed
Have you found any solution to this error

@glare786
Copy link

problem soll 🙏☺️Use apk Name is only evil.apk

@glare786
Copy link

python3 androRAT.py --build -i 0.0.0.0 -p 8080 -o hehe.apk [INFO] જનરેટ કરી રહ્યું છે APK [INFO] બિલ્ડીંગ APK | [સફળતા] /data/data/com.termux/files/home/AndroRAT/hehe.apk માં apk સફળતાપૂર્વક બિલ્ટ [INFO] apk પર સહી કરવી [INFO] Apk પર સહી કરવી | વધારાની માહિતી મેળવવા માટે '--debug' પરિમાણ સાથે zipalign Run એક્ઝિક્યુટ કરી શક્યું નથી .

[ERROR] સહી કરવાનું નિષ્ફળ થયું

મેં એન્ડ્રોઇડ 11 નો ઉપયોગ કર્યો

Olny neme is evil.apk not adhar name use 🙏😊

@glare786
Copy link

dawonlod MT manager and sing apk
It's a soll 😊

@joepvd07
Copy link

I did the linux fix but it didn't work for me
sudo apt-get install zipalign
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libavfilter8 libavformat59 libplacebo208 libpostproc56 libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib libspatialite7 libsuperlu5 libswscale6 libwebsockets17 python2-minimal python2.7-minimal python3-py
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
android-libbacktrace android-libbase android-libcutils android-liblog android-libutils android-libziparchive libzopfli1
The following NEW packages will be installed:
android-libbacktrace android-libbase android-libcutils android-liblog android-libutils android-libziparchive libzopfli1 zipalign
0 upgraded, 8 newly installed, 0 to remove and 73 not upgraded.
Need to get 589 kB of archives.
After this operation, 2,046 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.belnet.be/pub/kali/kali kali-rolling/main arm64 android-liblog arm64 1:33.0.3-2 [36.5 kB]
Get:2 http://ftp.belnet.be/pub/kali/kali kali-rolling/main arm64 android-libbase arm64 1:33.0.3-2 [89.2 kB]
Get:3 http://ftp.belnet.be/pub/kali/kali kali-rolling/main arm64 android-libbacktrace arm64 1:33.0.3-2 [208 kB]
Get:4 http://ftp.belnet.be/pub/kali/kali kali-rolling/main arm64 android-libcutils arm64 1:33.0.3-2 [37.3 kB]
Get:5 http://ftp.belnet.be/pub/kali/kali kali-rolling/main arm64 android-libutils arm64 1:33.0.3-2 [53.7 kB]
Get:6 http://ftp.belnet.be/pub/kali/kali kali-rolling/main arm64 android-libziparchive arm64 1:33.0.3-2 [44.8 kB]
Get:7 http://ftp.belnet.be/pub/kali/kali kali-rolling/main arm64 libzopfli1 arm64 1.0.3-1 [91.2 kB]
Get:8 http://http.kali.org/kali kali-rolling/main arm64 zipalign arm64 1:10.0.0+r36-1 [27.9 kB]
Fetched 589 kB in 1s (466 kB/s)
Selecting previously unselected package android-liblog:arm64.
(Reading database ... 459236 files and directories currently installed.)
Preparing to unpack .../0-android-liblog_1%3a33.0.3-2_arm64.deb ...
Unpacking android-liblog:arm64 (1:33.0.3-2) ...
Selecting previously unselected package android-libbase:arm64.
Preparing to unpack .../1-android-libbase_1%3a33.0.3-2_arm64.deb ...
Unpacking android-libbase:arm64 (1:33.0.3-2) ...
Selecting previously unselected package android-libbacktrace:arm64.
Preparing to unpack .../2-android-libbacktrace_1%3a33.0.3-2_arm64.deb ...
Unpacking android-libbacktrace:arm64 (1:33.0.3-2) ...
Selecting previously unselected package android-libcutils:arm64.
Preparing to unpack .../3-android-libcutils_1%3a33.0.3-2_arm64.deb ...
Unpacking android-libcutils:arm64 (1:33.0.3-2) ...
Selecting previously unselected package android-libutils:arm64.
Preparing to unpack .../4-android-libutils_1%3a33.0.3-2_arm64.deb ...
Unpacking android-libutils:arm64 (1:33.0.3-2) ...
Selecting previously unselected package android-libziparchive:arm64.
Preparing to unpack .../5-android-libziparchive_1%3a33.0.3-2_arm64.deb ...
Unpacking android-libziparchive:arm64 (1:33.0.3-2) ...
Selecting previously unselected package libzopfli1.
Preparing to unpack .../6-libzopfli1_1.0.3-1_arm64.deb ...
Unpacking libzopfli1 (1.0.3-1) ...
Selecting previously unselected package zipalign.
Preparing to unpack .../7-zipalign_1%3a10.0.0+r36-1_arm64.deb ...
Unpacking zipalign (1:10.0.0+r36-1) ...
Setting up android-liblog:arm64 (1:33.0.3-2) ...
Setting up libzopfli1 (1.0.3-1) ...
Setting up android-libbase:arm64 (1:33.0.3-2) ...
Setting up android-libziparchive:arm64 (1:33.0.3-2) ...
Setting up android-libcutils:arm64 (1:33.0.3-2) ...
Setting up android-libbacktrace:arm64 (1:33.0.3-2) ...
Setting up android-libutils:arm64 (1:33.0.3-2) ...
Setting up zipalign (1:10.0.0+r36-1) ...
Processing triggers for libc-bin (2.37-6) ...
Processing triggers for man-db (2.11.2-3) ...
Processing triggers for kali-menu (2023.4.2) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

┌──(joepvandessel㉿kali)-[~/AndroRAT]
└─$ python3 androRAT.py --build -i 192.168.64.4 -p 4444 -o joep.apk
[INFO] Generating APK
[INFO] Building APK |
[SUCCESS] Successfully apk built in /home/joepvandessel/AndroRAT/joep.apk
[INFO] Signing the apk
[INFO] Signing Apk |
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
could not execute zipalign
Run with '--debug' parameter to get additional information.

[ERROR] Signing Failed

can anyone help me

@CODonnie
Copy link

CODonnie commented Sep 7, 2023

how do you move the apk to local after it's been built

@Gourav8078
Copy link

Just install aapt

@Gourav8078
Copy link

how do you move the apk to local after it's been built

Did you get that ?

@davidad81
Copy link

sudo apt remove zipalign

then try again it will works

@mohammadakram0705
Copy link

could not execute zipalign

I GOT THE SAME PROBLEM

THE SOLUTION IS

YOU COULD REMOVE THE zipalign USING THE FOLLOWING CODE

IN KALI LUNIX :

sudo apt remove zipalign

AFTER I WILL PASTE THE CODE

I GOT SUCESS

IF ANYBODY GOT THIS SAME ERROR YOU WILL CONTACT ME

@TimmieBimmie
Copy link

how do you move the apk to local after it's been built

If you want to move the apk to an other place in your linux system, you can just type the following: "sudo mv /mounting-point /where you want it to be

Copy link

github-actions bot commented Jan 4, 2024

This issue is stale because it has been open for 30 days with no activity.

@guyan11122222
Copy link

我的apk 签名成功了 但是在安卓上安装失败,不知道是为什么

@bayer7777
Copy link

bayer7777 commented Jan 28, 2024

I got same problem but none of the solutions above worked. It still says this.
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
could not execute zipalign
Run with '--debug' parameter to get additional information.

@jawadnaq
Copy link

did you get a solution? i have the same issue as you im on kali

I got same problem but none of the solutions above worked. It still says this. Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true could not execute zipalign Run with '--debug' parameter to get additional information.

@saalim24
Copy link

Launch another instance of terminal and use sudo apt-get remove zipalign then try again.
It worked for me.

@AvkaranGabbi
Copy link

AvkaranGabbi commented Feb 22, 2024

still not solved anyone please help
already tried #186 (comment)

@L-lawliet76
Copy link

could not execute zipalign

I GOT THE SAME PROBLEM

THE SOLUTION IS

YOU COULD REMOVE THE zipalign USING THE FOLLOWING CODE

IN KALI LUNIX :

sudo apt remove zipalign

AFTER I WILL PASTE THE CODE

I GOT SUCESS

IF ANYBODY GOT THIS SAME ERROR YOU WILL CONTACT ME

This solved the problem i was facing ,try this guys . it might work for you as well.

@AvkaranGabbi
Copy link

I have tried this, it doesn't work
It still shows:

Picked up _JAVA_OPTIONS: Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
could not execute zipalign
Run with '--debug' parameter to get additional information.

[ERROR] Signing Failed

@HipsterChipster
Copy link

I am using Kali on my Mac Book Pro and ran this and got the same error message that everyone else was getting and then I removed zipalign, reinstalled it, update -y'd that batch and rebooted and then it was fine. Signed success.20240320_032128.jpg

@15w34r0n3D4y
Copy link

15w34r0n3D4y commented Jun 13, 2024

Without errors works on Samsung A23 with Termux (from F-Droid) used aapt2 and sign.jar v1.3.0 with Java v17, but don't works on nethunter (kali) with zipalign because get error "could not execute zipalign".

AndroRAT create .apk file but zipalign maybe can't found it and that's why can't execute.

@Diloshan01
Copy link

Solution

Windows: Download build tools 30, unzip and add the directory to your environment path. Then run the AndroRAT.

Linux: Just normal apt-get install zipalign should work.

Termux: Run pkg install aapt.

Hope this should help :)

Thank You very much , It's Working

@Kevinsathvik182
Copy link

Still not working

@joelindra
Copy link

I got same error

image

How to solve ?
Try this!

sudo apt remove zipalign

image

and try again, it will working good

image

@MikasaSickoMode
Copy link

Solution

Windows: Download build tools 30, unzip and add the directory to your environment path. Then run the AndroRAT.

Linux: Just normal apt-get install zipalign should work.

Termux: Run pkg install aapt.

Hope this should help :)

still doesnt work after unzipping the build tool version 30.0.0 and adding it to the environment path still shows that it cannot execute the zipalign

@werdexs
Copy link

werdexs commented Oct 2, 2024

If someone still gets this error on kali linux

  1. Remove zipalign
sudo apt remove zipalign
  1. Go to apt sources list
sudo nano /etc/apt/sources.list

3.Add Ubuntu package sources and comment kali sources

Add # to kali source

Scroll to end and add

deb http://ftp.de.debian.org/debian buster main
  1. Update
sudo apt update

5.Install it again

sudo apt install zipalign

6.Check if androrat started
working

7.In the end delete Ubuntu sources from /etc/apt/sources.list and uncomment kali source

sudo nano /etc/apt/sources.list

Remove the # from kali source and run update

I tried everything in comments, but it didn't helped me
It's because zipalign from kali sources is broken as I think

I hope this will help you

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

No branches or pull requests