How to easily enable/disable app permissions in Android while test is running

Hi!
I need to write a test that requires navigating to android app permissions changing it going back to the app and then going again and changing it back. Is there a way to do in Appium? The only way that comes to my mind is to use
hardware keys to go to home, then find Settings, App, etc but that sounds like a lot and steps and possibility of test being fragile. I was wondering maybe it is possible to do it cheaper.Eg a method in android driver to either navigate straight to Settings or something similar. Thanks.

1 Like