Implement android extensions.
Better debugging.
Make timeout tunable. Remove debug print.
Use android extensions, and drop all manipulation of files under /tmp.