It seems /dev/graphics/fb0 on the device and emulator behave differently. The following code snippet causes the emulator display to flash black and white, where as the dev only flashes slightly when important processes are killed.
#include
#include
#include
#include
#include
#include
int
main ()
{
int fbdev;
uint16_t *fb;
fbdev = open ("/dev/graphics/fb0", O_RDWR);
fb = (uint16_t *) mmap (0, 320 * 480 * sizeof (uint16_t), PROT_WRITE, MAP_SHARED, fbdev, 0);