Commit 7159b801 authored by flx42's avatar flx42 Committed by Jean-Baptiste Kempf

LibVlcUtil: fix path of when VLC is installed as a system app

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 75374e65
......@@ -31,6 +31,7 @@ import java.nio.ByteOrder;
import java.util.Locale;
import android.content.Context;
import android.os.Build;
import android.util.Log;
......@@ -99,7 +100,13 @@ public class LibVlcUtil {
// If already checked return cached result
if(errorMsg != null || isCompatible) return isCompatible;
ElfData elf = readLib(context.getApplicationInfo().dataDir + "/lib/");
ApplicationInfo applicationInfo = context.getApplicationInfo();
String libBasePath;
if ((applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0)
libBasePath = "/system";
libBasePath = applicationInfo.dataDir;
ElfData elf = readLib(libBasePath + "/lib/");
if(elf == null) {
Log.e(TAG, "WARNING: Unable to read; cannot check device ABI!");
Log.e(TAG, "WARNING: Cannot guarantee correct ABI for this build (may crash)!");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment