[FL-3008], [FL-2734], [FL-2766], [FL-2898] NFC bug fixes (#2098)

* nfc: rework mf classic update
* nfc: rename cache folder to .cache
* nfc: fix ATQA order bytes in nfc files
* file browser: add hide dot files option
* nfc: fix iso-14443-4 uid cards emulation
* nfc: fix unit tests

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
gornekich
2022-12-07 14:52:44 +04:00
committed by GitHub
parent c43ec414bb
commit 9a21dae29c
14 changed files with 88 additions and 60 deletions

View File

@@ -1,5 +1,5 @@
entry,status,name,type,params
Version,+,8.1,,
Version,+,9.0,,
Header,+,applications/services/bt/bt_service/bt.h,,
Header,+,applications/services/cli/cli.h,,
Header,+,applications/services/cli/cli_vcp.h,,
@@ -806,14 +806,14 @@ Function,-,fgetpos,int,"FILE*, fpos_t*"
Function,-,fgets,char*,"char*, int, FILE*"
Function,-,fgets_unlocked,char*,"char*, int, FILE*"
Function,+,file_browser_alloc,FileBrowser*,FuriString*
Function,+,file_browser_configure,void,"FileBrowser*, const char*, _Bool, const Icon*, _Bool"
Function,+,file_browser_configure,void,"FileBrowser*, const char*, _Bool, _Bool, const Icon*, _Bool"
Function,+,file_browser_free,void,FileBrowser*
Function,+,file_browser_get_view,View*,FileBrowser*
Function,+,file_browser_set_callback,void,"FileBrowser*, FileBrowserCallback, void*"
Function,+,file_browser_set_item_callback,void,"FileBrowser*, FileBrowserLoadItemCallback, void*"
Function,+,file_browser_start,void,"FileBrowser*, FuriString*"
Function,+,file_browser_stop,void,FileBrowser*
Function,+,file_browser_worker_alloc,BrowserWorker*,"FuriString*, const char*, _Bool"
Function,+,file_browser_worker_alloc,BrowserWorker*,"FuriString*, const char*, _Bool, _Bool"
Function,+,file_browser_worker_folder_enter,void,"BrowserWorker*, FuriString*, int32_t"
Function,+,file_browser_worker_folder_exit,void,BrowserWorker*
Function,+,file_browser_worker_folder_refresh,void,"BrowserWorker*, int32_t"
@@ -821,7 +821,7 @@ Function,+,file_browser_worker_free,void,BrowserWorker*
Function,+,file_browser_worker_is_in_start_folder,_Bool,BrowserWorker*
Function,+,file_browser_worker_load,void,"BrowserWorker*, uint32_t, uint32_t"
Function,+,file_browser_worker_set_callback_context,void,"BrowserWorker*, void*"
Function,+,file_browser_worker_set_config,void,"BrowserWorker*, FuriString*, const char*, _Bool"
Function,+,file_browser_worker_set_config,void,"BrowserWorker*, FuriString*, const char*, _Bool, _Bool"
Function,+,file_browser_worker_set_folder_callback,void,"BrowserWorker*, BrowserWorkerFolderOpenCallback"
Function,+,file_browser_worker_set_item_callback,void,"BrowserWorker*, BrowserWorkerListItemCallback"
Function,+,file_browser_worker_set_list_callback,void,"BrowserWorker*, BrowserWorkerListLoadCallback"
1 entry status name type params
2 Version + 8.1 9.0
3 Header + applications/services/bt/bt_service/bt.h
4 Header + applications/services/cli/cli.h
5 Header + applications/services/cli/cli_vcp.h
806 Function - fgets char* char*, int, FILE*
807 Function - fgets_unlocked char* char*, int, FILE*
808 Function + file_browser_alloc FileBrowser* FuriString*
809 Function + file_browser_configure void FileBrowser*, const char*, _Bool, const Icon*, _Bool FileBrowser*, const char*, _Bool, _Bool, const Icon*, _Bool
810 Function + file_browser_free void FileBrowser*
811 Function + file_browser_get_view View* FileBrowser*
812 Function + file_browser_set_callback void FileBrowser*, FileBrowserCallback, void*
813 Function + file_browser_set_item_callback void FileBrowser*, FileBrowserLoadItemCallback, void*
814 Function + file_browser_start void FileBrowser*, FuriString*
815 Function + file_browser_stop void FileBrowser*
816 Function + file_browser_worker_alloc BrowserWorker* FuriString*, const char*, _Bool FuriString*, const char*, _Bool, _Bool
817 Function + file_browser_worker_folder_enter void BrowserWorker*, FuriString*, int32_t
818 Function + file_browser_worker_folder_exit void BrowserWorker*
819 Function + file_browser_worker_folder_refresh void BrowserWorker*, int32_t
821 Function + file_browser_worker_is_in_start_folder _Bool BrowserWorker*
822 Function + file_browser_worker_load void BrowserWorker*, uint32_t, uint32_t
823 Function + file_browser_worker_set_callback_context void BrowserWorker*, void*
824 Function + file_browser_worker_set_config void BrowserWorker*, FuriString*, const char*, _Bool BrowserWorker*, FuriString*, const char*, _Bool, _Bool
825 Function + file_browser_worker_set_folder_callback void BrowserWorker*, BrowserWorkerFolderOpenCallback
826 Function + file_browser_worker_set_item_callback void BrowserWorker*, BrowserWorkerListItemCallback
827 Function + file_browser_worker_set_list_callback void BrowserWorker*, BrowserWorkerListLoadCallback

View File

@@ -244,6 +244,9 @@ bool furi_hal_nfc_listen(
params.lmConfigPA.SEL_RES = sak;
rfalNfcDiscover(&params);
// Disable EMD suppression.
st25r3916ModifyRegister(ST25R3916_REG_EMD_SUP_CONF, ST25R3916_REG_EMD_SUP_CONF_emd_emv, 0);
uint32_t start = DWT->CYCCNT;
while(state != RFAL_NFC_STATE_ACTIVATED) {
rfalNfcWorker();