Add registry key HKEY_LOCAL_MACHINE/Software/JavaSoft/KernelBackgroundDownload. When this REG_DWORD type key is set to 0 , the background download should not start automatically. This is needed for testing purposes.
In DownloadManager.java we should check the value of KernelDownloadUrl from registry in startBackgroundDownloadWithBroker method. Also, the order of checking for bundles download location override should be as follows:
kernel.download.url system property
KernelDownloadUrl registry key