|
@@ -8,6 +8,7 @@ import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.content.Intent;
|
|
import android.os.Build;
|
|
import android.os.Build;
|
|
import android.os.IBinder;
|
|
import android.os.IBinder;
|
|
|
|
+import android.util.Log;
|
|
|
|
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.Nullable;
|
|
|
|
|
|
@@ -21,6 +22,9 @@ import com.hanghui.senic.common.CommonUtil;
|
|
import com.hanghui.senic.common.DeviceInitManager;
|
|
import com.hanghui.senic.common.DeviceInitManager;
|
|
import com.hanghui.senic.controller.IDCardController;
|
|
import com.hanghui.senic.controller.IDCardController;
|
|
import com.hanghui.senic.controller.IDCardControllerManager;
|
|
import com.hanghui.senic.controller.IDCardControllerManager;
|
|
|
|
+import com.hanghui.senic.controller.QRCodeController;
|
|
|
|
+import com.hanghui.senic.controller.QRCodePADController;
|
|
|
|
+import com.hanghui.senic.controller.SerialController;
|
|
import com.hanghui.senic.network.HttpRequest;
|
|
import com.hanghui.senic.network.HttpRequest;
|
|
import com.hanghui.senic.service.usbserialdemo.utile.loacat.AppLogUtils;
|
|
import com.hanghui.senic.service.usbserialdemo.utile.loacat.AppLogUtils;
|
|
|
|
|
|
@@ -68,6 +72,12 @@ public class CheckExitService extends Service {
|
|
BaiduFaceController.getInstance().setBaiduFaceControllerCallback(null);
|
|
BaiduFaceController.getInstance().setBaiduFaceControllerCallback(null);
|
|
HttpRequest.getInstance().destory();
|
|
HttpRequest.getInstance().destory();
|
|
IDCardControllerManager.destroy();
|
|
IDCardControllerManager.destroy();
|
|
|
|
+ //关闭二维码
|
|
|
|
+ QRCodeController.getInstance().destroy();
|
|
|
|
+ //关闭二维码
|
|
|
|
+ QRCodePADController.getInstance().destroy();
|
|
|
|
+ //关闭串口
|
|
|
|
+ SerialController.getInstance().CloseComPort();
|
|
DeviceInitManager.getInstance().setHardwareStart();
|
|
DeviceInitManager.getInstance().setHardwareStart();
|
|
BaiduFaceUtil.stopBaiduFaceWebsocketService();
|
|
BaiduFaceUtil.stopBaiduFaceWebsocketService();
|
|
}
|
|
}
|