NativeLoader

修复isEmu里因手残导致的问题
This commit is contained in:
HanaHime 2024-02-29 19:32:36 +08:00
parent 1f620bcc06
commit fc0d7a62af

View File

@ -38,8 +38,9 @@ internal object NativeLoader {
val field = clazz.getDeclaredField("vmInstructionSet")
field.isAccessible = true
val instructionSet = field.get(runtime) as String
instructionSet.contains("x86")
if ( instructionSet.contains("x86") ) {
XposedBridge.log("[Shamrock] 反射检测到 Android x86")
true } else { false }
} catch (e: Exception) {
XposedBridge.log("[Shamrock] $e")
false