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

did you have plan to support android-l art runtime? #8

Open
hwjump opened this issue Jan 28, 2015 · 2 comments
Open

did you have plan to support android-l art runtime? #8

hwjump opened this issue Jan 28, 2015 · 2 comments

Comments

@hwjump
Copy link

hwjump commented Jan 28, 2015

Great project. But I found it can't run on art runtime while google have released android-l which change it's runtime---“art”,so I want to know did you have plan to support android-l? Thank you very much!

@t0kt0ckus
Copy link

I think you're referring to the DDI project, as the move from Dalvik to ART should not break ADBI's binary injection/hooking, which takes place in the native layer. Actually, ART breaks the Dalvik level hooking provided by DDI. But you can still use ADBI to inject native code, and from there use JNI to create a class loader that loads a DEX file, so "Java" code injection is also still possible. I think that with ART, we'll only miss "Java" level hooking, until someone find a hack.

@scintill
Copy link

I just added support for ART to my injectable class loader here. Loading only, not hooking. You can search-and-replace the dex file names and class names, and it should automatically work with both Dalvik and ART. It does not invoke any methods or constructors, so you will want to do that in a class static variable initialization, or static {} code block.

I've tested on CyanogenMod 11 with ART and Dalvik. I did a little bit of testing with CM 12, but ran into some issues on the native side, so I don't have confirmation it works there.

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