I am wondering if there's a way to read the current GPS coordinates via SSH using SSHelper as SSH server.
I came accross some similar threads:
https://stackoverflow.com/questions/31707981/adb-shell-get-live-gps-location-not-last-known-location
I managed to run the SSH server and connect to it. So far, I have tried to run the dumpsys location
command over ssh, which gives me the following:
Permission Denial: can't dump LocationManagerService from from pid=27381, uid=10192 due to missing android.permission.DUMP permission
Does that command only work with adb? If yes, is there another way of retrieving GPS coordinates over ssh, i.e. using some shell commands?
I don't have root, and I'm not an app developer. Thanks!