Esempio n. 1
0
        public static void GetUSBDevices(ConnectorRegistry connectors, List <ProcessInfo> processes)
        {
            if (!Initialized)
            {
                return;
            }

            try {
                uint count = Usbmuxd.UsbmuxdGetDeviceCount();
                for (uint i = 0; i < count; i++)
                {
                    var device = new Usbmuxd.iOSDevice();
                    if (Usbmuxd.UsbmuxdGetDevice(i, out device) && !string.IsNullOrEmpty(device.udid))
                    {
                        var name      = GetNameForDevice(device);
                        var processId = connectors.GetProcessIdForUniqueId(device.udid);

                        processes.Add(new ProcessInfo(processId, "Unity iOS USB: " + name));
                        connectors.Connectors[processId] = new iOSUsbConnector(device.udid);
                    }
                }
            } catch (Exception e) {
                LoggingService.LogError("Error while getting USB devices", e);
            }
        }
Esempio n. 2
0
        public SoftDebuggerStartInfo SetupConnection()
        {
            Usbmuxd.StartIosProxy(port, 56000, udid);
            var args = new SoftDebuggerConnectArgs(udid, IPAddress.Loopback, port);

            return(new SoftDebuggerStartInfo(args));
        }
Esempio n. 3
0
 static bool SetupDll(string path)
 {
     try {
         Usbmuxd.Setup(path);
         if (Usbmuxd.IsDllLoaded)
         {
             Usbmuxd.StartUsbmuxdListenThread();
         }
         return(true);
     } catch (Exception e) {
         LoggingService.LogWarning("Error while initializing usbmuxd", e);
         return(false);
     }
 }
Esempio n. 4
0
 public void OnDisconnect()
 {
     Usbmuxd.StopIosProxy(port);
 }
Esempio n. 5
0
 public UnityAttachInfo SetupConnection()
 {
     Usbmuxd.StartIosProxy(port, 56000, udid);
     return(new UnityAttachInfo(udid, IPAddress.Loopback, port));
 }