我刚刚将一个应用从 Firebase 9.0.0 更新到 Firebase 9.0.2.我使用消息 + 广告.
I just updated one app from Firebase 9.0.0 to Firebase 9.0.2. I use messaging + ads.
compile 'com.google.firebase:firebase-messaging:9.0.2'
compile "com.google.firebase:firebase-ads:9.0.2"
现在出现了很多不需要的权限
Now a lot of unwanted permission have cropped up
android:name="android.permission.READ_PHONE_STATE"
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
我没有在任何地方添加这些权限,因此它们必须来自 Firebase.我知道我的客户不喜欢这些权限,所以我用
I didn't add those permissions anywhere, so they must be from Firebase. I know my clients don't like these permissions, so I removed them with
<uses-permission
android:name="android.permission.READ_PHONE_STATE"
tools:node="remove" />
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
tools:node="remove" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
tools:node="remove" />
我的应用程序仍然有效,消息和广告仍然有效,但我仍然希望我的怀疑得到证实.
My app still works, messaging and ads still work, still I'd like my suspicions confirmed.
为什么 Firebase 会添加这些权限,真的可以像我一样删除它们吗?
Why does Firebase add those permissions and is it really ok to remove them like I did?
此问题已在 12.0.1 中修复.来源 https://developers.google.com/android/guides/releases
This issue was fixed in 12.0.1. Source https://developers.google.com/android/guides/releases
2018 年 3 月 28 日 - 版本 12.0.1
March 28, 2018 - Verison 12.0.1
12.0.1 中修复的问题:
Issues fixed in 12.0.1:
这篇关于Firebase + 权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!