fix: add superclass checks for method and field resolution in SystemUIHooker

This commit is contained in:
2025-12-07 04:16:12 +08:00
parent 29fffdba46
commit 247f5c7da5

View File

@@ -866,10 +866,12 @@ object SystemUIHooker : YukiBaseHooker() {
val mBase = instance.asResolver().optional().firstMethodOrNull { val mBase = instance.asResolver().optional().firstMethodOrNull {
name = "getBase" name = "getBase"
emptyParameters() emptyParameters()
superclass()
}?.invokeQuietly() }?.invokeQuietly()
val imageView = mBase?.asResolver()?.optional()?.firstFieldOrNull { val imageView = mBase?.asResolver()?.optional()?.firstFieldOrNull {
name = "mIcon" name = "mIcon"
type = ImageView::class type = ImageView::class
superclass()
}?.getQuietly<ImageView>() }?.getQuietly<ImageView>()
imageView?.apply { imageView?.apply {
ExpandableNotificationRowClass.resolve().optional() ExpandableNotificationRowClass.resolve().optional()