Exemple #1
0
 private void FastAdbCmd(string arguments)
 {
     ShellUtils.DoShell(new ShellArgs()
     {
         FileName     = GetAdbExePath(),
         Arguments    = arguments,
         IgnoreOutput = true,
     });
 }
Exemple #2
0
        private string AdbCmd(string arguments)
        {
            var result = ShellUtils.DoShell(new ShellArgs()
            {
                FileName     = GetAdbExePath(),
                Arguments    = arguments,
                IgnoreOutput = false,
            });

            Logger.GetInstance().Info("AdbCmd", AheadWithName($"arguments = {arguments}"));
            var output = result.GetOutput();

            Logger.GetInstance().Info("AdbCmd", AheadWithName($"output = {output.LimitLength(40)}"));
            result.Dispose();
            return(output);
        }