paulmandal / atak-forwarder

Forwards packets to/from ATAK over an off-grid communication layer
MIT License
388 stars 42 forks source link

Android 14 and Crashing #206

Open bisgroves opened 3 months ago

bisgroves commented 3 months ago

SourceFile - atakplugin.AtakForwarder.g5.f java.lang.SecurityException

Likely due to the usage of the raw Context::registerReceiver and Context::unregisterReceiver in the plugin which should be migrated over to AtakBroadcast.getInstance().registerSystemReceiver() and AtakBroadcast.getInstance().unregisterSystemReceiver() where appropriate. See the patch file (not compile checked)

suggestive_fix.PATCH

Josh-SMU commented 1 month ago

I can confirm this issue.

Forwarder 2.0.9 ATAK Civ 4.10.0 Meshtastic fw 2.2.16 Meshtastic app 2.2.16

It didnt crash when installed until I paired a device to the Meshtastic app and selecting it in the plugin settings. Then it crashed consistently even when the device is unplugged.