Fwd: How to call Strace native library in Android application?

Saba Arshad sabarshad1000 at gmail.com
Tue Feb 28 03:51:31 UTC 2017


---------- Forwarded message ----------
From: Saba Arshad <sabarshad1000 at gmail.com>
Date: Tue, Feb 21, 2017 at 6:21 PM
Subject: Fwd: How to call Strace native library in Android application?
To: strace-devel at lists.sourceforge.net



---------- Forwarded message ----------
From: Saba Arshad <sabarshad1000 at gmail.com>
Date: Tue, Feb 21, 2017 at 6:18 PM
Subject: How to call Strace native library in Android application?
To: strace-devel at lists.sourceforge.net


Hello Sir,

I am developing an android security application in my MS Research where I
want to use Strace by an android application programmatically, So I
imported Strace for Android from the source [1] which contains .c files, shown
in the image below, 1.png.

All the .c files are added automatically in the cpp folder when i gave the
path of Android.mk file. the Android.mk file is given in link [2] and
MainActivity.java is given in the image 2.png.

Now i want to call the strace from the android application by adding
strace.c native library. The problem is that when I give the name of
starce.c as the native library the application stops unexpectedly. Anyone
knows why this is happening? please let me know if i am missing something.

I have already posted this question at stack overflow [3] but could not
find any help unfortunately.


Thanks in Advance.

Saba Arshad

MS Research Student

COMSATS Institute of Information Technology, Islamabad.


References:

[1] https://github.com/android/platform_external_strace

[2] https://github.com/android/platform_external_strace/
blob/master/Android.mk

[3] http://stackoverflow.com/questions/42293495/how-to-
call-strace-native-library-in-android-application
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170228/8d25e468/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.png
Type: image/png
Size: 30470 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170228/8d25e468/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.png
Type: image/png
Size: 46334 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170228/8d25e468/attachment-0001.png>


More information about the Strace-devel mailing list