[Android] [Patch] Support system application to read VLC Jni Library
Edward Wang
edward.c.wang at compdigitec.com
Tue Jun 3 03:39:15 CEST 2014
On 2014-06-02 21:35, Samuel Huang <samuel22gj at gmail.com> wrote:
>
> -------------------------------------------------------------------------------------------------------------------
> diff --git a/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
> b/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
> index 17b7b62..6e9d557 100644
> --- a/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
> +++ b/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
> @@ -94,9 +94,13 @@ public class LibVlcUtil {
> ElfData elf = readLib(context.getApplicationInfo().dataDir +
> "/lib/libvlcjni.so");
> if(elf == null) {
> - Log.e(TAG, "WARNING: Unable to read libvlcjni.so; cannot
> check device ABI!");
> - Log.e(TAG, "WARNING: Cannot guarantee correct ABI for
> this build (may crash)!");
> - return true;
> + // Support system application to using VLC Library
Support libvlcjni as a system library
> + elf = readLib("system/lib/libvlcjni.so");
Missing a slash at the beginning.
I'm not sure whether this should be in the code by default though.
Typically, VLC is not installed as a system application.
Regards,
Edward Wang
More information about the Android
mailing list