private void StopADBForward() { string adbPath = UnityDebugViewerWindowUtility.GetAdbPath(); UnityDebugViewerADBUtility.StopForwardProcess(adbPath); startForwardProcess = false; /// will abort process, should excute at last UnityDebugViewerTransferUtility.Clear(); }
private void StartADBLogcat() { if (UnityDebugViewerWindowUtility.CheckADBStatus() == false) { return; } string adbPath = UnityDebugViewerWindowUtility.GetAdbPath(); startLogcatProcess = UnityDebugViewerADBUtility.StartLogcatProcess(LogcatDataHandler, logcatTagFilterStr, adbPath); }
private void DisconnectToServerHandler() { string adbPath = UnityDebugViewerWindowUtility.GetAdbPath(); if (UnityDebugViewerADBUtility.CheckDevice(adbPath) == false) { UnityDebugViewerLogger.LogError("No devices connect, adb forward process should be restart!", UnityDebugViewerDefaultMode.ADBForward); StopADBForward(); } }
private void StartADBForward() { if (UnityDebugViewerWindowUtility.CheckADBStatus() == false) { return; } string adbPath = UnityDebugViewerWindowUtility.GetAdbPath(); startForwardProcess = UnityDebugViewerADBUtility.StartForwardProcess(pcPort, phonePort, adbPath); if (startForwardProcess) { int port = 0; if (int.TryParse(pcPort, out port)) { UnityDebugViewerTransferUtility.ConnectToServer("127.0.0.1", port); } } }