Thank for the answer
Yes, this works.
when the application use gps i have:
Active Records by Provider:
gps:
UpdateRecord[gps application(10070) Request[ACCURACY_FINE gps requested=+30s0ms fastest=+30s0ms]]
if the gps is not in use:
Active Records by Provider:
gps:
is empty
adb shell dumpsys location
With this i have a log. I need to extract only this information from the log, How can I proceed?