Beispiel #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);
        }
Beispiel #2
0
 public static String cmd(String cmd)
 {
     return(WinCmd.cmd(cmd, null));
 }
Beispiel #3
0
 public static void pull(String srcPath, String destPath, TextBox textBox)
 {
     WinCmd.cmd("adb " + "pull " + srcPath + " " + destPath, textBox);
 }
Beispiel #4
0
 public static void pull(String srcPath, String destPath)
 {
     WinCmd.cmd("adb " + "pull " + srcPath + " " + destPath, null);
 }
Beispiel #5
0
 public static void execute(String cmd, TextBox textBox)
 {
     WinCmd.cmd("adb " + "shell " + cmd, textBox);
 }
Beispiel #6
0
 public static void execute(String cmd)
 {
     WinCmd.cmd("adb " + "shell " + cmd, null);
 }