You will need to export the GPIOs to userspace.  The changes for this can
be included in the initrd, and thus into the kernel boot image.  Look at
the relevant file in kernel/Documentation.

Next, you need to allow apps to access the exported GPIO. A chmod 777 works
to test things. Once this is done, the GPIO is just a file that can be
accessed from anywhere, including a java app.

If you need to manage permissions to the GPIO, then more work is needed.

-- Shree
On 29-Oct-2014 4:32 am, "Agustin Feuerhake" <agus...@platan.us> wrote:

> Hello,
> I run a software company, we build Android apps, but have only had
> experience on building apps for regular commercial smartphones.
>
> Lately, a client that wants to build a specific hardware running
> Android as the OS (they have a reference board that replicates a
> Samsung phone and are working with some hardware designers in Miami)
> have been asking us if we can access GPIO from Java...they want to
> control some RGB leds to start with..
>
> We've told them they need to modify and compile Android OS itself,
> because there's no such thing as "GPIO permission" in Android's app
> manifest. I'm pretty certain that is so... but what I don't know is what
> modifications exactly would we require to expose GPIOs in a good way?
>
> Thank you!
>
> --
>
> [image: Platanus] <http://www.3sparks.net>
>
> Agustin Feuerhake / co-fundador
> agus...@platan.us
>
> Platanus: (+562) 28818025
> Pedro Canisio 1441, Vitacura, Santiago, Chile
>
> --
> --
> unsubscribe: android-porting+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-porting
>
> ---
> You received this message because you are subscribed to the Google Groups
> "android-porting" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-porting+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to