Search code examples
androidemulationgenymotion

genymotion allow su access permanently


  1. In the Genymotion Configuration, I always have to check the box on "Always allow su access (bypass Superuser app)" then hit "Save" button.

  2. It will then ask "Do you want to reboot?". I hit "Yes"

  3. Rebooting. Sometimes it reboots successfully, sometimes it doesn't. Argh.

How do I make it permanent? Is there a file that genymotion uses so I can just edit it directly? Thanks in advance


Solution

  • Genymotion parameters are kept using VirtualBox guest properties. To list the current guest properties of a Genymotion VM, you should issue the command VBoxManage guestproperty enumerate [Name of your VM]

    The parameter for "Always allow su access" is su_bypass To set this parameter you should issue VBoxManage guestproperty set [Name of your VM] su_bypass 1

    You can/should issue these commands while the VM is stopped.