I'm currently developing an Android application aimed at managing GPIO pins on a Raspberry Pi 4 running the Android OS directly.
While I understand that Android operates within a sandboxed environment, potentially limiting access to certain filesystem directories, I'm investigating the feasibility of using /dev/gpiomem to directly map GPIO pins into memory.
My question is:
Is it feasible to employ Memory-Mapped I/O (MMIO) techniques within an Android application running on a Raspberry Pi 4 to interact with GPIO pins via /dev/gpiomem, utilizing native code? If not, are there alternative solutions available to access GPIO pins from my Android application?