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