Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
liu7yong committed Oct 18, 2017
1 parent 0351a4b commit 6367522
Showing 1 changed file with 8 additions and 1 deletion.
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

0 comments on commit 6367522

Please sign in to comment.