diff --git a/play-services-location/core/src/main/AndroidManifest.xml b/play-services-location/core/src/main/AndroidManifest.xml
index 7cbfd5e10..fd9cfb2ab 100644
--- a/play-services-location/core/src/main/AndroidManifest.xml
+++ b/play-services-location/core/src/main/AndroidManifest.xml
@@ -9,6 +9,7 @@
+
-
-
-
-
-
-
-
diff --git a/play-services-location/core/src/main/kotlin/org/microg/gms/location/ui/ConfigurationRequiredReceiver.kt b/play-services-location/core/src/main/kotlin/org/microg/gms/location/ui/ConfigurationRequiredReceiver.kt
index 0e625cd3c..8d95d0cc3 100644
--- a/play-services-location/core/src/main/kotlin/org/microg/gms/location/ui/ConfigurationRequiredReceiver.kt
+++ b/play-services-location/core/src/main/kotlin/org/microg/gms/location/ui/ConfigurationRequiredReceiver.kt
@@ -7,7 +7,9 @@ package org.microg.gms.location.ui
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
+import android.content.pm.PackageManager
import android.net.Uri
+import android.os.Build.VERSION.SDK_INT
import org.microg.gms.location.ACTION_CONFIGURATION_REQUIRED
import org.microg.gms.location.CONFIGURATION_FIELD_ONLINE_SOURCE
import org.microg.gms.location.EXTRA_CONFIGURATION
@@ -20,6 +22,7 @@ import org.microg.gms.location.core.R
class ConfigurationRequiredReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
if (intent.action == ACTION_CONFIGURATION_REQUIRED) {
+ if (SDK_INT >= 23 && context.checkSelfPermission(android.Manifest.permission.POST_NOTIFICATIONS) != PackageManager.PERMISSION_GRANTED) return
val channel = NotificationChannelCompat.Builder("location", NotificationManagerCompat.IMPORTANCE_DEFAULT)
.setName(context.getString(R.string.service_name_location)).build()
NotificationManagerCompat.from(context).createNotificationChannel(channel)
diff --git a/play-services-location/core/src/main/res/values/strings.xml b/play-services-location/core/src/main/res/values/strings.xml
index 3a671f67c..3c1d6b234 100644
--- a/play-services-location/core/src/main/res/values/strings.xml
+++ b/play-services-location/core/src/main/res/values/strings.xml
@@ -60,6 +60,6 @@
Export local Wi-Fi location database
Export local cell tower location database
Import location data from file
- Imported %1$s records.
+ Imported %1$d records.
\ No newline at end of file