Improved https://github.com/yxl/DownloadProvider
with variuos fixes and removed permissions