import from git://gitorious.org/0xdroid/external_quake.git