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

Memory violation error #40

Open
absidibe opened this issue Oct 3, 2015 · 7 comments
Open

Memory violation error #40

absidibe opened this issue Oct 3, 2015 · 7 comments

Comments

@absidibe
Copy link

absidibe commented Oct 3, 2015

I try the sample app on samsund S5 device (Android 5.1).
I got error :

I/art﹕ dexposed: >>> hookMethodNative 0x7739e610
void   com.taobao.dexposed.MainActivity.showLog(java.lang.String, java.lang.String)
10-03 17:22:06.186    3720-3720/com.taobao.android.dexposed I/art﹕ dexposed: >>> 
EnableXposedHook0x7739e610 void com.taobao.dexposed.MainActivity.showLog(java.lang.String, java.lang.String)
10-03 17:22:06.186    3720-3720/com.taobao.android.dexposed I/art﹕ 
dexposed:   artQuickDexposedInvokeHandler 0
10-03 17:22:06.186    2081-2081/? E/audit﹕ type=1701 msg=audit(1443885726.186:504): auid=4294967295 uid=10386 gid=10386 ses=4294967295 subj=u:r:s_untrusted_app:s0 pid=3720 comm="ndroid.dexposed" reason="memory violation" sig=11
@hwjump
Copy link
Contributor

hwjump commented Oct 9, 2015

Thank you, I got a samsung s6(Android 5.1), it crash in art code in "dex_file->GetMethodId(method->GetDexMethodIndex()", So I think samsung may change ART a lot from AOSP. I still looking for the solution.

@hwjump
Copy link
Contributor

hwjump commented Oct 13, 2015

Hey, I thought a solution, that I didn't get the shorty and returntype in native, I will got this from java. So I must do some more refactor. Hopely, GBM.

@absidibe
Copy link
Author

Thanks for your investigate. and when you should apply this modification and release and new versions. ?

@absidibe
Copy link
Author

I thing you can check
https://developer.android.com/ndk/guides/abis.html#sa
and https://github.com/promeG/XLog to see how they implement their solution with all android device

@absidibe
Copy link
Author

Try this work of Marwin... https://github.com/mar-v-in/ArtHook

@hwjump
Copy link
Contributor

hwjump commented Oct 17, 2015

Thank you very much! Let me look!

hwjump pushed a commit that referenced this issue Oct 21, 2015
@hwjump
Copy link
Contributor

hwjump commented Oct 21, 2015

I hava fix this issue, Current now "the shory" was got from java. No use ArtMethod's function. Plz check! Thank you!

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

2 participants