关于Unity自动为安卓添加权限
2018-01-24 15:36
351 查看
某些代码会使Unity自动添加安卓权限
https://docs.unity3d.com/Manual/android-manifest.html
Unity automatically adds the necessary permissions to the Manifest based on the Player Settings and
Unity APIs that your app calls from the script. For example:
Network classes
add the INTERNET permission
Using vibration (such as Handheld.Vibrate)
adds VIBRATE
The InternetReachability property
adds ACCESS_NETWORK_STATE
Location APIs (such as LocationService)
adds ACCESS_FINE_LOCATION
WebCamTexture APIs
add CAMERA permission
The Microphone class
adds RECORD_AUDIO
参考:
https://forum.unity.com/threads/androidmanifest-implicit-dangerous-permissions.458602/
ACCESS_FINE_LOCATION permission can come from:
- Input.location API calls https://docs.unity3d.com/ScriptReference/Input-location.html
- your plugins having the permission in the manifest or calling this API.
参考:
https://forum.unity.com/threads/unity-5-1-adds-android-permission-read_phone_state-automatically-how-to-remove-it.333431/#post-2216754
--by wolf96 2018/1/24
https://docs.unity3d.com/Manual/android-manifest.html
Unity automatically adds the necessary permissions to the Manifest based on the Player Settings and
Unity APIs that your app calls from the script. For example:
Network classes
add the INTERNET permission
Using vibration (such as Handheld.Vibrate)
adds VIBRATE
The InternetReachability property
adds ACCESS_NETWORK_STATE
Location APIs (such as LocationService)
adds ACCESS_FINE_LOCATION
WebCamTexture APIs
add CAMERA permission
The Microphone class
adds RECORD_AUDIO
参考:
https://forum.unity.com/threads/androidmanifest-implicit-dangerous-permissions.458602/
ACCESS_FINE_LOCATION permission can come from:
- Input.location API calls https://docs.unity3d.com/ScriptReference/Input-location.html
- your plugins having the permission in the manifest or calling this API.
参考:
https://forum.unity.com/threads/unity-5-1-adds-android-permission-read_phone_state-automatically-how-to-remove-it.333431/#post-2216754
--by wolf96 2018/1/24
相关文章推荐
- 关于Unity打Android包自动添加权限的问题
- unity 关于添加自动导航NavMeshAgent后模型动画的抖动问题
- 关于如何在make一个Linux下的C/C++工程时,自动添加版本号、编译日期等信息
- 添加安卓权限
- 安卓 textview 超出限制自动添加省略号
- Unity添加脚本的时候,自动创建版权信息
- 关于端口做过映射导致nginx自动添加内网端口的问题
- Unity3D-关于UnityIAP1.50.0在5.6.4f1版本中使用时出现自动购买问题
- 关于如何利用suggest添加Solr中自动提示功能的简介
- 关于错过的语句,个性微信公众号被添加自动回复
- 关于安卓和unity通信。
- Unity 及 VS2015 创建脚本时自动添加头部注释
- 关于unity动态添加游戏对象问题,如何动态添加一个菜单【一】
- Unity VS脚本自动添加头部注释
- 个人笔记(第六篇)周六特别篇(也就是说很短)关于百度地图定位权限的动态添加
- Unity游戏开发——自动为动画剪辑添加事件 之 最后几帧的事件不能被调用的问题
- API 23之前的版本都是自动获取权限,而从 Android 6.0 开始添加了权限申请的需求,更加安全。
- Unity接入友盟SDK后,添加打开安卓APP的功能 遇到的问题
- 关于高通AR vuforia 4.2.3在UNITY5.0中发布到安卓白屏的问题
- 关于QT中自动添加槽函数编译出错的问题