Hi All,
I'm new to android app's.
I need to execute following command in my app.
command: echo "1" > /sys/manager0/enable
I tried this with following code in my app.
Process p = Runtime.getRuntime().exec("su");
DataOutputStream stdin = new DataOutputStream(p.getOutputStream());
String cmd = "echo \"1\" /sys/manager0/enable";
stdin.writeBytes(cmd+"\n");
There is no error and app executed perfectly but there is no change in the /sys/manager0/enable
Please give suggest some solution to this.
Thanks in advance.
I'm new to android app's.
I need to execute following command in my app.
command: echo "1" > /sys/manager0/enable
I tried this with following code in my app.
Process p = Runtime.getRuntime().exec("su");
DataOutputStream stdin = new DataOutputStream(p.getOutputStream());
String cmd = "echo \"1\" /sys/manager0/enable";
stdin.writeBytes(cmd+"\n");
There is no error and app executed perfectly but there is no change in the /sys/manager0/enable
Please give suggest some solution to this.
Thanks in advance.