how to call the strace executable in android application project?
Dmitry V. Levin
ldv at altlinux.org
Fri Mar 3 13:21:07 UTC 2017
Hi,
On Fri, Mar 03, 2017 at 11:53:10AM +0500, Saba Arshad wrote:
> Hello Sir,
>
> >From many days i am trying to add strace in my application and call it at
> run time. for this purpose i have installed ndk, imported strace package
> through Android.mk file.
strace is a regular executable, you don't have to import its sources
if all you need from strace is just to execute it.
[...]
> I cannot find any documentation about *BUILD_SHARED_LIBRARY* at
> official page (https://developer.android.com/ndk/guides/android_mk.html).
>
> I cannot find any way of calling the strace executable in java class,
> as for shared library we can use System.loadlibrary(strace).
>
> Can anyone suggest me the solution?
As strace is a regular executable, you are in fact looking for a method
of invoking regular executables on the platform of your choice.
This must be a very basic knowledge, though.
--
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/20170303/45f02c30/attachment.bin>
More information about the Strace-devel
mailing list