From 1b3156521cb0aaef696b58673f932b2b88747865 Mon Sep 17 00:00:00 2001 From: Michael Huebler Date: Mon, 28 Nov 2022 18:14:13 +0100 Subject: [PATCH] NFC: Accept non-parsed apps in Mifare DESFire. (#2041) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * NFC: Accept non-parsed apps in Mifare DESFire. Fixes #2040 Co-authored-by: gornekich Co-authored-by: あく --- lib/nfc/nfc_device.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/nfc/nfc_device.c b/lib/nfc/nfc_device.c index 9f17aed3..5d86da0c 100644 --- a/lib/nfc/nfc_device.c +++ b/lib/nfc/nfc_device.c @@ -7,6 +7,7 @@ #include #include +#define TAG "NfcDevice" #define NFC_DEVICE_KEYS_FOLDER EXT_PATH("nfc/cache") #define NFC_DEVICE_KEYS_EXTENSION ".keys" @@ -627,7 +628,10 @@ bool nfc_device_load_mifare_df_data(FlipperFormat* file, NfcDevice* dev) { *app_head = app; app_head = &app->next; } - if(!parsed_apps) break; + if(!parsed_apps) { + // accept non-parsed apps, just log a warning: + FURI_LOG_W(TAG, "Non-parsed apps found!"); + } } parsed = true; } while(false);