Accessing GPIO via MMIO in Android App on Raspberry Pi 4

30 Views Asked by At

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?

0

There are 0 best solutions below