Modifying the Cloud Phone GPS Location
The GPS location of a cloud phone is its longitude and latitude obtained by simulating the GPS satellite. It is expressed in decimal numbers and the unit is degree. The GPS location follows the international conventions, in which east longitude is positive, west longitude is negative, north latitude is positive, and south latitude is negative. This topic describes how to modify the GPS location of a cloud phone.
Prerequisites
You have purchased a Cloud Phone server and logged in a cloud phone using ADB. For details, see Buying a Cloud Phone.
Procedure
- In the ADB installation directory of the local device, run the following command to modify the GPS location:
Assume that the location to be modified is longitude 114.055939 degree East and latitude 22.657501 degrees North.
adb -s 127.0.0.1:Local idle port shell "echo 'longitude=114.055939:latitude=22.657501' > /data/gps/fifo"
Local idle port is the local idle port used for establishing the SSH tunnel.
The modification takes effect immediately after the command is executed. You can use map or social software to view the modification result. For example, if you use social software to create a moment, you can view the GPS location when adding a location.
Last Article: Installing an App on Cloud Phones in Batches
Next Article: Using Cloud Phones to Build a Cloud Mobile Gaming System
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.