Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Firebase analytics add READ_PHONE_STATE when build android with gradle build system #68
After read manifest-merger-release-report.txt i found this line:
So how can i config unity and analytics so to not include READ_PHONE_STATE permission?
Thank so much!
Looks like a couple of our AARs don't specify a minSdkVersion in the AndroidManifest.xml which is resulting in Gradle builds falling back to assuming the targetSdkVersion for the AAR < 4 (which seems a little conservative to me). It's a similar issue to what happened in Google Play Services https://developers.google.com/android/guides/releases#november_2016_-_v100 . The only workaround right now is to unpack each .srcaar file in the project and add the line "" to each AndroidManifest.xml. Alternatively you could safely remove the READ_PHONE_STATE permission from the generated AndroidManifest.xml and repack the APK if you have the skills.
We have a fix lined up internally and will post when it's published.
This should be resolved in 3.0.1