示例#1
0
        public static bool detectDevice()
        {
            detectAdbTool();

            String backString = WinCmd.cmd("adb " + "devices -l");

            string s  = @"sabresd";
            Regex  r  = new Regex(s, RegexOptions.IgnoreCase);
            Match  mB = r.Match(backString);

            if (!mB.Success)
            {
                MessageBox.Show("Please Insert Your USB Cable.");
                return(false);
            }

            return(true);
        }
示例#2
0
 public static String cmd(String cmd)
 {
     return(WinCmd.cmd(cmd, null));
 }
示例#3
0
 public static void pull(String srcPath, String destPath, TextBox textBox)
 {
     WinCmd.cmd("adb " + "pull " + srcPath + " " + destPath, textBox);
 }
示例#4
0
 public static void pull(String srcPath, String destPath)
 {
     WinCmd.cmd("adb " + "pull " + srcPath + " " + destPath, null);
 }
示例#5
0
 public static void execute(String cmd, TextBox textBox)
 {
     WinCmd.cmd("adb " + "shell " + cmd, textBox);
 }
示例#6
0
 public static void execute(String cmd)
 {
     WinCmd.cmd("adb " + "shell " + cmd, null);
 }