NDK API for permissions requests
As discussed on Reddit, here is an improvement idea.
Although it is understandable due to security reasons, that NDK main goal is to write native libraries to be called from Java/Kotlin code, there is the possibility to write full blown applications mostly in the NDK via NativeActivity, mostly targeted to games with their own in-game UIs.
However for many game oriented workflows asking for permissions is also a requirement, due to the hardware or Android features being accessed.
Currently this requires jumping into platform code either via JNI or other Android IPC mechanisms, and implement all permissions workflows there, then call them from everywhere where required from the NDK side.
Ideally there would be some C and C++ APIs for asking such permissions directly from NDK code.
Thanks for filing. Added to the list of things to look at once we have the infrastructure to support these.