-
-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-f…
…irmware into mntm-dev --nobuild
- Loading branch information
Showing
13 changed files
with
126 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 0 additions & 59 deletions
59
applications/main/ibutton/scenes/ibutton_scene_read_exit_confirm.c
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
applications/services/desktop/scenes/desktop_scene_secure_enclave.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#include <gui/scene_manager.h> | ||
#include <furi_hal.h> | ||
|
||
#include "desktop_scene.h" | ||
#include "../desktop_i.h" | ||
|
||
void desktop_scene_secure_enclave_callback(void* context) { | ||
Desktop* desktop = (Desktop*)context; | ||
view_dispatcher_send_custom_event(desktop->view_dispatcher, DesktopEnclaveExit); | ||
} | ||
|
||
void desktop_scene_secure_enclave_on_enter(void* context) { | ||
Desktop* desktop = (Desktop*)context; | ||
furi_assert(desktop); | ||
|
||
Popup* popup = desktop->popup; | ||
popup_set_context(popup, desktop); | ||
popup_set_header( | ||
popup, "No Factory Keys Found", 64, 12 + STATUS_BAR_Y_SHIFT, AlignCenter, AlignBottom); | ||
popup_set_text( | ||
popup, | ||
"Secure Enclave is damaged.\n" | ||
"Some apps will not work.", | ||
64, | ||
33 + STATUS_BAR_Y_SHIFT, | ||
AlignCenter, | ||
AlignCenter); | ||
popup_set_callback(popup, desktop_scene_secure_enclave_callback); | ||
|
||
view_dispatcher_switch_to_view(desktop->view_dispatcher, DesktopViewIdPopup); | ||
} | ||
|
||
bool desktop_scene_secure_enclave_on_event(void* context, SceneManagerEvent event) { | ||
Desktop* desktop = (Desktop*)context; | ||
bool consumed = false; | ||
|
||
if(event.type == SceneManagerEventTypeCustom) { | ||
switch(event.event) { | ||
case DesktopEnclaveExit: | ||
scene_manager_previous_scene(desktop->scene_manager); | ||
consumed = true; | ||
break; | ||
|
||
default: | ||
break; | ||
} | ||
} | ||
return consumed; | ||
} | ||
|
||
void desktop_scene_secure_enclave_on_exit(void* context) { | ||
Desktop* desktop = (Desktop*)context; | ||
furi_assert(desktop); | ||
|
||
Popup* popup = desktop->popup; | ||
popup_reset(popup); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters