Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecurityException on enqueing download on older Android versions #15823

Open
moving-bits opened this issue Jun 29, 2024 · 0 comments
Open

SecurityException on enqueing download on older Android versions #15823

moving-bits opened this issue Jun 29, 2024 · 0 comments
Labels
Bug Issues classified as a bug Google Play or Beta feedback Issues derived from Google Play reporting or beta user feedback Support Issue related to one or more Support Tickets

Comments

@moving-bits
Copy link
Member

Currently 68 events for current release 2024.06.02, but also being mentioned from time to time on support.

Exception java.lang.SecurityException:
  at android.os.Parcel.createException (Parcel.java:1950)
  at android.os.Parcel.readException (Parcel.java:1918)
  at android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:241)
  at android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:180)
  at android.content.ContentProviderProxy.insert (ContentProviderNative.java:497)
  at android.content.ContentResolver.insert (ContentResolver.java:1587)
  at android.app.DownloadManager.enqueue (DownloadManager.java:1081)
  at cgeo.geocaching.downloader.DownloaderUtils.addDownload (DownloaderUtils.java:231)
  at cgeo.geocaching.downloader.DownloaderUtils.lambda$triggerDownload$0 (DownloaderUtils.java:125)
  at cgeo.geocaching.downloader.DownloaderUtils.$r8$lambda$19rzZb6U9dvAqrh2obLFAGi6LAk (DownloaderUtils.java)
  at cgeo.geocaching.downloader.DownloaderUtils$$ExternalSyntheticLambda4.onClick (R8$$SyntheticClass)
  at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage (AlertController.java:167)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:193)
  at android.app.ActivityThread.main (ActivityThread.java:6865)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:504)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)

Since this seems to happen up to Android 9 only (Android 7-9) we probably need to prepare some version-specific code for enqueing a download. Or maybe it's related to missing access rights for storage - can't see that from stack traces in Play statistics, would need to check old support tickets.

@moving-bits moving-bits added Bug Issues classified as a bug Google Play or Beta feedback Issues derived from Google Play reporting or beta user feedback Support Issue related to one or more Support Tickets labels Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues classified as a bug Google Play or Beta feedback Issues derived from Google Play reporting or beta user feedback Support Issue related to one or more Support Tickets
Projects
None yet
Development

No branches or pull requests

1 participant