Nexus 4 : anyone successfully did host card emulation of a Mifare classic 1k card ?

2,440 views
Skip to first unread message

Sacha Ott

unread,
Jan 22, 2014, 5:12:14 PM1/22/14
to nfc-dev...@googlegroups.com
Hi,

Does anyone successfully did a host card emulation of a Mifare classic 1k card under a Nexus 4 ?
First step is without the same UUID, but just all the others blocks ? (assuming you have key A and key B of course)

Regards,

Internal reader : Nexus 4 with Android 4.4.2 (broadcom nfc chip - HCE ok)
External reader : SCL3711 with libnfc

Jochen Schurich

unread,
Jan 23, 2014, 6:01:29 AM1/23/14
to nfc-dev...@googlegroups.com
Hi!

It is not possible to emulate a Mifare Classic card, but you can emulate an ISO/IEC 14443-4 Card. You will find all necessary information here: http://developer.android.com/guide/topics/connectivity/nfc/hce.html

Regards,
Jochen


2014/1/22 Sacha Ott <sach...@gmail.com>

--
Sie erhalten diese Nachricht, weil Sie Mitglied der Google Groups-Gruppe "nfc-developers" sind.
Um Ihr Abonnement für diese Gruppe zu beenden und keine E-Mails mehr von dieser Gruppe zu erhalten, senden Sie eine E-Mail an nfc-developer...@googlegroups.com.
Weitere Optionen: https://groups.google.com/groups/opt_out

Sacha Ott

unread,
Jan 23, 2014, 6:29:15 AM1/23/14
to nfc-dev...@googlegroups.com

Hi,

I read also Nfc-A (ISO/IEC 14443-3 Type A) so it can emulate the Mifare Classic or did I miss something ?

Regards,
Sacha.

Sie erhalten diese Nachricht, weil Sie in Google Groups ein Thema der Gruppe "nfc-developers" abonniert haben.
Um Ihr Abonnement für dieses Thema zu beenden, rufen Sie die URL https://groups.google.com/d/topic/nfc-developers/Rdf0RxAxNeA/unsubscribe auf.
Um Ihr Abonnement für diese Gruppe und alle ihre Themen zu beenden, senden Sie eine E-Mail an nfc-developer...@googlegroups.com.
Weitere Optionen: https://groups.google.com/groups/opt_out

Jiapeng Li

unread,
Jan 23, 2014, 8:57:42 AM1/23/14
to nfc-dev...@googlegroups.com
I agree with Jochen. Once i intend to emulate Mifare classic 1K card with PN532, then i did some search, it seems to require some secure units. 
For the nexus 4, from what i know it even does not support to read Mifare classic 1K card, because it use NFC chip of Broadcom, Mifare is a technology of NXP. Nexus 4 is not compitable with Mifare classic 1K card.


2014/1/23 Sacha Ott <sach...@gmail.com>



--

JiapengLi
Blog:jiapeng.me
GitHubgithub.com/jiapengli
AboutMe: about.me/lich


Adrian Stabiszewski

unread,
Jan 23, 2014, 1:48:13 PM1/23/14
to nfc-dev...@googlegroups.com
Guys, you are right.

The important thing here is: "Specifically, Android 4.4 supports emulating cards that are based on the NFC-Forum ISO-DEP specification (based on ISO/IEC 14443-4) and process Application Protocol Data Units (APDUs) as defined in the ISO/IEC 7816-4 specification."

The second part is not compatible with mifare classic.

Sacha Ott

unread,
Jan 23, 2014, 5:52:46 PM1/23/14
to nfc-dev...@googlegroups.com
In the protocol, the exchange of just the UID is done before all the deep stuff right ?

By that question, I mean, can we juste emulate the part of the Mifare who transmit the UID ?
I know HCE do random UID for each connection but I also know there are tricks do bypass this limitation.


2014/1/23 Adrian Stabiszewski <nit...@googlemail.com>
Guys, you are right.

The important thing here is: "Specifically, Android 4.4 supports emulating cards that are based on the NFC-Forum ISO-DEP specification (based on ISO/IEC 14443-4) and process Application Protocol Data Units (APDUs) as defined in the ISO/IEC 7816-4 specification."

The second part is not compatible with mifare classic.

--
Sie erhalten diese Nachricht, weil Sie in Google Groups ein Thema der Gruppe "nfc-developers" abonniert haben.
Um Ihr Abonnement für dieses Thema zu beenden, rufen Sie die URL https://groups.google.com/d/topic/nfc-developers/Rdf0RxAxNeA/unsubscribe auf.
Um Ihr Abonnement für diese Gruppe und alle ihre Themen zu beenden, senden Sie eine E-Mail an nfc-developer...@googlegroups.com.
Weitere Optionen: https://groups.google.com/groups/opt_out



--
Sacha Ott - Software Engineer

Andrey

unread,
Feb 4, 2017, 11:29:51 AM2/4/17
to nfc-developers
Hi Sacha, 

Did you managed to emulate Mifare Classic card?
Or, just the UID?

Thanks,
Andrey

пятница, 24 января 2014 г., 1:52:46 UTC+3 пользователь Sacha Ott написал:

Sacha Ott

unread,
Feb 6, 2017, 2:23:20 AM2/6/17
to nfc-dev...@googlegroups.com
Hi Audrey,

On my Nexus 5x the full Mifare classic (thanks to the NXP PN548 chip) and on my Nexus 4 only the UID (because of the limitation of the Broadcom 20793S chip).

Wenn Sie sich von diesem Thema abmelden möchten, rufen Sie https://groups.google.com/d/topic/nfc-developers/Rdf0RxAxNeA/unsubscribe auf.
Wenn Sie sich von dieser Gruppe und allen Themen dieser Gruppe abmelden möchten, senden Sie eine E-Mail an nfc-developers+unsubscribe@googlegroups.com.
Weitere Optionen finden Sie unter https://groups.google.com/d/optout.



--
Sacha Ott - Software and system engineer

Josua Schmid

unread,
Oct 8, 2018, 10:58:27 AM10/8/18
to nfc-developers
Hi Sascha,

please share the details how you managed to emulate Mifare Classic tags on your Nexus 5x.
I have an Google Pixel and would like to do the same thing as I have plenty of cards I'd like to leave home.

Thanks, best regards

Josua
Wenn Sie sich von dieser Gruppe und allen Themen dieser Gruppe abmelden möchten, senden Sie eine E-Mail an nfc-developer...@googlegroups.com.

Weitere Optionen finden Sie unter https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages