Android Things only support limited number of API such Cast, Drive, and Location APIs. I'm trying to work with one API and I want to map between the API methods and its required permission. I'm not sure what is the best approach to do such a task. I'm working with Intel Edison board. Basically, I need to do something like this:
====== Method ============= Required Android Permission =============
=====getLocation()====>===== android.permission.ACCESS_FINE_LOCATION
=====getBeaconState()===>===== android.permission.ACCESS_FINE_LOCATION
Also, I need to see what happens if the permission required is missing? I'm just looking for thoughts on how to do these tasks.