Update YukiHookAPI

This commit is contained in:
2022-03-25 00:59:58 +08:00
parent dba85cca89
commit 85a49122d0
2 changed files with 5 additions and 5 deletions

View File

@@ -72,8 +72,8 @@ tasks.whenTaskAdded {
dependencies {
compileOnly 'de.robv.android.xposed:api:82'
implementation 'com.highcapable.yukihookapi:api:1.0.6'
ksp 'com.highcapable.yukihookapi:ksp-xposed:1.0.6'
implementation 'com.highcapable.yukihookapi:api:1.0.65'
ksp 'com.highcapable.yukihookapi:ksp-xposed:1.0.65'
implementation "com.github.topjohnwu.libsu:core:3.1.2"
implementation 'androidx.annotation:annotation:1.3.0'
implementation 'com.geyifeng.immersionbar:immersionbar:3.2.0'

View File

@@ -194,7 +194,7 @@ class HookEntry : YukiHookXposedInitProxy {
}.get(it.method {
name = "getInstance"
param(ContextClass)
}.get().invoke(context)).invoke<Boolean>(drawable) ?: false
}.get().invoke(context)).callBoolean(drawable)
}
} else BitmapCompatTool.isGrayscaleDrawable(drawable)
@@ -656,7 +656,7 @@ class HookEntry : YukiHookXposedInitProxy {
* 图标在任何场景下跟随状态栏其它图标保持半透明
* MIUI 12 进行单独判断
*/
field { name = "mCurrentSetColor" }.of<Int>(instance)?.also { color ->
field { name = "mCurrentSetColor" }.ofInt(instance).also { color ->
if (safeOfFalse {
NotificationUtilClass.clazz.hasMethod(
name = "ignoreStatusBarIconColor",
@@ -755,7 +755,7 @@ class HookEntry : YukiHookXposedInitProxy {
isExpanded = ExpandableNotificationRowClass.clazz.method {
name = "isExpanded"
returnType = BooleanType
}.get(it).invoke<Boolean>() == true
}.get(it).callBoolean()
}).call()?.let {
it.javaClass.method {
name = "getSbn"