I've a rooted phone with Android 4.2.2. I'd like to use minui
API used (source here) in bootloader code to draw stuff on the screen. minui is much simpler than native OpenGL and I don't need any complex functionality exposed by OpenGL.
The problem is that I can't write stuff directly to fb0
device. FBIOPUT_VSCREENINFO
fails for unknown reason.
How can I draw directly to fb0
on Android, or how can I use minui
outside the bootloader mode?
Source code,test it works in Qualcomm platform MSM89xx:
panel_test.c
Android.mk
yellow_face.zif
yellow_face.zif
device node:/dev/graphics/fb0
you can build in Android tree or use arm-linux-gcc.
likes a normal embeded linux, there is a sample: