Background
Starting with Android 6, every time you install the application, you need to provide your permissions at runtime.
Problem
This can be really annoying when starting applications from the IDE, because you need to re-grant permissions every time you want to try the application (if it has not been installed), which is a tedious operation, especially if you have multiple permissions.
Of course, it is also important to test the application in this way, because the way users will use this application, but starting from a certain point in time, it is not required, because you have already processed it perfectly
What i tried
The only thing I found was to create a new gradle task for it ( here ), but this does not work with the installation. Instead, I need to run it separately, but for this I can use the batch file anyway using adb commands.
Another thing that I found ( here ) is what it does, but also reinstall (this means that you install the application two times, and not once, every time you want to do it) the application before starting which for a reason, therefore, this is not a very good solution.
Question
Is there a way that after installing the application through the IDE, all permissions will be automatically allowed?