Exemplo n.º 1
0
        /// <summary>
        /// Kills the debug bridge, and the adb host server.
        /// </summary>
        /// <returns><c>true</c> if success.</returns>
        public bool Stop( )
        {
            // if we haven't started we return false;
            if (!Started)
            {
                return(false);
            }

            // kill the monitoring services
            if (DeviceMonitor != null)
            {
                DeviceMonitor.Stop( );
                DeviceMonitor = null;
            }

            if (!StopAdb( ))
            {
                return(false);
            }

            Started = false;
            return(true);
        }