mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
NativeLoader
修复isEmu里因手残导致的问题
This commit is contained in:
parent
1f620bcc06
commit
fc0d7a62af
@ -38,8 +38,9 @@ internal object NativeLoader {
|
|||||||
val field = clazz.getDeclaredField("vmInstructionSet")
|
val field = clazz.getDeclaredField("vmInstructionSet")
|
||||||
field.isAccessible = true
|
field.isAccessible = true
|
||||||
val instructionSet = field.get(runtime) as String
|
val instructionSet = field.get(runtime) as String
|
||||||
instructionSet.contains("x86")
|
if ( instructionSet.contains("x86") ) {
|
||||||
XposedBridge.log("[Shamrock] 反射检测到 Android x86")
|
XposedBridge.log("[Shamrock] 反射检测到 Android x86")
|
||||||
|
true } else { false }
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
XposedBridge.log("[Shamrock] $e")
|
XposedBridge.log("[Shamrock] $e")
|
||||||
false
|
false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user