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

after commit 1cbaad3, code seach doesn't work properly #755

Closed
ryu-s-r opened this issue Oct 3, 2019 · 3 comments
Closed

after commit 1cbaad3, code seach doesn't work properly #755

ryu-s-r opened this issue Oct 3, 2019 · 3 comments

Comments

@ryu-s-r
Copy link

ryu-s-r commented Oct 3, 2019

after 1cbaad3
image

at 401d08e
image

@jpstotz
Copy link
Collaborator

jpstotz commented Oct 4, 2019

@ryu-s-r Have you checked how the decompiled code of the class MainActivity has changed?
May be the method startActivityForresult has decompiling problems/errors and therefore is no longer shown in the search result.
Furthermore can you provide the APK file you used for identifying this issue?

@ryu-s-r
Copy link
Author

ryu-s-r commented Oct 6, 2019

you can find the sample APK here https://apkplz.net/app/com.beauty.cool.camera (not the same as on the screenshots,but the same problem occurs)

@skylot
Copy link
Owner

skylot commented Oct 21, 2019

Thank you @ryu-s-r !
I made a fix for this issue.
Class was not indexed due to exception:

ERROR - Index error in class: com.beauty.cool.camera.MainActivity
jadx.core.utils.exceptions.JadxRuntimeException: JavaClass not found by ClassNode: com.beauty.cool.camera.MainActivity.1.ax
	at jadx.api.JadxDecompiler.getJavaClassByNode(JadxDecompiler.java:332)
	at jadx.api.JadxDecompiler.convertNode(JadxDecompiler.java:389)
	at jadx.api.JavaClass.getUsageMap(JavaClass.java:143)
	at jadx.gui.utils.CodeUsageInfo.processClass(CodeUsageInfo.java:39)

which occur if class contains not generated inner class (like anonymous class in this example).

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