setStaticFieldValue
写入静态字段值。
Parameters
fieldName
字段名
value
新值
type
可选字段类型,用于进一步确认匹配结果
通过字段引用写入静态字段值。
Parameters
field
字段引用
value
新值
fun String.setStaticFieldValue(fieldName: String, value: Any?, classLoader: ClassLoader = HookClassLoader.currentOrDefault(), type: Class<*>? = null)
按类名写入静态字段值。
Parameters
fieldName
字段名
value
新值
classLoader
用于加载目标类的 ClassLoader
type
可选字段类型,用于进一步确认匹配结果