Пример #1
0
        private void InitializeAdb()
        {
            try
            {
                if (!File.Exists("adb/aapt.exe"))
                {
                    Deploy.AAPT();
                }
                if (!File.Exists("adb/adb.exe") ||
                    !File.Exists("adb/AdbWinApi.dll") ||
                    !File.Exists("adb/AdbWinUsbApi.dll"))
                {
                    Deploy.ADB();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

            if (!ADB.IsStarted)
            {
                ADB.Start();
            }
        }