Commit Graph

152 Commits

Author SHA1 Message Date
RogueMaster 98494f62d8 Merge pull request #464 from g3gg0/RM420_ISO15693_fix
fix ISO15693 emulation
2022-12-10 17:21:34 -05:00
g3gg0 d116b3fac1 fix emulation by using latest sources
fixed file saving
2022-12-10 22:54:46 +01:00
RogueMaster 5adfd734e3 Merge branch 'UNLEASHED' into 420 2022-12-10 16:18:41 -05:00
MX 35a4eef3fc Merge branch 'fz-dev' into dev 2022-12-10 19:30:20 +03:00
Astra 7fb1af07b8 [FL- 3014] Untangle NFC from Unit Tests (#2106)
* Untangle NFC from Unit Tests
* nfc tests: add log error

Co-authored-by: Sergey Gavrilov <who.just.the.doctor@gmail.com>
Co-authored-by: gornekich <n.gorbadey@gmail.com>
Co-authored-by: あく <alleteam@gmail.com>
2022-12-10 22:02:34 +09:00
MX 1fc67f76a2 Merge branch 'fz-dev' into dev 2022-12-08 08:58:39 +03:00
RogueMaster 9261e3cdcf Merge branch 'ofwdev' into 420 2022-12-07 19:16:33 -05:00
gornekich c535b8f4ce [FL-3017], [FL-3018] Change NFC emulation screens (#2102)
* nfc: fix emulate uid view
* archive: hide dot files in apps
* nfc: fix other emulation scenes view
2022-12-08 01:47:55 +09:00
RogueMaster 7a5596358a Merge branch 'UNLEASHED' into 420 2022-12-02 17:00:08 -05:00
MX 196fc562d8 Merge branch 'fz-dev' into dev 2022-12-02 23:05:30 +03:00
gornekich e40376bc63 NFC: fix NTAG203 info scene #2078 2022-12-02 21:41:34 +09:00
MX eec21b073b Merge branch 'fz-dev' into dev 2022-11-29 16:11:13 +03:00
Никита Тимофеев b70395eba9 Allow "Detect reader" for unsaved card (#2045)
* Allow "Detect reader" for unsaved card
* Add missed detect reader deed

Co-authored-by: あく <alleteam@gmail.com>
2022-11-29 22:10:02 +09:00
RogueMaster d0a29e2544 fmt 2022-11-29 01:01:12 -05:00
RogueMaster aa8e7d93ff Merge branch 'pr/456' into 420 2022-11-29 00:56:39 -05:00
g3gg0 1b6b4b6522 cleaned up SLIX code
added callbacks for card-specific ISO15693-3 handling
2022-11-29 01:00:41 +01:00
MX 3d36105142 Merge branch 'fz-dev' into dev 2022-11-28 23:12:17 +03:00
RogueMaster 72bd6bc865 Merge branch 'ofwdev' into 420 2022-11-28 13:26:36 -05:00
Yukai Li 6b47bc1af4 Nfc: NTAG password auto capture (and other password-related changes) (#1843)
* nfc: MFUL minor cleanup
* nfc: Add mechanism to pass event data
* nfc: Add NTAG authentication event to emulation
* nfc: Rename enum member to align with existing convention
* nfc: Add function to determine whether MFUL is fully captured
* nfc: Fix emulation of incompletely-read password-protected MFUL
* nfc: Add reader password capture scene
* nfc: Set default MFUL password input to 0xFFFFFFFF
* nfc: Fix MFUL auth counter loading
* nfc: Be explicit about using manual auth method when using auto unlock
* nfc: Fill in MFUL has_auth when loading file
* nfc: Fix MFUL auth success usage, remove unused variable
* nfc: Display PWD and PACK in MFUL info if available
* nfc: Remove unnecessary include
* nfc: Add unlock options to loaded MFUL menu
* nfc: Move set default MFUL password. This way it can be edited if needed instead of reentered
* nfc: Fix unlock menu not maintaining selection index
* nfc: Move captured MFUL auth data from worker to device data
* nfc: Attempt to authenticate with default PWD when possible when reading NTAG
* nfc: Don't try to auth NTAG on read if we already authed
* nfc: Add title for all pages read but failed auth for NTAG auth
* nfc: Add faster auth callback patch
* lib: Remove scons submodule from index
* nfc: Revise MFUL unlock UI flow
* nfc: Disallow MFUL unlock with reader if card not read yet. Trying to read first results in either needing to make a new scene or badly jury rigging other scenes, so let's just not do that
* f7: Bump API symbols
* Format code

Co-authored-by: gornekich <n.gorbadey@gmail.com>
Co-authored-by: あく <alleteam@gmail.com>
2022-11-29 03:16:22 +09:00
RogueMaster a486cc898a Merge branch 'ofwdev' into 420 2022-11-28 12:12:22 -05:00
Stephen Kent a82c3ccc22 NFC: Fix MIFARE DESfire info action to open app menu (#2058)
When examining a MIFARE DESfire card, selecting "More >" currently leads
to the file menu for a single application even if the scanned card
contains multiple applications.

On examining the source code, a MIFARE DESfire application selection
menu is present as `NfcSceneMfDesfireData`. This change updates the
MIFARE DESfire Info "More >" action to open the application selection
menu. That menu may then be used to open the file selection menu for any
application in the read MIFARE DESfire card data.

Tested interactively with
https://github.com/flipperdevices/flipperzero-sd-card-examples/blob/c4cbdcd94706836fe0e3cda42587814237b1cfde/nfc/Desfire.nfc

Co-authored-by: あく <alleteam@gmail.com>
2022-11-29 02:05:24 +09:00
RogueMaster 50cb45cc29 Merge branch 'pr/454' into 420 2022-11-26 22:14:27 -05:00
RogueMaster 68f51411a1 fmt 2022-11-26 02:23:03 -05:00
RogueMaster 41e9c09fba Merge branch 'pr/448' into 420 2022-11-25 21:43:35 -05:00
RogueMaster a15ee2ea7d Revert "Revert "Merge branch 'pr/446' into 420""
This reverts commit 28cc99ad2d.
2022-11-25 21:41:55 -05:00
g3gg0 c1b5394b0f further mergability updates 2022-11-25 11:42:29 +01:00
RogueMaster 28cc99ad2d Revert "Merge branch 'pr/446' into 420"
This reverts commit 761dc48b3e, reversing
changes made to 91f037c63f.
2022-11-25 03:08:53 -05:00
RogueMaster 761dc48b3e Merge branch 'pr/446' into 420 2022-11-25 01:40:03 -05:00
RogueMaster 23dd7a20b7 Merge pull request #443 from niki-timofe/mf-unsaved-detect-reader
Mf unsaved detect reader
2022-11-25 01:25:52 -05:00
Никита Тимофеев 7afaeed553 Add missed detect reader deed 2022-11-24 13:23:40 +03:00
Никита Тимофеев d5a9bfbcd2 Allow "Detect reader" for unsaved card 2022-11-24 05:04:13 +03:00
Yukai Li 14681cdcc0 Format code 2022-11-23 09:04:15 -07:00
g3gg0 1344f8f667 fix log truncation 2022-11-19 13:01:04 +01:00
g3gg0 08a5fee128 log code updates, showing the last entries only 2022-11-19 12:28:58 +01:00
g3gg0 971e0093c4 cleaned up SLIX code
fixed byte order mixup
read larger cards
2022-11-17 21:49:29 +01:00
g3gg0 b4802247df always save file even when tag was not locked 2022-11-17 01:45:22 +01:00
g3gg0 75f5e6604b separate ISO15693 basic and SLIX extensions a bit more
changed save format to reflect this
executing emulation from browser now also works
2022-11-17 01:35:39 +01:00
Yukai Li 90c362708e nfc: Disallow MFUL unlock with reader if card not read yet
Trying to read first results in either needing to make a new scene or
badly jury rigging other scenes, so let's just not do that
2022-11-15 01:17:54 -07:00
Yukai Li 3624ebf643 nfc: Revise MFUL unlock UI flow 2022-11-15 00:44:11 -07:00
g3gg0 bcd33ca125 added NfcV emulation 2022-11-14 21:12:18 +01:00
Yukai Li 508f52b1c0 nfc: Add faster auth callback patch 2022-11-14 10:26:30 -07:00
Yukai Li ccced311d7 Merge branch 'dev' into ntag-auto-pwd-capture 2022-11-14 10:25:19 -07:00
RogueMaster 4b9f353c78 fmt 2022-11-12 08:37:29 -05:00
MX 930b369812 Merge branch 'fz-dev' into dev 2022-11-10 21:38:03 +03:00
RogueMaster 7d67cd958b Update nfc_scene_mf_ultralight_emulate.c 2022-11-10 13:12:45 -05:00
RogueMaster a411305a5f Update nfc_scene_mf_ultralight_emulate.c 2022-11-10 13:11:53 -05:00
RogueMaster 2ce7b4bdcc Merge branch 'ofwdev' into 420 2022-11-10 11:44:55 -05:00
Astra e7c4b40dbe Force card types in extra actions (#1961)
* Mifare Classic forced read
* Add all the needed card types
* nfc: remove unused scene
* nfc: remove unused worker state
* nfc: fix read card type scene state usage
* nfc: move NfcReadMode to NfcDevData struct
* nfc: fix bank card reading and scene navigation
* nfc magic: fix magic deactifate function

Co-authored-by: gornekich <n.gorbadey@gmail.com>
Co-authored-by: あく <alleteam@gmail.com>
2022-11-11 01:29:57 +09:00
Astra 820afd2aec NFC Unit tests part 1.1 (#1927)
* Mifare Classic 1/4K, 4/7b uid, NFC-A: NFC-A is not complete yet, as there are no 4b uid tests. Also, Mifare Classic tests don't cover the key cache yet.
* NFC unit tests require access to the NFC app
* Made nfc_device_save accept full path as an argument
* Move from cstrs to furi strings and fix logic
* nfc tests: fix memory leak
* nfc: add mf_classic_get_total_blocks() to API
* nfc tests: simplify nfc tests
* nfc: fix memory leak in shadow file saving
* nfc: fix set uid scene
* nfc: fix saving files
* nfc: fix preload nfc file path
* nfc: remove comments

Co-authored-by: Sergey Gavrilov <who.just.the.doctor@gmail.com>
Co-authored-by: gornekich <n.gorbadey@gmail.com>
Co-authored-by: あく <alleteam@gmail.com>
2022-11-11 01:20:35 +09:00
MX 684fdc632f Merge branch 'fz-dev' into dev 2022-11-10 06:57:08 +03:00