Merge branch 'CatVodTVOfficial:main' into dev

pull/1/head
Calvin Chia 4 years ago committed by GitHub
commit 50b64edf69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      app/src/main/java/com/github/tvbox/osc/util/XWalkUtils.java

@ -159,15 +159,29 @@ public class XWalkUtils {
}
public static String getRuntimeAbi() {
String result = "arm";
try {
Class cls = Class.forName("org.xwalk.core.XWalkEnvironment");
Method method = cls.getMethod("getRuntimeAbi");
String obj = (String) method.invoke(null);
return obj;
switch (obj) {
case "arm64-v8a": {
result = "arm64";
break;
}
case "x86": {
result = "x86";
break;
}
case "x86_64": {
result = "x86_64";
break;
}
}
} catch (Exception e) {
e.printStackTrace();
}
return "arm";
return result;
}
public static boolean extractXWalkLib(Context context) throws Throwable {

Loading…
Cancel
Save