title: Writing to framebuffer directly on Android
body: <p>I've a rooted phone with Android 4.2.2. I'd like to use <code>minui</code> API used (source <a href="http://code.metager.de/source/xref/android/4.2/bootable/recovery/minui/graphics.c" rel="nofollow">here</a>) 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. </p>
  
  <p>The problem is that I can't write stuff directly to <code>fb0</code> device. <code>FBIOPUT_VSCREENINFO</code> fails for unknown reason. </p>
  
  <p>How can I draw directly to <code>fb0</code> on Android, or how can I use <code>minui</code> outside the bootloader mode?</p>