I am getting IllegalArgumentException during picking a document file from download manager ,which is happening only for oreo
I was getting the same error Unknown URI: content://downloads/public_downloads
. I managed to solve this by changing contentUri and by using InputStream
methods to fetch file from Download directory. In some of devices changing contentUri to content://downloads/my_downloads
works. Checkout this answer for full solution.