Copy and Mod From : https://android.googlesource.com/platform/packages/providers/DownloadProvider/