diff --git a/datacapturing/src/main/java/de/cyface/datacapturing/PongReceiver.java b/datacapturing/src/main/java/de/cyface/datacapturing/PongReceiver.java index 2b333f413..68feb304e 100644 --- a/datacapturing/src/main/java/de/cyface/datacapturing/PongReceiver.java +++ b/datacapturing/src/main/java/de/cyface/datacapturing/PongReceiver.java @@ -140,7 +140,7 @@ public void checkIsRunningAsync(final long timeout, final @NonNull TimeUnit unit Handler receiverHandler = new Handler(pongReceiverThread.getLooper()); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { context.get().registerReceiver(this, new IntentFilter(pongActionId), null, - receiverHandler, Context.RECEIVER_NOT_EXPORTED); + receiverHandler, Context.RECEIVER_EXPORTED); } else { context.get().registerReceiver(this, new IntentFilter(pongActionId), null, receiverHandler); diff --git a/datacapturing/src/main/java/de/cyface/datacapturing/backend/DataCapturingBackgroundService.java b/datacapturing/src/main/java/de/cyface/datacapturing/backend/DataCapturingBackgroundService.java index 107acd765..31c503037 100644 --- a/datacapturing/src/main/java/de/cyface/datacapturing/backend/DataCapturingBackgroundService.java +++ b/datacapturing/src/main/java/de/cyface/datacapturing/backend/DataCapturingBackgroundService.java @@ -226,7 +226,7 @@ public void onCreate() { // Allows other parties to ping this service to see if it is running pingReceiver = new PingReceiver(GLOBAL_BROADCAST_PING, GLOBAL_BROADCAST_PONG); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { - registerReceiver(pingReceiver, new IntentFilter(GLOBAL_BROADCAST_PING), Context.RECEIVER_NOT_EXPORTED); + registerReceiver(pingReceiver, new IntentFilter(GLOBAL_BROADCAST_PING), Context.RECEIVER_EXPORTED); } else { registerReceiver(pingReceiver, new IntentFilter(GLOBAL_BROADCAST_PING)); } diff --git a/synchronization/src/androidTestCyface/kotlin/de/cyface/synchronization/UploadProgressTest.kt b/synchronization/src/androidTestCyface/kotlin/de/cyface/synchronization/UploadProgressTest.kt index 619bbfec3..82d11585d 100644 --- a/synchronization/src/androidTestCyface/kotlin/de/cyface/synchronization/UploadProgressTest.kt +++ b/synchronization/src/androidTestCyface/kotlin/de/cyface/synchronization/UploadProgressTest.kt @@ -124,7 +124,7 @@ class UploadProgressTest { filter.addAction(CyfaceConnectionStatusListener.SYNC_PROGRESS) filter.addAction(CyfaceConnectionStatusListener.SYNC_STARTED) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { - context!!.registerReceiver(receiver, filter, Context.RECEIVER_NOT_EXPORTED) + context!!.registerReceiver(receiver, filter, Context.RECEIVER_EXPORTED) } else { context!!.registerReceiver(receiver, filter) } diff --git a/synchronization/src/main/java/de/cyface/synchronization/ConnectionStatusReceiver.java b/synchronization/src/main/java/de/cyface/synchronization/ConnectionStatusReceiver.java index 7b849c9e8..b7c882c2f 100644 --- a/synchronization/src/main/java/de/cyface/synchronization/ConnectionStatusReceiver.java +++ b/synchronization/src/main/java/de/cyface/synchronization/ConnectionStatusReceiver.java @@ -64,7 +64,7 @@ public ConnectionStatusReceiver(final Context context) { filter.addAction(SYNC_PROGRESS); filter.addAction(SYNC_STARTED); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { - context.registerReceiver(this, filter, Context.RECEIVER_NOT_EXPORTED); + context.registerReceiver(this, filter, Context.RECEIVER_EXPORTED); } else { context.registerReceiver(this, filter); }