Dual apps can't access storage path /storage/emulated/999/Download/somefile.pdf

点点圈 提交于 2019-12-11 00:15:16

问题


I am trying to download a file from server to Download folder of andorid

As expected it is working fine

Problem

When user clones my app (dual app) , the cloned app (2nd app) throws SecurityException: Unsupported path /storage/emulated/999/Download/somefile.pdf

Research

Device : Redmi 5

App : File Manager (system app)

I found 2 options

  1. Internal Storage
  2. Storage for dual apps (it also has Download folder & other apps folder like Whatsapp)

Still my app throws SecurityException

来源:https://stackoverflow.com/questions/55901955/dual-apps-cant-access-storage-path-storage-emulated-999-download-somefile-pdf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!