modified the shell script. Still needed to wait for running the shell script from the android end