how to set geo-location ?

mta

Client
Регистрация
12.01.2020
Сообщения
129
Благодарностей
7
Баллы
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
 

mta

Client
Регистрация
12.01.2020
Сообщения
129
Благодарностей
7
Баллы
18
still not working good, sometimes gps location seems to be working sometimes no. need help
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 233
Благодарностей
5 846
Баллы
113
Do you set geo location before running VM or after?
Services usually determine location by IP, so it may be proxy leak.
 
  • Спасибо
Реакции: mta

myndeswx

Client
Регистрация
15.05.2017
Сообщения
406
Благодарностей
91
Баллы
28
For android 9 you have to use appium for geolocation spoofing
 
  • Спасибо
Реакции: mta

mta

Client
Регистрация
12.01.2020
Сообщения
129
Благодарностей
7
Баллы
18

myndeswx

Client
Регистрация
15.05.2017
Сообщения
406
Благодарностей
91
Баллы
28
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

mta

Client
Регистрация
12.01.2020
Сообщения
129
Благодарностей
7
Баллы
18
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

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