Fwd: How to call Strace native library in Android application?
Dmitry V. Levin
ldv at altlinux.org
Tue Feb 28 09:05:21 UTC 2017
Hi,
On Tue, Feb 28, 2017 at 08:51:31AM +0500, Saba Arshad wrote:
> 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.
Unfortunately, your System.loadLibrary("strace.c") shows that
you are obviously missing some basic knowledge about using
.c files in java projects, please study this topic first.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170228/49063c52/attachment.bin>
More information about the Strace-devel
mailing list