Modify make YukiHookDataChannel security enhancement

This commit is contained in:
2022-08-01 00:10:32 +08:00
parent 4848463969
commit c7b81ea603
2 changed files with 7 additions and 0 deletions

View File

@@ -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