- Home /
Unwanted permissions on Android when Firebase is implemented.
Hi,
I am using Firebase Messaging in my project. When I install the app on Android it asks for USB access and Phone State. I don't like these permissions to be asked at the user the first time. I have no idea why Firebase requires these permissions. Nowhere in my (asset folder) AndroidManifest.xml files permissions are explicitly required.
Is there a way to remove these permissions? Do I really need them?
Answer by Andrea_Marchetti · Jul 26, 2017 at 01:49 PM
Firebase was not the cause. The cause is Unity, which adds permissions when building for Android because of some code that could retrieve some information. Something like System.deviceUniqueIdentifier automatically add the permission READ_PHONE_STATE. In my case I didn't add directly this code but I am using an SDK which surely does considering what it's meant for.
Your answer
Follow this Question
Related Questions
READ_EXTERNAL_STORAGE permission out of nowhere 0 Answers
Avoid android permission prompt when returning to app after changing settings on device? 0 Answers
[Android] Remove READ_PHONE_STATE and READ_EXTERNAL_STORAGE permissions 2 Answers
Android Location Permission 0 Answers
Permissions on application startup 1 Answer