static DeviceSelectorViewModel()
        {
            void InitAndTrack()
            {
                ThreadPool.QueueUserWorkItem(cb => {
                    var res = DeviceManager.Init(err => {
                        Logger.WriteLine($"{nameof(AdbViewerViewModel)}->{err.Code}:{err.Message}");
                    });

                    if (res)
                    {
                        //部署设备检测器;
                        if (_deviceTracker == null)
                        {
                            _deviceTracker = new DeviceTracker();
                            _deviceTracker.BeginTrackDevices(devices => {
                                _trackedDevices = devices;
                                PopTrackDevices();
                                //若静态常量为空,则不设置;
                                if (_devSelectorVM != null)
                                {
                                    _devSelectorVM.PopupDevices(devices);
                                }
                            }, err => {
                                InitAndTrack();
                                MsgBoxService.ShowError($"{LanguageService.FindResourceString("FailedToDetectAdbDevices")}:" + err.Message);
                            });
                        }
                    }
                });
            };
            InitAndTrack();
        }
 /// <summary>
 ///  监控Android设备的连接与断开
 /// </summary>
 /// <param name="handler"></param>
 /// <param name="error"></param>
 public static void TrackDevices(Action <List <Device> > handler, Action <ErrorResult> error)
 {
     tracker = new DeviceTracker();
     tracker.BeginTrackDevices(handler, error);
 }