There seems to be a lot of questions in this thread, and the problem often boils down to the fact that I am not asking for permission in AndroidManifest.xml ii). A device storage mounted on a computer while the application was running or iii) emulator settings.
In the hope that others who have tried all these solutions and failed, I imagine iv) the computer decides to arbitrarily ignore your permission settings in AndroidManifest.xml after pulling the code from the original repository written on another computer. In my case, I just wrote the code on computer A, which I wrote on external storage. I checked the specified code on the source control and then pulled the mentioned code to computer B. When I reinstalled the application from computer B to the device, I started to get an exception that was excluded from the permission.
Bugfix: make any changes to the AndroidManifest.xml file on computer B (for example, insert a new line). This posed a problem for me. I do not know why. This is probably one of the rarest cases, but more disappointing.
source share