Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FL-3576] Ultralight static lock bytes implementation #3094

Conversation

RebornedBrain
Copy link
Contributor

@RebornedBrain RebornedBrain commented Sep 19, 2023

What's new

Ultralight cards now check and set static lock bits during write operations.

Verification

CMD_WRITE:
hf mfu wrbl -b 4 -d DEADBEAF //write data to page 4
hf mfu wrbl -b 2 -d 00001000 //lock block 4
hf mfu wrbl -b 4 -d 0000BEAF // result NAK

hf mfu wrbl -b 2 -d 00002000 //lock block 5 (block 4 remains)
hf mfu wrbl -b 2 -d 00000200 //block lock bits 9-4
hf mfu wrbl -b 2 -d 00004000 //lock block 6 (no effect)

CMD_COMP_WRITE:
hf 14a raw -sck A004
hf 14a raw -ac DEADBEAF00112233445566778899AABB //write data to page 4
hf 14a raw -sck A002
hf 14a raw -ac 0000100000112233445566778899AABB //lock block 4
hf 14a raw -sck A004 //result NAK

hf 14a raw -sck A002
hf 14a raw -ac 0000200000112233445566778899AABB //lock block 5 (block 4 remains)
hf 14a raw -sck A002
hf 14a raw -ac 0000020000112233445566778899AABB //block lock bits 9-4
hf 14a raw -sck A002
hf 14a raw -ac 0000400000112233445566778899AABB //lock block 6 (no effect)

Checklist (For Reviewer)

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix

RebornedBrain and others added 30 commits August 31, 2023 14:46
Both cmds now work through one function
NtagI2C support added
Conflicts:
	firmware/targets/f7/api_symbols.csv
@RebornedBrain RebornedBrain marked this pull request as ready for review September 19, 2023 10:01
@gornekich gornekich merged commit 9e374a4 into flipperdevices:gornek/nfc_refactoring_v1 Sep 19, 2023
RebornedBrain added a commit to RebornedBrain/flipperzero-firmware that referenced this pull request Sep 21, 2023
…#3094)

* Function for static lock bytes processing added

* Static lock bytes processing added to preparation and CMD_WRITE

* Static lock bytes added to COMP_WRITE command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants