简体   繁体   English

Android 6目标sdk = 23安装权限

[英]Android 6 target sdk=23 permissions on install

I know that if you set target sdk to 23 you now need to ask the users for "dangerous" permissions at runtime like was responded here: Android 6.0 Permission Error 我知道,如果将目标sdk设置为23,则现在需要在运行时要求用户提供“危险”权限,就像在此处响应的那样: Android 6.0权限错误

But some permissions are listed as "normal" and they are required when the app is installed. 但是某些权限被列为“普通”,安装该应用程序时需要这些权限。 Is it possible to somehow mark some of the "dangerous" requirements that we have in our manifest to act as "normal" (to require them on install and not at runtime) because without some of them the app cannot actually function properly. 是否有可能以某种方式将清单中的某些“危险”要求标记为“正常”(在安装时而不是在运行时要求),因为没有这些,应用程序实际上就无法正常运行。 Just rewriting everything to ask permissions at runtime is not really an option at the moment, but we will probably do that in the future. 目前,仅重写所有内容以在运行时征求权限并不是一种选择,但将来我们可能会这样做。

No. There is no way to do what u want. 不,没有办法做你想做的事。 If you don't have the time to develop it now, you should target SDK 19 (permissions were introduced on Lollipop 21) 如果您现在没有时间开发它,则应该以SDK 19为目标(许可在Lollipop 21上引入)

edit: 编辑:

my bad, you should target API 22, as permissions were introduced on API 23. But still, target a lower API is the best option until you have time to properly develop the permission model. 不好的是,您应该以API 22为目标,因为在API 23上引入了权限。但是,在没有时间适当开发权限模型之前,以较低的API为目标是最佳选择。

Is it possible to somehow mark some of the "dangerous" requirements that we have in our manifest to act as "normal" ? 是否有可能以某种方式标记我们在清单中具有的某些“危险”要求是“正常”行为?

No it is not possibile. 不,这不是可能的。
The only way to avoid managing the runtime permissions is to use target 22. 避免管理运行时权限的唯一方法是使用目标22。
But pay attention. 但是要注意。

The users can revoke permissions from any app at any time, even if the app targets a lower API level 用户可以随时从任何应用撤消权限,即使该应用的目标是较低的API级别

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 科尔多瓦:安装了android-23 sdk后仍然出现错误“请安装android target 23” - Cordova: still getting the error “please install android target 23” with android-23 sdk installed Android无法完成会话:-26新目标SDK 22不支持运行时权限,但旧目标SDK 23支持运行时权限 - Android Failed to finalize session : -26 new target SDK 22 doesn't support runtime permissions but the old target SDK 23 does android,目标SDK 23,在运行时的权限在不应 - android, target SDK 23, permissions at runtime returns true when it shouldn't Android SDK 23+服务中的权限 - Android SDK 23+ Permissions in Services 在Android 6.0(SDK 23)中检查自定义权限 - Checking custom permissions in Android 6.0 (sdk 23) 如果我想使用蓝牙和目标 SDK 31 但我的最低 SDK 是 23,我需要在 Android 上获得什么权限? - What permissions would I need on Android if I want to use Bluetooth and Target SDK 31 but my minimum SDK is 23? android sdk 23检测权限问题(java.lang.SecurityException) - android sdk 23 instrumentation permissions problems (java.lang.SecurityException) 错误:screenSize | smallestScreenSize android studio目标SDK 23 - Error : screenSize|smallestScreenSize android studio Target SDK 23 安装Android SDK 23 - installing android sdk 23 SDK上的Android指纹&lt;23 - Android fingerprint on SDK<23
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM