diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index caf3028d..d01497f8 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -1204,11 +1204,16 @@ bool CPhoneDevice::Reboot(int resetType, bool manually, const std::string& reaso GpioControl::reboot(); #else RestartApp(resetType, timeout, reason); - std::thread t([timeout]() + std::thread t([timeout, fileName]() { // Double Calls std::this_thread::sleep_for(std::chrono::milliseconds(timeout + 5000)); GpioControl::reboot(); + + writeFile(fileName + ".new", NULL, 0); + + std::this_thread::sleep_for(std::chrono::milliseconds(5000)); + GpioControl::reboot2(); }); t.detach();