android / android/ndk

NDK API for permissions requests

Open
#1,315 1 comment 6 reactions 0 assignees View on GitHub
c++ wrapper request enhancement
Dominant language
No language data
Stars
2.3k
Forks
310
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by reviewing how NativeActivity and existing NDK permission workflows interact with Android platform permissions, then define the scope of a C and C++ permissions API and its completion criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c, cpp
Domain
api, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.