title: Run script with android app
body: <p>i've got this shell script: </p>
  
  <pre><code>#!system/bin/sh
  while :
  do
  sync
  echo 3&gt; /proc/sys/vm/drop_caches
  echo "Script is been launched"
  sleep 30m
  done
  exit 0;
  </code></pre>
  
  <p>i wish run this script with an android app. I have already created a button with only a toast for now. How can i take the script (free.sh) and launch it with the button on the app? Or is there a solution to rewrite the code in java? Thanks</p>