Resolve android type first
This commit is contained in:
parent
039082d8f8
commit
a468d08bca
|
@ -151,11 +151,6 @@ public class OSInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
static String resolveArmArchType() {
|
static String resolveArmArchType() {
|
||||||
// For Android
|
|
||||||
if(isAndroid()) {
|
|
||||||
return "android-arm";
|
|
||||||
}
|
|
||||||
|
|
||||||
if(System.getProperty("os.name").contains("Linux")) {
|
if(System.getProperty("os.name").contains("Linux")) {
|
||||||
String armType = getHardwareName();
|
String armType = getHardwareName();
|
||||||
// armType (uname -m) can be armv5t, armv5te, armv5tej, armv5tejl, armv6, armv7, armv7l, i686
|
// armType (uname -m) can be armv5t, armv5te, armv5tej, armv5tejl, armv6, armv7, armv7l, i686
|
||||||
|
@ -207,7 +202,11 @@ public class OSInfo {
|
||||||
|
|
||||||
public static String getArchName() {
|
public static String getArchName() {
|
||||||
String osArch = System.getProperty("os.arch");
|
String osArch = System.getProperty("os.arch");
|
||||||
if(osArch.startsWith("arm")) {
|
// For Android
|
||||||
|
if(isAndroid()) {
|
||||||
|
osArch = "android-arm";
|
||||||
|
}
|
||||||
|
else if(osArch.startsWith("arm")) {
|
||||||
osArch = resolveArmArchType();
|
osArch = resolveArmArchType();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue