Do we need permission to get all files that is self-created by the app after the app is reinstalled in AndroidQ?

前端 未结 2 1159
孤独总比滥情好
孤独总比滥情好 2020-12-21 19:22

Use-Case:

Here, I can create and save files in local storage using MediaStore and get all the files from MediaStore. But Once I clear-storage or reinstall the app, th

相关标签:
2条回答
  • 2020-12-21 19:48

    Yes as far permissions go, every kind of permission given with a clear-storage is "cleared" also.

    Did you check if the files are actually removed after the uninstall? My best guess is that they are if they are saved in the internal storage

    0 讨论(0)
  • 2020-12-21 20:05

    Do we need permission to read the self-created files once the app is reinstalled?

    Wrong question.

    If you deinstall your app and then reinstall it it is considered a different app.

    Hence your app cannot 'see' the files in the media store that were created by the deinstalled app.

    As there are no permissions you can do nothing.

    0 讨论(0)
提交回复
热议问题