-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
The return-void instruction is parsed as invoke-static. #21715
Comments
I did some recheck and found the analysis results are different depending on how R2 opens the APK. If I use
However, if I analyze the dex file with
Please let me know if anything is unclear. |
oook , i just found the root cause of the problem it have nothing to do with the disassembler or the instructions. its just loading the bin in a diffeerent base address and not relocating all the symbols. i have fixed it in a PR, but its still not pleasing all the tests yet. i added tests, so ill close the ticket when merging. thanks and sorry for the delay i was busy in many other issues |
Environment
Description
When analyzing an APK(SHA1: 42b25b60aa7d6d9f0b388c10a45e8a8f8c1fc718),
r2 parses the return-void instructions as other instructions.
Take offset 112952 as an example.
After I run aa command, pdfj command returns an invoke-static instruction.
However, it is disassembled as
return-void
by Jadx.And the decompiled code shows that
onProviderEnabled
is a void function.Please let me know if anything is unclear.
The text was updated successfully, but these errors were encountered: