From baea01d47acf34b44b4f909186dc5d0bb7dc4ecc Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 26 Mar 2025 12:58:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=90=AF=E8=AE=BE=E5=A4=87=E8=B5=B0Sy?= =?UTF-8?q?sApi=E7=9A=84=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/PhoneDevice.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 3e0b8c19..404fdfee 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -1032,22 +1032,7 @@ bool CPhoneDevice::InstallAPP(const std::string& path, unsigned int delayedTime) bool CPhoneDevice::Reboot(int resetType, const std::string& reason) { - if (resetType == REBOOT_TYPE_DEVICE) - { - // reboot the device - std::thread t([]() - { - std::this_thread::sleep_for(std::chrono::milliseconds(1000)); - GpioControl::reboot(); - }); - t.detach(); - } - else - { - long timeout = 1000; - RestartApp(resetType, timeout, reason); - } - + RestartApp(resetType, 1000, reason); return true; }