title: programmatically change Mac address-Android
body: <p>I'm writing a program to spoof the mac address of a device. So far I was able to get root access by running the command: </p>
  
  <pre><code>Runtime.getRuntime().exec("su");
  </code></pre>
  
  <p>Now I want to run commands by doing:</p>
  
  <pre><code>for (String currCommand : commands)
  {
      os.writeBytes(currCommand + "\n");
      os.flush();
  }
  </code></pre>
  
  <p>but I'm not sure which commands will do this for me? Does anyone know the commands to run to get into the mac address and modify it?</p>