Android 从计算机安装应用程序时的权限

Android Permission When Installing App from Computer

我刚刚在装有 Android 6.0.1 的 Nexus 9 平板电脑上安装了我的应用程序。当我启动我的应用程序时,我发现事情一团糟。事实上,即使在我的清单中声明了权限也没有被授予。当我在 phone 运行 Android 5.1 上安装它时,我什么都不用做,权限就被授予了。

关于权限我是否遗漏了什么或者某些设备不允许权限,除非你有来自 Play 商店的确认和用户提示?

I noticed that things were messed up. In fact, the permissions were not granted even if declared in my Manifest.

您很可能在代码中针对支持新权限模型 (docs) 的 Marshmallow SDK (API23) w/o 构建您的应用程序。这是行不通的。作为快速解决方案,将 target-sdk 更改为 22(或更低)并重新构建您的应用程序。或者添加对运行时权限的支持。