If you want to use RECEIVER_NOT_EXPORTED, you can utilize LocalBroadcastManager.getInstance(this).registerReceiver(broadcastReceiver, intentFilter)
to register your receiver. This ensures that your broadcast is restricted to your app and doesn't require export flags since LocalBroadcastManager is designed for app-local communications.