Adjustments for my fork
make the download task work with Android