-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
working on ART runtime #8
Comments
加油, Dexposed 是一个好东西,必将造福程序猿界! |
Thank you very much! These suggestions are valuable. I will improve after evaluation. |
There was some obstacle on uploading snapshot version to JCenter, so I upload 0.2.2 version for android 5.0 test. Can anybody help me to test this version, thank you!. Notice, 0.2.2 is still a snapshot version! dependencies { |
@hwjump I found a problem when use dexposed on Android 5.1 System.
It's easy, just some utils code for Toast. The patch code is like this:
Then, I package a "Test-Patch" apk and load it on main app, but it crashed when Call "ToastUtil.showMessage". The crash only print this, can not find any stacktrace.
And I found strange that when I CALL this before a next ToastUtil.showMessage, the patch code WORK!
So I think, maybe Dexposed DID NOT automatically load system api classes. I know currently Dexposed only support dalvik runtime for now, I post this just want to help to test ART Runtime. |
@hwjump
It crashed on this line: |
@fanxu123 could you tell me your phone type and android version, 5.0 or 5.1? |
@hwjump Nexus 5, Android 5.1, Stock |
thank you! dexposed 0.1.7 was still a snapshot for art. I found it cann't do some system ui relative class in XC_MethodReplacement. |
@hwjump Btw, if I want use it on my product version only for pre-5.0, arm device, which version should I use, 0.1.1? 0.1.7? |
@fanxu123 sorry,If I support art, I will change the README.md. for pre-5.0, you can use 0.1.1 |
@hwjump Thanks! |
我想问下,dexposed支持混淆后的包么?混淆后类名方法名会被修改了,怎么hook呢? |
再问下,怎么修改重载函数,findAndHookMethod只能找到方法名,如果是重载了,怎么区分? |
@owenchow findAndHookMethod的函数原型是 |
Now I rewriter the hook core for Art, it may still have some crash, it need test, you can get it on "dev_art" branch. |
问题来了,在一年多后的今天 |
Dexpose AOP hook on ART runtime is in early beta stage, Current now it can hook the Java Method wrote in your dex, didn't inline compiled. You can see the sample code. It can't hook some system api(Such like Log.d) . And also it will native crash when call AlertDialog.showDialog() in com_taobao_android_dexposed_DexposedBridge_invokeOriginalMethodNative(). I guess it was caused by some mistake in stack transfer.
Now I was testing a different hook method for these case. Hope it will work!
The text was updated successfully, but these errors were encountered: