mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 02:35:40 +08:00
Modify make YukiHookDataChannel security enhancement
This commit is contained in:
@@ -299,6 +299,7 @@ class YukiHookDataChannel private constructor() {
|
||||
/** 发送广播 */
|
||||
(context ?: YukiHookAppHelper.currentApplication())?.sendBroadcast(Intent().apply {
|
||||
action = if (isXposedEnvironment) moduleActionName() else hostActionName(packageName)
|
||||
setPackage(if (isXposedEnvironment) YukiHookBridge.modulePackageName else packageName)
|
||||
data.takeIf { it.isNotEmpty() }?.forEach {
|
||||
when (it.value) {
|
||||
null -> Unit
|
||||
|
Reference in New Issue
Block a user