Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/com/alipay/euler/andfix/Compat.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public static synchronized boolean isSupport() {
private static boolean isYunOS() {
String version = null;
String vmName = null;
boolean yunosLibExists = false;
try {
Method m = Class.forName("android.os.SystemProperties").getMethod(
"get", String.class);
Expand All @@ -65,8 +66,14 @@ private static boolean isYunOS() {
} catch (Exception e) {
// nothing todo
}
try {
yunosLibExists = new File("/system/lib/libaoc.so").exists()
|| new File("/system/lib/libvmkid_lemur.so").exists();
} catch (Exception e) {
// nothing todo
}
if ((vmName != null && vmName.toLowerCase().contains("lemur"))
|| (version != null && version.trim().length() > 0)) {
|| (version != null && version.trim().length() > 0) || yunosLibExists) {
return true;
} else {
return false;
Expand Down