-
Notifications
You must be signed in to change notification settings - Fork 18
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
Package name clashes with class name #17
Comments
hi, thanks!
so... obfuscated code. please clarify the problem. this is what i understand:
questions:
thanks! |
|
Yes, all the methods I want to edit are instance methods. |
if you DON'T have to edit instance methods, you can define any other class and however if you have to edit instance methods, it might or might not work. the the other solution is this:
|
if you look at DexPatcher/dexpatcher-tool#14 you will find this item that would help with your case a lot:
rewrite here means alter all declarations and code in the class, replacing one type with the other. this sounds hard to do but it is not so. |
thank you, I've tried the easy approach with @DexEdit. Unfortunately, it doesn't work - the app crashes throwing java.lang.ClassNotFoundException: Didn't find class "xxx.MainActivity" |
There is no classes.zip, just classes.jar with no java files :( |
Nevermind, found it. |
Okay, if somebody else will ever have this problem: The trick with 2 separate projects works. |
FYI, there are two roadplan items that fix this:
|
item 1) is now implemented in dexpatcher-gradle v0.4.5. |
and now you can also use cross-class edits in dexpatcher-tool v1.5.0. thanks! |
awesome! :) |
How can I modify a member of such package?
I'm trying to edit com.somedomain.a.a but there's also a class named com.somedomain.a.
Btw, DexPatcher is a great tool, thank you for developing it :-)
The text was updated successfully, but these errors were encountered: