I have recently downloaded cm 13 and flashed it on Nexus 4. Since then none of my applications can download any files. Google apps can do that though.
I have tried to capture the relevant debug info from adb:
03-23 14:39:57.576 717-717/system_process W/PackageManager: Permission android.permission.DOWNLOAD_WITHOUT_NOTIFICATION from package com.android.providers.downloads in an unknown group android.permission-group.NETWORK
03-23 14:40:12.658 717-717/system_process W/PackageManager: Not granting permission android.permission.ACCESS_DOWNLOAD_MANAGER to package com.android.browser (protectionLevel=18 flags=0x3849be45)
03-23 14:40:12.658 717-717/system_process W/PackageManager: Not granting permission android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS to package com.android.browser (protectionLevel=2 flags=0x3849be45)
03-23 14:40:13.419 717-1141/system_process W/PackageManager: Not granting permission android.permission.ACCESS_DOWNLOAD_MANAGER to package com.android.browser (protectionLevel=18 flags=0x38c9be45)
03-23 14:40:13.419 717-1141/system_process W/PackageManager: Not granting permission android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS to package com.android.browser (protectionLevel=2 flags=0x38c9be45)
03-23 14:42:03.712 2170-2232/com.android.nfc D/NfcService: checking on firmware download
03-23 14:42:06.057 659-659/? E/kickstart: Successfully downloaded files from target
03-23 14:42:06.743 717-2057/system_process I/ActivityManager: Start proc 2727:android.process.media/u0a9 for broadcast com.android.providers.downloads/.DownloadReceiver
03-23 14:42:16.443 3255-3274/? I/MessagingAppDataModel: Fixup: Send failed - 0 Download failed - 0
03-23 14:43:36.458 659-659/? E/kickstart: Successfully downloaded files from target
03-23 14:44:25.562 2727-2752/android.process.media W/DownloadManager: Path appears to be invalid: /storage/emulated/0/Download/com.coolapk.market-6.4.0-1603173.apk
03-23 14:44:25.707 2727-4566/android.process.media D/DownloadManager: [1] Starting
03-23 14:44:26.198 2727-4566/android.process.media W/DownloadManager: [1] Stop requested with status FILE_ERROR: Failed to generate filename: java.io.IOException: open failed: EACCES (Permission denied)
03-23 14:44:26.199 2727-4566/android.process.media D/DownloadManager: [1] Finished with status WAITING_TO_RETRY
03-23 14:45:09.370 2727-4758/android.process.media D/DownloadManager: [1] Starting
03-23 14:45:12.006 2727-4758/android.process.media W/DownloadManager: [1] Stop requested with status FILE_ERROR: Failed to generate filename: java.io.IOException: open failed: EACCES (Permission denied)
03-23 14:45:12.007 2727-4758/android.process.media D/DownloadManager: [1] Finished with status WAITING_TO_RETRY
03-23 14:45:37.961 2059-2059/com.android.systemui D/StatusBar: Clicked on content of 0|com.android.providers.downloads|0|1:com.android.browser|10009
03-23 14:45:38.055 717-2014/system_process I/ActivityManager: START u0 {act=android.intent.action.VIEW_DOWNLOADS flg=0x10000000 cmp=com.android.providers.downloads.ui/.DownloadList} from uid 10025 on display 0
03-23 14:45:38.115 2727-2727/android.process.media W/System: ClassLoader referenced unknown path: /system/app/DownloadProviderUi/lib/arm
03-23 14:45:38.146 717-2014/system_process I/ActivityManager: START u0 {act=android.provider.action.MANAGE_ROOT dat=content://com.android.providers.downloads.documents/root/downloads cmp=com.android.documentsui/.DocumentsActivity} from uid 10009 on display 0
03-23 14:45:55.276 2727-2868/android.process.media W/DownloadManager: Path appears to be invalid: /storage/emulated/0/Download/com.coolapk.market-6.4.0-1603173.apk
03-23 14:45:55.383 2727-5648/android.process.media D/DownloadManager: [2] Starting
03-23 14:45:55.773 2727-5648/android.process.media W/DownloadManager: [2] Stop requested with status FILE_ERROR: Failed to generate filename: java.io.IOException: open failed: EACCES (Permission denied)
03-23 14:45:55.776 2727-5648/android.process.media D/DownloadManager: [2] Finished with status WAITING_TO_RETRY
03-23 14:47:08.190 2727-6824/android.process.media D/DownloadManager: [1] Starting
03-23 14:47:08.192 2727-6825/android.process.media D/DownloadManager: [2] Starting
03-23 14:47:08.420 2727-6825/android.process.media W/DownloadManager: [2] Stop requested with status FILE_ERROR: Failed to generate filename: java.io.IOException: open failed: EACCES (Permission denied)
03-23 14:47:08.420 2727-6825/android.process.media D/DownloadManager: [2] Finished with status WAITING_TO_RETRY
03-23 14:47:08.601 2727-6824/android.process.media W/DownloadManager: [1] Stop requested with status FILE_ERROR: Failed to generate filename: java.io.IOException: open failed: EACCES (Permission denied)
03-23 14:47:08.615 2727-6824/android.process.media D/DownloadManager: [1] Finished with status WAITING_TO_RETRY
03-23 14:48:21.289 2727-7951/android.process.media D/DownloadManager: [2] Starting
03-23 14:48:24.624 2727-7951/android.process.media W/DownloadManager: [2] Stop requested with status FILE_ERROR: Failed to generate filename: java.io.IOException: open failed: EACCES (Permission denied)
03-23 14:48:24.629 2727-7951/android.process.media D/DownloadManager: [2] Finished with status WAITING_TO_RETRY
03-23 14:50:30.886 2727-9818/android.process.media D/DownloadManager: [1] Starting
03-23 14:50:35.682 2727-9818/android.process.media W/DownloadManager: [1] Stop requested with status 403: Unhandled HTTP response: 403 Forbidden
03-23 14:50:35.683 2727-9818/android.process.media D/DownloadManager: [1] Finished with status 403
03-23 14:52:10.358 2727-11049/android.process.media D/DownloadManager: [2] Starting
03-23 14:52:10.911 2727-11049/android.process.media W/DownloadManager: [2] Stop requested with status 403: Unhandled HTTP response: 403 Forbidden
03-23 14:52:10.911 2727-11049/android.process.media D/DownloadManager: [2] Finished with status 403
03-23 14:57:23.790 659-659/? E/kickstart: Successfully downloaded files from target
03-23 14:57:24.879 659-659/? E/kickstart: Successfully downloaded files from target
Any possible fix?
Edit: Similar problems(practically the same errors) exist on CM 12.1 latest snapshot and Slimkat (4.4 builds). As for the slimkat build, it has been used for over a year with no problem. Now it happens out of the blue.