得到的Android许可dynamiclly [英] get Android permission dynamiclly
问题描述
我不知道是否有可能动态获取Android的许可,而无需使用AndroidManifest只是一些codeS,因为我已经在Android和无的Android权限,他们被限制在功能上运行某些OSGi包。 谢谢
i'm wondering if it's possible to get Android permission dynamically without using AndroidManifest just with some codes, because i've some OSGi bundles running on Android and without Android permission they are restricted in functionality. Thanks
谢谢您的回答,是的,它复杂化的用户体验,这也是危险的,如果用户提供了机制
Thanks for your answers, yes it complicates the user experience and it's also dangerous for the user if that mechanism is provided
推荐答案
没有,这是不可能的。
您不能改变已经安装的APK的内容。这将是非常危险的,以允许这样的行为反正作为整个系统的权限是指,以允许用户到第一读什么权限的应用需要这样他就可以判断,如果它是确定或没有。
You can't alter the contents of an already installed APK. It would be very dangerous to allow such a behavior anyway as the whole permissions system is meant to allow the user to first read what permissions an Application requires so he can judge if it is ok or not.
这篇关于得到的Android许可dynamiclly的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!