Merge code

This commit is contained in:
2022-03-22 00:24:35 +08:00
parent cdeb8735d6
commit 5a501b9846

View File

@@ -110,6 +110,12 @@ class HookEntry : YukiHookXposedInitProxy {
"com.coloros.systemui.notification.power.ColorosPowerNotificationWarnings"
)
/** 根据多个版本存在不同的包名相同的类 */
private val AbstractReceiverClass = VariousClass(
"com.oplusos.systemui.common.receiver.AbstractReceiver",
"com.coloros.systemui.common.receiver.AbstractReceiver"
)
/** 根据多个版本存在不同的包名相同的类 */
private val ExpandableNotificationRowClass = VariousClass(
"$SYSTEMUI_PACKAGE_NAME.statusbar.notification.row.ExpandableNotificationRow",
@@ -429,6 +435,19 @@ class HookEntry : YukiHookXposedInitProxy {
}
}
}
/** 自动检查通知优化图标更新的注入监听 */
AbstractReceiverClass.hook {
injectMember {
method {
name = "onReceive"
param(ContextClass, IntentClass)
}
afterHook {
// TODO 待实现
loggerD(msg = "当前时间:${System.currentTimeMillis()}")
}
}
}
}
}
}