Skip to content

[BUG] Fatal Exception: java.lang.SecurityException Unsupported path /storage/emulated/0/Download #86

@walkingice

Description

@walkingice
Fatal Exception: java.lang.SecurityException: Unsupported path /storage/emulated/0/Download
       at android.os.Parcel.createExceptionOrNull(Parcel.java:2373)
       at android.os.Parcel.createException(Parcel.java:2357)
       at android.os.Parcel.readException(Parcel.java:2340)
       at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:250)
       at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:189)
       at android.content.ContentProviderProxy.insert(ContentProviderNative.java:549)
       at android.content.ContentResolver.insert(ContentResolver.java:2151)
       at android.content.ContentResolver.insert(ContentResolver.java:2113)
       at android.app.DownloadManager.enqueue(DownloadManager.java:1183)
       at org.mozilla.rocket.download.data.AndroidDownloadManagerDataSource$enqueue$2.invokeSuspend(AndroidDownloadManagerDataSource.kt:64)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
       at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

according to crash log, this crash happens mostly on Android 11. and some are on Android 10. I tried using Pixel 2 + Android 11 stock rom, but I cannot reproduce this issue, even if I removed requestLegacyExternalStorage from AndroidManifest.xml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions