From c98be5e323c597a85a4aca2c5d49f82ec88c2109 Mon Sep 17 00:00:00 2001 From: "Chris \"Koying\" Browet" Date: Thu, 20 Nov 2014 20:17:58 +0100 Subject: FIX: [droid] aarch64 is always neon-enabled --- tools/android/packaging/xbmc/src/org/xbmc/kodi/Splash.java.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/android/packaging/xbmc/src/org/xbmc/kodi/Splash.java.in b/tools/android/packaging/xbmc/src/org/xbmc/kodi/Splash.java.in index b5f46fcdda..d3a3efb8ef 100644 --- a/tools/android/packaging/xbmc/src/org/xbmc/kodi/Splash.java.in +++ b/tools/android/packaging/xbmc/src/org/xbmc/kodi/Splash.java.in @@ -502,8 +502,7 @@ public class Splash extends Activity { } private boolean CheckCpuFeature(String feat) { - final Pattern FeaturePattern = Pattern.compile(":.*?\\s" + feat - + "(?:\\s|$)"); + final Pattern FeaturePattern = Pattern.compile("(?i):.*?\\s" + feat + "(?:\\s|$)"); Matcher m = FeaturePattern.matcher(mCpuinfo); return m.find(); } @@ -612,12 +611,13 @@ public class Splash extends Activity { if (curArch.equalsIgnoreCase("arm")) { // arm arch: check if the cpu supports neon boolean ret = ParseCpuFeature(); + //Log.d(TAG, "/proc/cpuinfo = " + mCpuinfo); if (!ret) { mErrorMsg = "Error! Cannot parse CPU features."; Log.e(TAG, mErrorMsg); mState = InError; } else { - ret = CheckCpuFeature("neon"); + ret = CheckCpuFeature("neon") || CheckCpuFeature("aarch64"); //aarch64 is always neon if (!ret) { mErrorMsg = "This @APP_NAME@ package is not compatible with your device (NEON).\nPlease check the Kodi Android wiki for more information."; Log.e(TAG, mErrorMsg); -- cgit v1.2.3