diff --git a/chameleonultragui/lib/gui/page/read_card.dart b/chameleonultragui/lib/gui/page/read_card.dart index d07bf194..cdcef294 100644 --- a/chameleonultragui/lib/gui/page/read_card.dart +++ b/chameleonultragui/lib/gui/page/read_card.dart @@ -124,15 +124,19 @@ class ReadCardPageState extends State { CardData card = await appState.communicator!.scan14443aTag(); bool isMifare = await appState.communicator!.detectMf1Support(); - bool isMifareClassicEV1 = (await appState.communicator! - .mf1Auth(0x45, 0x61, gMifareClassicKeys[3])); + bool isMifareClassicEV1 = isMifare + ? (await appState.communicator! + .mf1Auth(0x45, 0x61, gMifareClassicKeys[3])) + : false; setState(() { hfInfo.uid = bytesToHexSpace(card.uid); hfInfo.sak = card.sak.toRadixString(16).padLeft(2, '0').toUpperCase(); hfInfo.atqa = bytesToHexSpace(card.atqa); mfcInfo.isEV1 = isMifareClassicEV1; - mfcInfo.type = mfClassicGetType(card.atqa, card.sak); + mfcInfo.type = isMifare + ? mfClassicGetType(card.atqa, card.sak) + : MifareClassicType.none; mfcInfo.state = (mfcInfo.type != MifareClassicType.none) ? MifareClassicState.checkKeys : MifareClassicState.none; diff --git a/chameleonultragui/untranslated_messages.json b/chameleonultragui/untranslated_messages.json index d0061659..5c265e8b 100644 --- a/chameleonultragui/untranslated_messages.json +++ b/chameleonultragui/untranslated_messages.json @@ -63,10 +63,6 @@ "ble_pairing" ], - "es": [ - "ble_pairing" - ], - "fr": [ "shared_preferences_logging", "production_logging", @@ -160,13 +156,5 @@ "chameleon_flashing_title_easter_egg", "chameleon_flashing_title", "ble_pairing" - ], - - "ru": [ - "ble_pairing" - ], - - "zh": [ - "ble_pairing" ] }