1. kbn456's Avatar
    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 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 me solution to this.

    Thanks in advance.
    04-02-2013 05:25 AM

Similar Threads

  1. How to disable voice commands for apps in JB 4.1.2
    By makaroni in forum Samsung Galaxy SIII I9300
    Replies: 2
    Last Post: 02-05-2013, 05:16 PM
  2. Replies: 0
    Last Post: 12-02-2012, 06:32 AM
  3. Replies: 3
    Last Post: 04-02-2012, 11:15 PM
  4. How to add/delete contacts in Gmail app
    By mikesmith in forum Motorola Droid X
    Replies: 3
    Last Post: 09-08-2011, 07:35 AM
LINK TO POST COPIED TO CLIPBOARD