I run the code in android studio on both my phone and an emulator at the same time. Both have the proper permissions. I checked in the system settings.
here is the Ag