narrow scope of synthapk ifdef and reinstate b2g-specific code
use chunked XHR and OS.File to download APKs