Android - root shell comands wont work
<p>Can someone tell me whts wrong with this code because it doesnt work, it just wont stick what i echo</p>

<pre><code> Process localProcess;
    try {
        localProcess = Runtime.getRuntime().exec("su");

     DataOutputStream localDataOutputStream = new DataOutputStream(localProcess.getOutputStream());
      localDataOutputStream.writeBytes("chmod 777 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor\n")
     localDataOutputStream.writeBytes("echo " + govselectedcpu0 + " &gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor\n")
     localDataOutputStream.writeBytes("exit\n");
     localDataOutputStream.flush();
    } catch (IOException e) {

        e.printStackTrace();
    }
</code></pre>
