我的Andr​​oid应用程序需要的权限我没有要求 [英] My Android application requires permissions I didn't request

查看:156
本文介绍了我的Andr​​oid应用程序需要的权限我没有要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚创建了一个非常简单的Andr​​oid应用程序捕获的意图,操纵它一下,并发出新的意图。我调到应用到我的手机与 ADB安装,现在看应用程序的请求的权限,我看到,它需要的权限我从来没有问过:

I've just created a very simple Android application that captures an Intent, manipulates it a bit, and sends out a new Intent. I transferred the app to my phone with adb install, and now looking at the app's requested permissions, I'm seeing that it requires permissions I never asked for:


  • 读取手机状态和身份

  • 修改或删除您的USB存储的内容

  • 测试访问受保护的存储

有没有在我的manifest文件请求的权限,以及应用程序本身是死的简单(这里是在GitHub上)。难道这些额外的权限,添加,因为我与安装了亚行安装,也许?或者是有什么在我的应用程序,要求这些权限,我只是没有看到好处?

There's nothing in my manifest file requesting permissions, and the app itself is dead simple (here's the source on GitHub). Are these extra permissions added because I installed it with adb install, perhaps? Or is there something in my app that merits requiring these permissions that I'm just not seeing?

推荐答案

您缺少一个<采用-SDK> 元素的android:的minSdkVersion 。添加这些权限首次发布后,Android和应用程序支持很老的Andr​​oid设备拥有这些权限祖父的。

You are missing a <uses-sdk> element with android:minSdkVersion. These permissions were added to Android after its initial release, and apps supporting very old Android devices have these permissions "grandfathered in".

您真的应该添加&LT;采用-SDK&GT; 并添加安卓的minSdkVersion ,说怎么老的Android设备(从API​​级的角度来看),你愿意支持。

You really should add <uses-sdk> and add android:minSdkVersion, saying how old of an Android device (from an API level standpoint) you are willing to support.

这篇关于我的Andr​​oid应用程序需要的权限我没有要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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