-
Notifications
You must be signed in to change notification settings - Fork 80
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
Patching Java .jar files and Android .aar files #15
Comments
hi, i don't understand.
thanks |
Sorry for my poor english.I want to patch a jar library to output a jar library. |
I can do it using smali, but it is hard. I want to modify Android Jar files at source-level using Java. |
what is an Android Jar file? are you talking about an "Android library" with an ".aar" extension? |
I have made a mistake with JAR (Java ARchive), I want to patch a jar file to output a jar file or patch a aar file to output a aar file. |
I want to patch some android jar file no source code, modify some code logic, use it for my app development. |
Contents of different file types and what DexPatcher can patch
DexPatcher patches Dalvik/Android bytecode, not Java bytecode, so it only works with dex and apk files. to patch jar or aar files you need to use solutions made for Java bytecode, of which are many. |
Java bytecode can be converted to Dalvik/Android bytecode by dex2jar tools.so I hope you can upgrade DexPatcher support patch jar to output jar. |
dxp does not patch java bytecode and never will. How to patch a .jar fileif you trust dex2jar (sometimes it works fine... depends), then you can:
example: the dexpatcher-tool test build system and shell script. How to patch an .aar fileinside the aar file there is a classes.jar file. extract it and patch it as per the above steps. if you need to patch the aar resources, go ahead and edit them manually; resources in aar files are not compiled. |
patch-lib in dexpatcher-gradle-samples is not only patch library, I need patch only jar library sometimes.
The text was updated successfully, but these errors were encountered: