mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Potential fix for code scanning alert no. 30: Improper verification of intent by broadcast receiver (#1914)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
ffe8d20f7c
commit
4c805666a8
1 changed files with 4 additions and 0 deletions
|
|
@ -25,6 +25,10 @@ import com.geeksville.mesh.android.Logging
|
|||
|
||||
class BootCompleteReceiver : BroadcastReceiver(), Logging {
|
||||
override fun onReceive(mContext: Context, intent: Intent) {
|
||||
// Verify the intent action
|
||||
if (Intent.ACTION_BOOT_COMPLETED != intent.action) {
|
||||
return
|
||||
}
|
||||
// start listening for bluetooth messages from our device
|
||||
MeshService.startServiceLater(mContext)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue