Android port/rewrite of spacepackers