Skip to content

Commit

Permalink
explicit broadcast intent package
Browse files Browse the repository at this point in the history
  • Loading branch information
rec0de committed Nov 6, 2024
1 parent f97a9da commit ca65aa4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ object BulletinDistributorService : AlloyService {
// send reply to chat view
Intent().also { intent ->
intent.action = "net.rec0de.android.watchwitch.chitchat"
intent.setPackage("net.rec0de.android.watchwitch")
intent.putExtra("data", "reply:$reply")
context.sendBroadcast(intent)
}
Expand All @@ -175,6 +176,7 @@ object BulletinDistributorService : AlloyService {
Logger.logIDS("[bulletin] got $msg", 0)
Intent().also { intent ->
intent.action = "net.rec0de.android.watchwitch.chitchat"
intent.setPackage("net.rec0de.android.watchwitch")
intent.putExtra("data", "lightsandsirens:${msg.didPlayLightsAndSirens}")
context.sendBroadcast(intent)
}
Expand Down

0 comments on commit ca65aa4

Please sign in to comment.