How to get list of already allowed permissions and current state of location in wd.js

I am trying to get the list of allowed permissions in Android Appium with wd.js so that based on the list I can decide which permission to allow during testing.

I am not planning to use autograntPermission desired caps as I want to simulate the real user action.

Also I want to know the present state of my location(whether its enabled or disabled) so that based on it I can call driver.toggleLocationServices of wd.js.