Skip to content

Commit

Permalink
Merge pull request #189 from Zondax/fix-stax
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala authored May 17, 2023
2 parents efb1e49 + b03a5fa commit 3de7bc9
Show file tree
Hide file tree
Showing 30 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/Makefile.version
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ APPVERSION_M=23
# This is the `spec_version` field of `Runtime`
APPVERSION_N=9420
# This is the patch version of this release
APPVERSION_P=0
APPVERSION_P=1
23 changes: 20 additions & 3 deletions app/src/secret.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,20 @@ void secret_accept() {
#endif
}

#if defined(TARGET_STAX)
static const char *secret_message =
"You are about to enable DOT\n"
"recovery mode. Activating this\n"
"mode will temporarily allow\n"
"you to sign transactions\n"
"using Kusama keys.";
#else
static const char *secret_message =
"USE AT YOUR OWN RISK!! "
"You are about to enable the DOT recovery mode."
"If you are not sure why you are here, reject or unplug your device immediately."
"Activating this mode will temporarily allow you to sign transactions using Kusama keys";
#endif

zxerr_t secret_getNumItems(uint8_t *num_items) {
zemu_log_stack("secret_getNumItems");
Expand All @@ -57,9 +66,17 @@ zxerr_t secret_getItem(int8_t displayIdx,

zxerr_t secret_enabled() {
#ifdef APP_SECRET_MODE_ENABLED
zemu_log("RECOVERY TRIGGERED");
view_review_init(secret_getItem, secret_getNumItems, secret_accept);
view_review_show(0x00);
if (app_mode_secret()) {
zemu_log("DISABLE RECOVERY");
app_mode_set_secret(false);
#if !defined(TARGET_STAX)
view_idle_show(0, NULL);
#endif
} else {
zemu_log("RECOVERY TRIGGERED");
view_review_init(secret_getItem, secret_getNumItems, secret_accept);
view_review_show(0x00);
}
#endif
return zxerr_ok;
}
2 changes: 1 addition & 1 deletion deps/ledger-zxlib
Binary file modified tests_zemu/snapshots/s-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-mainmenu/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-proxy_proxy/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-proxy_proxy/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-proxy_proxy/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-proxy_proxy/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/st-proxy_proxy/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-session_setkeys/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-session_setkeys/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-session_setkeys/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-session_setkeys/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-session_setkeys/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/st-session_setkeys/00006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-staking_nominate/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-staking_nominate/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-staking_nominate/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-staking_nominate/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-txUtility_batch/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-txUtility_batch/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/st-txUtility_batch/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests_zemu/snapshots/st-txUtility_batch/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-mainmenu/00004.png
Binary file modified tests_zemu/snapshots/x-mainmenu/00010.png

0 comments on commit 3de7bc9

Please sign in to comment.