GameTec-live / ChameleonUltraGUI

A GUI for the Chameleon Ultra written in Flutter for crossplatform
GNU General Public License v3.0
422 stars 31 forks source link

Cards downloaded from chameleon not saved correctly #400

Closed VarChar42 closed 10 months ago

VarChar42 commented 10 months ago

Describe the bug Cards downloaded from the chameleon aren't saved correctly

To Reproduce Steps to reproduce the behavior:

  1. Downlaod Card from chameleon (in my case Mifare Classic 1K EV1)
  2. Save card as json
  3. Examine json
  4. Everything is in the first sector.

Expected behavior Data gets stored into its corresponding sector.

Screenshots Unexpected: image Expected image

Version info:

Also required:

Additional context Despite this loading a card back onto the chameleon seems to work fine.

When viewing a downloaded card in the Hex Viewer (hex-editing branch) all data is also shown in Sector 0.

GameTec-live commented 10 months ago

Ive come to the conclusion that its a error in the rebuildCardSaveFromSlot function... (So not only json would be corrupt, but everything else too...) Now the question is where... https://github.com/GameTec-live/ChameleonUltraGUI/blob/edbd1343514ae69aaf08b946ff037edcd7714ab7/chameleonultragui/lib/gui/menu/slot_export.dart#L40C4-L40C4

VarChar42 commented 10 months ago

Data gets returned like this from mf1GetEmulatorBlock. Maybe theres a problem with the chameleon firmeware. image

GameTec-live commented 10 months ago

Data gets returned like this from mf1GetEmulatorBlock. Maybe theres a problem with the chameleon firmeware. image

that'd be weird, but a possibility... Needs further investigation for sure...