I am trying to write a bash script which will switch to user and execute a program. But I am not able to execute the program after switching. This is the script I wrote
#!/bin/bash
sudo su
/opt/genymobile/genymotion/genymotion
echo "hi"
sudo my_script.sh?