Details
Description
On dalvik System.getProperty("os.arch") returns "armv7l" on my Galaxy S4 mini and is therefore not detected as an embedded platform.
Changing this line in EnsembleApp
public static final boolean IS_EMBEDDED = "arm".equals(OS_ARCH) && !IS_IOS;
to
public static final boolean IS_EMBEDDED = OS_ARCH.startsWith("arm") && !IS_IOS;
and this line in PlatformFeatures
private static final boolean ARM = arch.equals("arm");
to
private static final boolean ARM = arch.startsWith("arm");
fixes the problem.
Changing this line in EnsembleApp
public static final boolean IS_EMBEDDED = "arm".equals(OS_ARCH) && !IS_IOS;
to
public static final boolean IS_EMBEDDED = OS_ARCH.startsWith("arm") && !IS_IOS;
and this line in PlatformFeatures
private static final boolean ARM = arch.equals("arm");
to
private static final boolean ARM = arch.startsWith("arm");
fixes the problem.
Attachments
Issue Links
- duplicates
-
JDK-8103396 [Android] arm detection on Android fails in Ensemble
-
- Resolved
-