how to set geo-location ?

mta

Client
Регистрация
12.01.2020
Сообщения
144
Реакции
11
Баллы
18
Hi!

I set geolocalisation using device settings > Set geo-location. But it seems not to be working.

For example, google maps detect my natural position.
how can I set it correctly?
I set a proxy too. if I check the IP address it is the proxy address.
I am using Memu with Vm Android 9 - 64 bit.
:bc: :bc: :bc: :bc:

106337
 
still not working good, sometimes gps location seems to be working sometimes no. need help
 
Do you set geo location before running VM or after?
Services usually determine location by IP, so it may be proxy leak.
 
  • Оценить
Реакции: mta
For android 9 you have to use appium for geolocation spoofing
 
  • Оценить
Реакции: mta
Just have to install io.appium.settings apk, and control it through shell commands like
am startservice --user 0 -n io.appium.settings/.LocationService --es longitude {longitude-value} --es latitude {latitude-value} [--es altitude {altitude-value}]

not sure which one but I remember that one of these works, either am startservice or am start-foreground-service

Also, when installing the apk use the -g flag, so it gets the needed permissions
here's the docs - https://github.com/appium/io.appium.settings
 
  • Оценить
Реакции: mta
Just have to install io.appium.settings apk, and control it through shell commands like
am startservice --user 0 -n io.appium.settings/.LocationService --es longitude {longitude-value} --es latitude {latitude-value} [--es altitude {altitude-value}]

not sure which one but I remember that one of these works, either am startservice or am start-foreground-service

Also, when installing the apk use the -g flag, so it gets the needed permissions
here's the docs - https://github.com/appium/io.appium.settings
As always myndeswx is sharing good information. thanks, my friend. good information, for me to start studying appium. :bf:
 
  • Оценить
Реакции: myndeswx

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)