-
Notifications
You must be signed in to change notification settings - Fork 567
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
New module: jadx #1932
New module: jadx #1932
Conversation
Hmmm, the file is being detected as When I run puremagic on the .APK in the test folder it is detected correctly. So it's something about reading and serving it as |
Hmm that is strange. Maybe as part of this we should add a test that runs our helpers against that file. |
Here are the detections, ranked by confidence: All of these signatures are identical (they just use the .zip magic bytes). So it is inferring android from the extension. This should be fixable by adding the extension and content type in the response: headers = {
'Content-Type': 'application/vnd.android.package-archive',
'Content-Disposition': 'attachment; filename=myapp.apk'
} |
Ah apkpure.py downloads it as {app_id}.xapk instead of the Content-Disposition header, and the mock file is apk not xapk which is whats confusing the detection (i.e. passing off a .apk file as a .xapk file) These are its results: 🤷
|
That's really strange. What could be the difference between that and running it manually? |
…tent-Disposition header
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #1932 +/- ##
======================================
- Coverage 93% 93% -0%
======================================
Files 357 363 +6
Lines 27585 27844 +259
======================================
+ Hits 25425 25651 +226
- Misses 2160 2193 +33 ☔ View full report in Codecov by Sentry. |
…up script to find the java install
The tests should be all good now. I had a bit of an issue with fedora where java was installed but it couldnt find the java binary, it recommends setting the |
Thanks for your work on this. I'll start reviewing today. |
Nice work 🙏 |
This PR adds jadx to decompile apk files
I have made some changes to apkpure to set the file extension based on the
Content-Disposition
header as sometimes apkpure.com would redirect to download a .apk file instead of a .xapk file. As logged in #1943