简体   繁体   English

有没有办法用 NDK 绕过 android 运行时请求权限?

[英]Is there a way to bypass the android runtime request permissions with NDK?

I just would like to know if there is a way to use the camera and storage without request it in runtime and without to set targetSdkVersion to 21, thanks in advance and sorry if this question sounds dumb in some manner.我只是想知道是否有一种方法可以在运行时无需请求且无需将 targetSdkVersion 设置为 21 的情况下使用相机和存储,如果这个问题在某种程度上听起来很愚蠢,请提前致谢。

Edit 1: I don't necessarily mean to bypass, I would like to know if the android permissions are needed in runtime if I use the NDK.编辑1:我不一定要绕过,如果我使用NDK,我想知道运行时是否需要android权限。

All of the same restrictions apply.所有相同的限制都适用。 You need to make the permission request in Java or over JNI.您需要在 Java 或 JNI 中提出权限请求。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM