mirror of
https://github.com/fankes/ColorOSNotifyIcon.git
synced 2025-09-07 19:14:20 +08:00
Merge code
This commit is contained in:
@@ -110,6 +110,12 @@ class HookEntry : YukiHookXposedInitProxy {
|
|||||||
"com.coloros.systemui.notification.power.ColorosPowerNotificationWarnings"
|
"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(
|
private val ExpandableNotificationRowClass = VariousClass(
|
||||||
"$SYSTEMUI_PACKAGE_NAME.statusbar.notification.row.ExpandableNotificationRow",
|
"$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()}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user