为什么我要求“设备ID&通话信息"许可在Android上? [英] Why am I requesting "Device ID & call information" permission on Android?

查看:280
本文介绍了为什么我要求“设备ID&通话信息"许可在Android上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在实时商店中测试我的Android应用程序(由Unity制造)表明它请求设备ID和通话信息".据我所知,我不要求这些权限.这是我在AndroidManifest.xml文件中请求的权限.这是所有应用程序都需要的权限吗?还是隐藏在其他权限之一下?

Testing my Android app (made in Unity) on the live store shows that it requests "Device ID & call information". As far as I can tell, I don't request these permissions. Here are the permissions I request in my AndroidManifest.xml file. Is this a permission required for all apps? Or is it hidden under one of these other permissions?

<uses-permission android:name="com.android.vending.BILLING" />
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

谢谢!

推荐答案

我只是花了一些荒谬的时间来解决这个问题,所以我想与任何经历类似痛苦的人分享.

I just spent an absurd amount of time trying to resolve this so figured I would share with anyone out there going through a similar agony.

从清单中删除权限不一定会将其从最终版本中删除. Unity会从所有包含的库中自动检测所需的权限.可能最有可能导致您具有此权限的库来自Facebook sdk.

Removing the permissions from your manifest will not necessarily remove them from the final build. Unity auto-detects required permissions from all included libraries. The libraries which are most likely causing you to have this permission included are from the Facebook sdk.

如果要在构建中保留Facebook sdk,则有一个相对简单的解决方案.完全删除Facebook SDK,并安装版本< = 7.80.无论出于何种原因,在7.9+版本中对sdk的更改都会提示Unity自动包含READ_PHONE_STATE权限,该权限会触发设备ID& Google Play中的通话信息"权限警告.

If you want to keep the Facebook sdk in the build, there's a relatively straightforward solution. Remove the Facebook SDK (completely) and install a version <= 7.80. For whatever reason, the changes to the sdk in 7.9+ prompt Unity to auto-include the READ_PHONE_STATE permission which triggers the Device ID & Call Information permission warning in google play.

这篇关于为什么我要求“设备ID&amp;通话信息"许可在Android上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆