title: How to build an executable for Android shell
body: <p>Sometimes I need to run a command or script on my device, but they are not available or don't exist.</p>
  
  <p>Can we add some additional commands to <code>Android</code> device's <code>shell</code>,
  except those commands that are already available on it?</p>
  
  <p>For example, add <code>screenrecord</code> command to my device (my device has <code>Android</code> API lower than 19), which this is unavailable on it.</p>
  
  <p>I know how to get the list of available commands on the device with <code>adb shell</code>  </p>
  
  <pre><code>adb shell ls /system/bin 
  </code></pre>
  
  <p>but I want to add more custom commands and scripts, to do some special and work.</p>
  
  <p>Is there any way to do it? Or it's impossible?</p>