Reputation: 137
I have been working on various features on our Android 14 App using the latest version of Android Studio Hedgehog and Java over the past months. Whenever I completed a big feature, I published the App using Google's Play Console.
Today, I wasn't able to do so, because apparently my App uses android.permission.FOREGROUND_SERVICE_LOCATION and because of that I need to adjust our Manifest file to show where we use this permission and I need to declare via video in Google's Play Console where we use it and why we need it.
My problem: I do not know where we use it...
I do use quite a lot of hardware components on the devices (camera, location, Bluetooth, NFC, Barcode Scanner, ...), but only when the App is running and not in the background.
But when I upload the latest Bundle into Google's Play Console, I get the following list of permissions the App apparently requests. Many of them I do in fact declare in our Manifest, but I have no idea where the foreground services are coming from. Therefore, I do not know how to declare my Manifest properly.
I am grateful for any support.
Upvotes: 5
Views: 7532
Reputation: 475
Check the merged manifest, the permission is probably coming from a library you used.
You can see it directly on Android studio https://developer.android.com/build/manage-manifests#inspect_the_merged_manifest_and_find_conflicts
Upvotes: 6