Search code examples
cmdgpscommandgenymotion

Running Genymotion VM with GPS Enabled from Command Line


I am using unpaid version of Genymotion and want to run my GenyMotion device with GPS enable from command line. Please suggest me a way

Right now, i am using the following command which starts the virtual device.

player --vm-name "DEVICE_NAME"


Solution

  • You can do it with Genyshell:

    genyshell -c "gps setstatus enabled" 
    

    You can find more information about Genyshell here: https://docs.genymotion.com/Content/04_Tools/Genymotion_Shell/Genymotion_Shell.htm

    Remember, the "personal use" license of Genymotion is forbidden for commercial products.

    Disclaimer: I'm part of the Genymotion team