AndroidManifest.xml not found
HackJJ opened this issue · comments
So, I get an error saying AndroidManifest.xml not found
with the below. I can run jadx
against the APK successfully. What is happening?
❯ python3 APKDeepLens.py -apk Example.apk
████ █████ ██ ██ ( ) (_ )
██ ██ ██ ██ ██ ██ _| | __ __ _ _ | | __ ___ ___
██████ █████ ████ /'_` | /'_`\ /'_`\( '_`\ | | /'_`\/' _ `\/',__)
██ ██ ██ ██ ██ ( (_| |( __/( __/| (_) )| |__ ( __/| ( ) |\__, \
██ ██ ██ ██ ██`\__,_)`\___)`\___)| ,__/'(____/`\___)(_) (_)(____/
| |
(_)
- Made By Deepanshu
[+] /Users/jj/Documents/APKDeepLens/Example.apk found!
[+] Creating new directory for extracting apk : /Users/jj/Documents/APKDeepLens/app_source/Example.apk
[+] Extracting the source code to : /Users/jj/Documents/APKDeepLens/app_source/Example.apk
INFO - loading ...
CompletedProcess(args=['/Users/jj/Documents/APKDeepLens/static_tools/jadx/bin/jadx', '/Users/jj/Documents/APKDeepLens/Example.apk', '-d', '/Users/jj/Documents/APKDeepLens/app_source/Example.apk'], returncode=0)
[-] ERROR: Manifest file /Users/jj/Documents/APKDeepLens/app_source/Example.apk/resources/AndroidManifest.xml not found.
/Users/jj/Documents/APKDeepLens/APKDeepLens.py:275: [-] [Errno 2] No such file or directory: '/Users/jj/Documents/APKDeepLens/app_source/Example.apk/resources/AndroidManifest.xml' at line 202
Hello @HackJJ
Thank you for reporting this issue. Unfortunately, I am not able to reproduce this error. Could you please tell me more about it?
Like which environment are you using, any other details.
I also encountered the same problem. At first, I thought it was the mac computer that opened jadx, and then I chose to allow it to open. This problem still exists. I think you can try running it on the mac computer.
The project is so cool . But on my windows (core i5 10210u, windows 11 version 22361 ) experiencing this problem too. hope to resole this problem soon. ERROR: Manifest file D:\test\test\test\APKDeeplens\app_source\test.apk\resources\AndroidManifest.xml not found. My Python version is Python 3.11.4
pip version is 23.1.2 and when I pip install the requirements file, it prompts 'but you have cryptography 42.0.5 which is incompat'.
Looks like it's happening with everyone, I tried on both Mac Intel Arc and M1 and it was working fine with me. @d78ui98 Pls check this.
It seems that the built-in jadx is causing this error, the built-in jadx version is ‘dev’, I use https://github.com/skylot/jadx/releases/tag/v1.4.7 to replace the/root/APKDeepLens/static_tools/jadx/, works.
@SuperZero I am not sure if it's true, because I am using same build in the repo and it's working fine. Others may try your solution and let us know if they still face same issue
It seems that the built-in jadx is causing this error, the built-in jadx version is ‘dev’, I use https://github.com/skylot/jadx/releases/tag/v1.4.7 to replace the/root/APKDeepLens/static_tools/jadx/, works.
Great answer, I successfully ran this program by downloading and resetting all files under the jadx folder.Tks Bro.
It seems that the built-in jadx is causing this error, the built-in jadx version is ‘dev’, I use https://github.com/skylot/jadx/releases/tag/v1.4.7 to replace the/root/APKDeepLens/static_tools/jadx/, works.
Thank you very much. I can also run normally now
我也遇到了同样的问题,但我是通过变更JDK的版本使用的。没有修改前系统的jdk环境=1.8,当我将jdk的版本更换为11后就可以运行了
Thank you, @SuperZero, for the jadx fix and @wujianxin0 for the JDK version upgrade insight.
Both suggestions are invaluable, and I will be updating the README to reflect the JDK version requirement to assist future users.
In my environment, I am using OpenJDK version 17, so I was unable to reproduce the error initially I thought it was due to a difference in the Python version. But thanks to you both for your insightful comments they make a significant difference 😄
Hi, first thanks for the program, i am getting the same issue, but did not solve it with @SuperZero solution, or maybe i'm doing it wrong, i downloaded the jadx zip, and replace inside the route that he gives, my python version is 3.9.2, on a linux desktop.
EDIT2: Solved it updating JDK, didnt translate @wujianxin0 at first, but thanks for the hint.