Android Shell Run getRoot(String loc)

Here you can find the source of getRoot(String loc)

Description

get Root

Declaration

public static String getRoot(String loc) 

Method Source Code

//package com.java2s;

public class Main {

    public static String getRoot(String loc) {
        if (loc.startsWith("/mnt/sdcard")) {
            return "/mnt/sdcard";
        } else if (loc.startsWith("/mnt/innerDisk")) {
            return "/mnt/innerDisk";
        } else {/*from w ww.j av a2s.  c  om*/
            return "/mnt/usbDisk1";
        }
        // return loc;
    }
}

Related

  1. execRootCmd(String cmd)
  2. execRootCmdSilent(String cmd)
  3. runSuCommand(Context context, String command)
  4. runSuCommandAsync(Context context, String command)
  5. runSuCommandNoScriptWrapper(Context context, String command)
  6. requestRootPermission(String path)
  7. KillProcess()