Updater: handle storage errors when removing files, fix folder remove routine, prevent unused services from starting (#2432)

* Updater: handle storage errors when removing files
* Updater: properly handle folder removal in post update cleanup stage. Prevent power, desktop and dolphin services from starting on update.
* Desktop, Dolphin, Power: proper handling and message for special boot mode.
* Desktop, Power: add missing TAG
* Updater: unify start skip message and fix double delete in backup worker
* Cli: unify special boot mode message
This commit is contained in:
あく
2023-02-27 00:15:26 +09:00
committed by GitHub
parent 0c06e54831
commit 3efb7d4050
8 changed files with 46 additions and 23 deletions

View File

@@ -96,9 +96,9 @@ static void furi_thread_body(void* context) {
furi_assert(thread->state == FuriThreadStateRunning);
if(thread->is_service) {
FURI_LOG_E(
FURI_LOG_W(
TAG,
"%s service thread exited. Thread memory cannot be reclaimed.",
"%s service thread TCB memory will not be reclaimed",
thread->name ? thread->name : "<unknown service>");
}

View File

@@ -3,6 +3,7 @@
#include <furi.h>
#include <furi_hal_version.h>
#include <furi_hal_memory.h>
#include <furi_hal_rtc.h>
#define TAG "Flipper"
@@ -29,10 +30,10 @@ static void flipper_print_version(const char* target, const Version* version) {
void flipper_init() {
flipper_print_version("Firmware", furi_hal_version_get_firmware_version());
FURI_LOG_I(TAG, "starting services");
FURI_LOG_I(TAG, "Boot mode %d, starting services", furi_hal_rtc_get_boot_mode());
for(size_t i = 0; i < FLIPPER_SERVICES_COUNT; i++) {
FURI_LOG_I(TAG, "starting service %s", FLIPPER_SERVICES[i].name);
FURI_LOG_I(TAG, "Starting service %s", FLIPPER_SERVICES[i].name);
FuriThread* thread = furi_thread_alloc_ex(
FLIPPER_SERVICES[i].name,
@@ -44,7 +45,7 @@ void flipper_init() {
furi_thread_start(thread);
}
FURI_LOG_I(TAG, "services startup complete");
FURI_LOG_I(TAG, "Startup complete");
}
void vApplicationGetIdleTaskMemory(