What is Non NDK platform library?

252 views
Skip to first unread message

Anmol prakash

unread,
May 16, 2017, 10:46:14 AM5/16/17
to android-ndk
Hello ,

Can anyone explain what is Non NDK platform library ? Is
"libstagefright_soft_amrwbenc.
so" available in /system/lib is non-ndk
lib ?

Thanks
Anmol

J Decker

unread,
May 16, 2017, 11:09:42 AM5/16/17
to andro...@googlegroups.com
A complete list of public libraries is available within the NDK, under platforms/android-API/usr/lib.
 
Thanks
Anmol

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/0efe42c7-ce38-402f-8517-eb74138c682d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

J Decker

unread,
May 16, 2017, 11:13:36 AM5/16/17
to andro...@googlegroups.com
On Mon, May 15, 2017 at 9:01 PM, Anmol prakash <anmolpra...@gmail.com> wrote:
it looks like stagefright should be supported?

$ readelf --dynamic libBroken.so | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libnativehelper.so]
 0x00000001 (NEEDED)                     Shared library: [libutils.so]
 0x00000001 (NEEDED)                     Shared library: [libstagefright_foundation.so]
 0x00000001 (NEEDED)                     Shared library: [libmedia_jni.so]
 0x00000001 (NEEDED)                     Shared library: [liblog.so]
 0x00000001 (NEEDED)                     Shared library: [libdl.so]
 0x00000001 (NEEDED)                     Shared library: [libz.so]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so]
 0x00000001 (NEEDED)                     Shared library: [libm.so]
 0x00000001 (NEEDED)                     Shared library: [libc.so]

list of all native APIs

 
that doesn't actually mention stagefright though - libc, libz, .... even EGL and GLES.... 

Glenn Kasten

unread,
May 16, 2017, 11:37:33 AM5/16/17
to android-ndk
NDK APIs are listed here:

Anything else is unlikely to work reliably across a variety of device models and OS versions.
I recommend that you restrict yourself to working with NDK APIs.
If you need additional open source native libraries and they have a suitable license,
you can build them from source and incorporate them into your app.
This is safer than depending on the platform version to happen to be usable.

Dan Albert

unread,
May 16, 2017, 2:36:13 PM5/16/17
to android-ndk
 
it looks like stagefright should be supported?

$ readelf --dynamic libBroken.so | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libnativehelper.so]
 0x00000001 (NEEDED)                     Shared library: [libutils.so]
 0x00000001 (NEEDED)                     Shared library: [libstagefright_foundation.so]
 0x00000001 (NEEDED)                     Shared library: [libmedia_jni.so]
 0x00000001 (NEEDED)                     Shared library: [liblog.so]
 0x00000001 (NEEDED)                     Shared library: [libdl.so]
 0x00000001 (NEEDED)                     Shared library: [libz.so]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so]
 0x00000001 (NEEDED)                     Shared library: [libm.so]
 0x00000001 (NEEDED)                     Shared library: [libc.so]
That's showing a library that isn't valid (note that it's named libBroken). 

J Decker

unread,
May 16, 2017, 7:58:55 PM5/16/17
to andro...@googlegroups.com
well; I was hesitant to include that - but since 'c', 'm', 'dl', 'log', etc' are all listed on the supported  API page...I thought maybe it wasn't saying what I thought it was...

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
Reply all
Reply to author
Forward
0 new messages