Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfehr committed Aug 29, 2024
1 parent 532612f commit 782e396
Show file tree
Hide file tree
Showing 32 changed files with 234 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void onClick(View view) {
displayLicensesAlertDialog();
}
});
String messageTrue = "Although a MIFARE Ultralight C is very similar to an Ultralight EV1 tag, you should NOT use this app with an Ultralight C tag only.";
String messageTrue = "Although a MIFARE Ultralight C is very similar to an Ultralight or an Ultralight EV1 tag, you should use this app with an Ultralight C tag only.";
TextView textViewTrue = getView().findViewById(R.id.textViewTrue);
textViewTrue.setVisibility(View.VISIBLE);
textViewTrue.setText(messageTrue);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_write_configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
android:paddingEnd="8dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:text="@string/header_read"
android:text="@string/header_write"
android:textAlignment="center"
android:textSize="20sp"
android:textStyle="bold" />
Expand Down
11 changes: 6 additions & 5 deletions app/src/main/res/menu/bottom_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@
android:title="Read" />

<item
android:id="@+id/write_configuration"
android:id="@+id/write_counter"
android:icon="@drawable/nfc_icon_w2"
android:title="Write Config" />
android:title="Incr Counter" />

<item
android:id="@+id/write"
android:icon="@drawable/nfc_icon_w2"
android:title="Write" />
android:title="Write Data" />

<item
android:id="@+id/write_counter"
android:id="@+id/write_configuration"
android:icon="@drawable/nfc_icon_w2"
android:title="Write Counter" />
android:title="Write Config" />

</menu>
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<resources>
<string name="app_name">MIFARE Ultralight C Example</string>
<string name="home_description">This application reads and writes data from/to a MIFARE Ultralight C NFC tag.</string>
<string name="home_fragments">There are 5 icons to click on:\n1 home = this page\n2 read data with or without authentication\n3 write configuration = changes the configuration of the tag (e.g. authentication key, write and/or read authentication)\n4 write data\n5 write counter = increment the counter</string>
<string name="home_fragments">There are 5 icons to click on:\n1 home = this page\n2 read data with or without authentication\n3 write counter = increment the counter\n4 write data\n5 write configuration = changes the configuration of the tag (e.g. authentication key, write and/or read authentication, memory clearing, change password)</string>
<string name="header_read">This app works with a MIFARE Ultralight C tag for reading</string>
<string name="description_read">This example expects a MIFARE Ultralight type tag. The tag should use only the well known keys A and B for authentication.\n\nWhen a tag is discovered the data from all records will be read.</string>
<string name="description_read">This example expects a MIFARE Ultralight type tag.\n\nWhen a tag is discovered the data from all records will be read.</string>
<string name="header_read_counter">Read the counter</string>
<string name="description_read_counter">This example reads an Ultralight C tag type and shows the value of the counter(s).\n\nWhen a tag is discovered the data from all records will be read.</string>
<string name="nfc_result">NFC read result</string>
Expand Down
112 changes: 112 additions & 0 deletions docs/taginfo_scan_empty.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
** TagInfo Scan (version 5.0.0) 20-Aug.-24 17:38:12 **
Report Type: -- IC INFO ------------------------------

# IC Manufacturer:
Most probably NXP Semiconductors

# IC Type:
MIFARE Ultralight C (MF0ICU2)

NOTE : Please consider MIFARE products with Originality Signature functionalities for future applications.

-- NDEF ------------------------------

# No NDEF Data Storage Present:
Maximum NDEF storage size after format: 137 bytes

-- EXTRA ------------------------------

# Memory Information:
192 bytes total memory
* 48 pages, with 4 bytes per page
* 144 bytes user memory (36 pages)

# Authentication Information:
Default sample key

# Originality Check (symmetric):
Originality check not supported

# TagInfo Version:
Version :5.0.0

# Device Info:
Device Model :samsung ( SM-A515F )
Android OS Version :13

-- FULL SCAN ------------------------------

# Technologies Supported:
ISO/IEC 14443-3 (Type A) compatible
ISO/IEC 14443-2 (Type A) compatible

# Android Technology Information:
Tag description:
* TAG: Tech [android.nfc.tech.NfcA, android.nfc.tech.MifareUltralight, android.nfc.tech.NdefFormatable]
* Maximum transceive length: 253 bytes
* Default maximum transceive time-out: 618 ms
MIFARE Classic support present in Android

# Detailed Protocol Information:
ID: 04:BE:3F:AA:98:78:80
ATQA: 0x4400
SAK: 0x00

# Memory Content:
[00] * 04:BE:3F 0D (UID0-UID2, BCC0)
[01] * AA:98:78:80 (UID3-UID6)
[02] . CA 48 00 00 (BCC1, INT, LOCK0-LOCK1)
[03] . 00:00:00:00 (OTP0-OTP3)
[04] . 02 00 00 10 |␂␀␀␐|
[05] . 00 06 01 10 |␀␆␁␐|
[06] . 11 FF 00 00 |␑.␀␀|
[07] . 00 00 00 00 |␀␀␀␀|
[08] . 00 00 00 00 |␀␀␀␀|
[09] . 00 00 00 00 |␀␀␀␀|
[0A] . 00 00 00 00 |␀␀␀␀|
[0B] . 00 00 00 00 |␀␀␀␀|
[0C] . 00 00 00 00 |␀␀␀␀|
[0D] . 00 00 00 00 |␀␀␀␀|
[0E] . 00 00 00 00 |␀␀␀␀|
[0F] . 00 00 00 00 |␀␀␀␀|
[10] . 00 00 00 00 |␀␀␀␀|
[11] . 00 00 00 00 |␀␀␀␀|
[12] . 00 00 00 00 |␀␀␀␀|
[13] . 00 00 00 00 |␀␀␀␀|
[14] . 00 00 00 00 |␀␀␀␀|
[15] . 00 00 00 00 |␀␀␀␀|
[16] . 00 00 00 00 |␀␀␀␀|
[17] . 00 00 00 00 |␀␀␀␀|
[18] . 00 00 00 00 |␀␀␀␀|
[19] . 00 00 00 00 |␀␀␀␀|
[1A] . 00 00 00 00 |␀␀␀␀|
[1B] . 00 00 00 00 |␀␀␀␀|
[1C] . 00 00 00 00 |␀␀␀␀|
[1D] . 00 00 00 00 |␀␀␀␀|
[1E] . 00 00 00 00 |␀␀␀␀|
[1F] . 00 00 00 00 |␀␀␀␀|
[20] . 00 00 00 00 |␀␀␀␀|
[21] . 00 00 00 00 |␀␀␀␀|
[22] . 00 00 00 00 |␀␀␀␀|
[23] . 00 00 00 00 |␀␀␀␀|
[24] . 00 00 00 00 |␀␀␀␀|
[25] . 00 00 00 00 |␀␀␀␀|
[26] . 00 00 00 00 |␀␀␀␀|
[27] . 00 00 00 00 |␀␀␀␀|
[28] . 00 00 -- -- (LOCK2-LOCK3)
[29] . 00 00 -- -- (CNT0-CNT1, value: 0)
[2A] . 30 -- -- -- (AUTH0)
[2B] . 00 -- -- -- (AUTH1)
[2C] .- 42 52 45 41 |BREA|
[2D] .- 4B 4D 45 49 |KMEI|
[2E] .- 46 59 4F 55 |FYOU|
[2F] .- 43 41 4E 21 |CAN!|

*:locked & blocked, x:locked,
+:blocked, .:un(b)locked, ?:unknown
r:readable (write-protected),
p:password protected, -:write-only
P:password protected write-only

--------------------------------------

112 changes: 112 additions & 0 deletions docs/taginfo_scan_written.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
** TagInfo Scan (version 5.0.0) 29-Aug.-24 12:56:18 **
Report Type: -- IC INFO ------------------------------

# IC Manufacturer:
Most probably NXP Semiconductors

# IC Type:
MIFARE Ultralight C (MF0ICU2)

NOTE : Please consider MIFARE products with Originality Signature functionalities for future applications.

-- NDEF ------------------------------

# No NDEF Data Storage Present:
Maximum NDEF storage size after format: 137 bytes

-- EXTRA ------------------------------

# Memory Information:
192 bytes total memory
* 48 pages, with 4 bytes per page
* 144 bytes user memory (36 pages)

# Authentication Information:
Default sample key

# Originality Check (symmetric):
Originality check not supported

# TagInfo Version:
Version :5.0.0

# Device Info:
Device Model :samsung ( SM-A515F )
Android OS Version :13

-- FULL SCAN ------------------------------

# Technologies Supported:
ISO/IEC 14443-3 (Type A) compatible
ISO/IEC 14443-2 (Type A) compatible

# Android Technology Information:
Tag description:
* TAG: Tech [android.nfc.tech.NfcA, android.nfc.tech.MifareUltralight, android.nfc.tech.NdefFormatable]
* Maximum transceive length: 253 bytes
* Default maximum transceive time-out: 618 ms
MIFARE Classic support present in Android

# Detailed Protocol Information:
ID: 04:1F:80:AA:98:78:80
ATQA: 0x4400
SAK: 0x00

# Memory Content:
[00] * 04:1F:80 13 (UID0-UID2, BCC0)
[01] * AA:98:78:80 (UID3-UID6)
[02] . CA 48 00 00 (BCC1, INT, LOCK0-LOCK1)
[03] . 00:00:00:00 (OTP0-OTP3)
[04] . 32 34 30 38 |2408|
[05] . 32 39 20 31 |29␠1|
[06] . 32 3A 35 35 |2:55|
[07] . 3A 34 30 20 |:40␠|
[08] . 73 6F 6D 65 |some|
[09] . 20 64 61 74 |␠dat|
[0A] . 61 20 6F 6E |a␠on|
[0B] . 20 74 61 67 |␠tag|
[0C] . 00 00 00 00 |␀␀␀␀|
[0D] . 00 00 00 00 |␀␀␀␀|
[0E] . 00 00 00 00 |␀␀␀␀|
[0F] . 00 00 00 00 |␀␀␀␀|
[10] . 00 00 00 00 |␀␀␀␀|
[11] . 00 00 00 00 |␀␀␀␀|
[12] . 00 00 00 00 |␀␀␀␀|
[13] . 00 00 00 00 |␀␀␀␀|
[14] . 00 00 00 00 |␀␀␀␀|
[15] . 00 00 00 00 |␀␀␀␀|
[16] . 00 00 00 00 |␀␀␀␀|
[17] . 00 00 00 00 |␀␀␀␀|
[18] . 00 00 00 00 |␀␀␀␀|
[19] . 00 00 00 00 |␀␀␀␀|
[1A] . 00 00 00 00 |␀␀␀␀|
[1B] . 00 00 00 00 |␀␀␀␀|
[1C] . 00 00 00 00 |␀␀␀␀|
[1D] . 00 00 00 00 |␀␀␀␀|
[1E] . 00 00 00 00 |␀␀␀␀|
[1F] . 00 00 00 00 |␀␀␀␀|
[20] . 00 00 00 00 |␀␀␀␀|
[21] . 00 00 00 00 |␀␀␀␀|
[22] . 00 00 00 00 |␀␀␀␀|
[23] . 00 00 00 00 |␀␀␀␀|
[24] . 00 00 00 00 |␀␀␀␀|
[25] . 00 00 00 00 |␀␀␀␀|
[26] . 00 00 00 00 |␀␀␀␀|
[27] . 00 00 00 00 |␀␀␀␀|
[28] . 00 00 -- -- (LOCK2-LOCK3)
[29] . 0E 00 -- -- (CNT0-CNT1, value: 14)
[2A] . 30 -- -- -- (AUTH0)
[2B] . 01 -- -- -- (AUTH1)
[2C] .- 42 52 45 41 |BREA|
[2D] .- 4B 4D 45 49 |KMEI|
[2E] .- 46 59 4F 55 |FYOU|
[2F] .- 43 41 4E 21 |CAN!|

*:locked & blocked, x:locked,
+:blocked, .:un(b)locked, ?:unknown
r:readable (write-protected),
p:password protected, -:write-only
P:password protected write-only

--------------------------------------

Binary file added screenshots/app_home_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/app_read_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/app_read_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/app_read_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/app_read_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/app_write_configuration_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/app_write_configuration_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/app_write_configuration_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/app_write_configuration_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/app_write_counter_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/app_write_counter_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/app_write_data_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/app_write_data_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/small/app_home_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/small/app_read_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/small/app_read_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/small/app_read_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/small/app_read_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/small/app_write_configuration_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/small/app_write_configuration_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/small/app_write_configuration_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/small/app_write_configuration_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/small/app_write_counter_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/small/app_write_counter_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/small/app_write_data_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/small/app_write_data_02.png

0 comments on commit 782e396

Please sign in to comment.