Can DynamoRIO instrument Android app?

284 views
Skip to first unread message

Rewhy

unread,
Nov 3, 2015, 10:31:06 PM11/3/15
to DynamoRIO Users
Now I have run DynamoRIO on Android 4.4 successfully, however I can only use it to instrument android application running in native layer.
So I want to know how to instrument Android app concluding both gui and native module (.so) with DynamoRIO. 
Thanks. 

Qin Zhao

unread,
Nov 3, 2015, 11:39:45 PM11/3/15
to dynamor...@googlegroups.com
DR only instrument code at native binary level. It makes more sense to let the virtual machine to instrument the app code that is running on the VM. 

--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynamorio-use...@googlegroups.com.
To post to this group, send email to dynamor...@googlegroups.com.
Visit this group at http://groups.google.com/group/dynamorio-users.
For more options, visit https://groups.google.com/d/optout.



--
Interested in Yoga? Be careful of The Yoga Cult or The Scary Yoga Obsession.
More information from  Lorie Anderson and Rick Ross.

Rewhy

unread,
Nov 4, 2015, 8:03:30 AM11/4/15
to DynamoRIO Users
If I want to use DR to instrument the native library of one Android apk , how I should do? 
Thanks so much.

Qin Zhao

unread,
Nov 4, 2015, 2:36:29 PM11/4/15
to dynamor...@googlegroups.com
On Wed, Nov 4, 2015 at 8:03 AM, Rewhy <qqxu...@gmail.com> wrote:
If I want to use DR to instrument the native library of one Android apk , how I should do? 
Thanks so much.

You mean an Android app has both native part and non-native part. DynamoRIO does not support such hybrid execution on Android.
To support that, you need change the system to let VM to pass the control to DR instead of directly executing the native code.
That sounds an interesting project, and we welcome any contribution on that.

Rewhy

unread,
Nov 4, 2015, 10:31:37 PM11/4/15
to DynamoRIO Users
I got it and I will take a try. Thanks so much.
Message has been deleted

zakk...@gmail.com

unread,
Nov 5, 2015, 11:40:09 PM11/5/15
to DynamoRIO Users
Hello, I also interested in dynamorio especially with ART runtime in anndroid 5.0
Could you tell me about possibility of instrumentation or tracing odex binary? ( in ART, odex is a kind of android customized ELF which is compiled by AOT compiler)
Thanks.

Qin Zhao

unread,
Nov 8, 2015, 3:58:57 PM11/8/15
to dynamor...@googlegroups.com
I am not a real expert on Android.

We just port DynamoRIO to ARM and native app for Android, have not tried the ART, so I am afraid that I cannot help you much on that.
If you tried or have more information about it, please share your knowledge with us, which would help us make it happen.

zakk...@gmail.com

unread,
Nov 9, 2015, 5:03:11 AM11/9/15
to DynamoRIO Users
I'm also not expert(even beginner) about dynamoRIO, but of course I'll share my knowledge if i get any information about this.
Thanks

Qin Zhao

unread,
Nov 9, 2015, 10:19:09 AM11/9/15
to dynamor...@googlegroups.com
I would love to help on anything DynamoRIO related.
What I really want is the details of how an ART program is running and interact with the system to see if it is possible to run with DR.

Nikhil Agrawal

unread,
Mar 15, 2021, 11:09:57 AM3/15/21
to DynamoRIO Users
Hi everyone,
I wanted to get the dynamic instruction trace for the Android Apps if we running a very basic app on Android 4.4. May I know the command for running the Dynamorio on Android 4.4? Is it 
./drrun -c /path/to/libinstrace_*.so -- path/to/apk
Is the above command correct?

Abhinav Sharma

unread,
Mar 15, 2021, 4:04:30 PM3/15/21
to dynamor...@googlegroups.com
Hi Nikhil,
The section on "Android Deployment" at https://dynamorio.org/dynamorio_docs/page_deploy.html contains more details. Does that help?

Abhinav


--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynamorio-use...@googlegroups.com.

Abhinav Sharma

unread,
Mar 15, 2021, 4:31:53 PM3/15/21
to dynamor...@googlegroups.com
We're in the process of migrating some of our pages. If the above link doesn't work, then try https://dynamorio.org/page_deploy.html#android_deploy.
Reply all
Reply to author
Forward
0 new messages