NFC controller in Sony Xperia Sola (MT27i) - NFC Hacking

Which NFC (rfid) controller is used inside the Xperia MT27i (Sola) ?
Which linux driver, is it avalable?
This info would be very much appreciated.
If you have such phone perhaps you can also do ls -l /dev/ & paste output here?
Is one able to get the 'raw' RFID read/write access on these phones?
(I.e., read/write RFID words).
E.g.: Samsung+android sdk -> allow raw access.

ok, after buying one, getting a shell i know its a NXP PN544.
Probably all droid phones use NXP, the nfc nxp seems is the one and only nfc stack on them.

Related

[Q] NFC card emulation

Hi
I am creating an NFC based solution and i need to send some information from a Nexus S to a desktop (windows 7 with ACR122 NFC Reader) via NFC. I have tried to do it using the P2P mode but i didn't find a way to read those information using the NFC reader.
And since it'is possible for the NFC to reader to reader MiFare NFC card , I need some help to know how is possible to emulate MiFare Card?
Which ROM enable NFC Card Emulation ? And how To Do it ?
Thanks
zouppa said:
Hi
I am creating an NFC based solution and i need to send some information from a Nexus S to a desktop (windows 7 with ACR122 NFC Reader) via NFC. I have tried to do it using the P2P mode but i didn't find a way to read those information using the NFC reader.
And since it'is possible for the NFC to reader to reader MiFare NFC card , I need some help to know how is possible to emulate MiFare Card?
Which ROM enable NFC Card Emulation ? And how To Do it ?
Thanks
Click to expand...
Click to collapse
I wanted to do the same thing some time ago, but found out that without access to the NFC secure element in the nexus s, this is not possible. Apparently, the 2.3.5 updated for the nexus s 4G has access to the NFC secure element... cant confirm this because I dont have one..
Any updates on this?
Sent from my Nexus S 4G using XDA App
i use an access card to get into the office at my workplace. would be cool if i could clone my card, however i dont think that is possible (security reasons). However if i had admin write the data to my nexus s NFC im sure it would be possible
Access to the SE is VERY limited. There is no public access to the SE currently.
AFAIK full Card Emulation is not in the SDK either (and may not be from an API perspective). Google in the past has cited issues with replication of all card technologies as well as lack of existing standards for emulation. They prefer to fall back on NDEF push at the API level. There is a bit of card emu stuff in the code base, but that may be related solely to payments / loyalty cards and it's not in the public API.
Thanks krohnjw - I was waiting for you to chime in. Keep us informed, if you don't mind.
Would be nice to get my transit pass on my phone...
I answered to this question on this thread:
http://forum.xda-developers.com/showthread.php?t=1443624

[Q] NFC smart cards like Mifare DESfire or SmartMX

Hi,
I'd like to create a App which I want to unlock with a NFC based smart card like a Mifare SmartMX or DESfire. So the user needs the card to do certain stuff within the application.
After the smart card is programmed with "java card" for example, is it possible to communicate with android? Is android even possible to deal with the cryptosystems?
Has anybody tried that before or knows something about it?
Thanks very much for ur help..
At the moment I'm using a galaxy nexus with android 4.0.4
cheers
-eiMer
I know NFC TagInfo ( play.google.com/store/apps/details?id=at.mroland.android.apps.nfctaginfo&hl=en ) is able to communicate with Desfire card (among with a lot of other kinds).
It can even read the secured data if it is given the correct keys.
The android SDK provides classes to handle Mifare Classic card but not Desfire AFAIK. I don't know if the used an external Desfire library or if they implemented the whole protocol by themselves (it seems to be a very big research group - founded by NXP - so they might have) but it is definitely possible to use Desfire cards with Android.
Thanks for your help.
Ill try to find out how they managed the communication.
If I get some results Ill post them here.
eiMer said:
After the smart card is programmed with "java card" for example, is it possible to communicate with android?
Click to expand...
Click to collapse
Smartcards and also DESFire communicate using the ISO14443-4 transmission protocol (also known as ISO-DEP). Android provides the class IsoDep to communicate with these cards. Depending on the card, you would then exchange either ISO7816-4 APDU commands (e.g. with your JavaCard applet or with the DESFire card in ISO 7816-4 framing mode) or proprietary commands (e.g. with DESFire native command set).
eiMer said:
Is android even possible to deal with the cryptosystems?
Click to expand...
Click to collapse
The Android API already provides support for a wide range of cipher suites, hash functions ... If that's not sufficient for your type of card, you could also implement your own algorithms.
Gildas35 said:
I know NFC TagInfo is able to communicate with Desfire card (among with a lot of other kinds).
Click to expand...
Click to collapse
Correct. I've implemented support for DESFire. For the moment, however, only authentication with the default key (DES, all zeros) is supported.
Gildas35 said:
The android SDK provides classes to handle Mifare Classic card but not Desfire AFAIK. I don't know if the used an external Desfire library or if they implemented the whole protocol by themselves (it seems to be a very big research group - founded by NXP - so they might have) but it is definitely possible to use Desfire cards with Android.
Click to expand...
Click to collapse
I've implemented the protocol myself (on top of the IsoDep class). The original DESFire protocol is pretty straight forward and there's lots of help on the web. When it comes to the EV1 extensions (improved cryptography) things get a bit more difficult.
br
Michael

Does the One X have NFC card emulation enabled?

Does the One X have NFC card emulation enabled?
Well, does it?
No. In the future it might be possible that a custom kernel and rom might be able to crack it. However at present card emulation does not work on any android phone. It has something to do with google restricting access to the secure element.
ozaghloul said:
No. In the future it might be possible that a custom kernel and rom might be able to crack it. However at present card emulation does not work on any android phone. It has something to do with google restricting access to the secure element.
Click to expand...
Click to collapse
Access to the SE and card emulation are two different things entirely. The SE in only used for payment info. Given proper API support the SE is not needed to emulate a standard NFC card (like access cards).
What that being said, card emulation is not exposed in the API itself. Based on some comments made by Google I wouldn't expect it to be exposed any time soon either. They have moved forward leveraging NDEF push for transmitting data from a device to another device via NFC.

[Q] nfc-tools on Android?

Has anyone tried porting anything based on libnfc (libnfc.org), such as nfc-tools (code.google.com/p/nfc-tools), to Android?
I've heard of the odd person or two managing to cross-compile libnfc for Android and get it working with an external reader, but I'm more interested in getting nfcutils and mfoc to run on my Galaxy Nexus...
Hi,
I was looking for the same thing as you.
Indeed some people succeeded to compile libnfc on android (android 2.3 if I remember well) and they have published a little outdated tutorial.
The problem that is their porting use libusb and permits to use an external NFC reader connected via the phone USB link.
I think you are most interested in using the internal one.
On my galaxy SIII, the NFC device seems to use an I2C link (the device is /dev/pn544). So you will need to make a libnfc "driver" for your device wich link to the I2C. I you look into libnfc code, you have some code to mange serial links but it seems a little experimental.
Moreover, there is already a driver and a lib that manage your NFC device, so you'll probably have some conflicts by trying to add libnfc.
The built-in lib is libnfc-nxp wich also includes drivers, hardware abstraction and a upper level libraries (called "FRI") providing services to manage cryptography, NDEF messages and so on. This lib is completely different from the linux libnfc.
So if you want to get lib-utils working, you will probably need to compile them after developing a wrapper between libnfc functions using libnfc-nxp. (or something like this)
In my knowledge, nobody did the job yet.
I found some tries to recode mfoc utility in an android apk but nothing functional yet (and there is often no recent activity of these projects).
Sorry.
I found this:
https://github.com/ehabkost/nfc-tools (last activity two years ago)
It appears the Android API lacks some features to get the mfoc running.
It may be possible to overcome this modifying the libnfc-nxp source in the android repo....... who knows.
Porting [nfc-tools] libnfc to Android 4.4.2
Does anyone have news about this ?
I did some research though but instead of creating a new thread, I ended up here.
if anyone is still interested, I have compiled libnfc and nfc-list from last commit on git and works on my Nexus 5 5.0.1
You can find here github.com/etmatrix/libnfc and github.com/etmatrix/libusb01 for libusb
I attached an usb device SCL3711-NFC&RW and nfc-list show me a Mifare Classic and SRIX4K.
I need to improve external module libusb, libnfc look at /tmp/libusb-0.1.12 for linking.
etmatrix said:
if anyone is still interested, I have compiled libnfc and nfc-list from last commit on git and works on my Nexus 5 5.0.1
You can find here github.com/etmatrix/libnfc and github.com/etmatrix/libusb01 for libusb
I attached an usb device SCL3711-NFC&RW and nfc-list show me a Mifare Classic and SRIX4K.
I need to improve external module libusb, libnfc look at /tmp/libusb-0.1.12 for linking.
Click to expand...
Click to collapse
Hey! I'm just trying to get into this issue, and I would really appreciate if you could help with some piece of advice
I've digged up all google, but all instructables are dated 2010-2012, I am sure that there should be some progress in this area! My goal is to flash libnfc to Android and make it use an internal nfs chip
Can you contact me? It would also be great to have a compiled file to install libnfc to my galaxy s3 and some explanation, because unfortunately I'm just a beginner in this, though a really ambitious
Thank you!
Bump.
Any news on this? I'd really like to be able to read my public transportation pass to see how much I have credit left (It is mifare classic 1k). There is no official app to read it either (nor unofficial for what I know).
You can try the app "västtrafikreader" or vasttrafikreader. You have to google it yourself.
Classik k1 efter carry heavy encryption wich makes is almost impossible to ream them. But in vasttrafikreader they got the keys for the swedish system and the cards can even be manipulated.
Its rather safe to say that you basicly cant carry out the hack w/o the proper keys.
There have been ports of mfoc and similar tools for Android in the past, but only for externally connected NFC-Readers, since the Android APIs don't allow the necessary access to the internally embedded NFC chips. The best app for working with Mifare Classic NFC chips is the "MTC - Mifare Classic Tool", which is available on the Play Store. It's open-source on GitHub and supports reading and writing to the chips if you add the keys to the dictionary file or if the sector you're trying to access uses one of the default keys. This app could totally be expanded with mfoc-like functionality, at least on rooted devices, but for now you have to run mfoc on the PC once to get the keys, add them to the dictionary and afterwards you're able to get full read/write access to all sectors of the specific chip from a supported Android handset (hardware-wise, depends on the NFC chip used).
hello, its been 4 yearsany news on an internally embedded NFC chips mfoc functionality ?

[Q] How is NFC working on your 2013 N7?

I've been seeing posts on Google+ of people having trouble to use Android Beam and some tags. The antenna is under the X of Nexus on this device, which is different from the previous Nexus 7 (which was more towards the top). Still, I'm curious if more people have trouble with Beam/NFC tags.
haven't had any trouble yet. only sent a few pictures back and forth from my galaxy nexus, but everything has transferred just fine. haven't tried web pages, videos, or apps though.
Yeah, I've seen mentions of beam issues, too. No problems here, though.
Sent from my Galaxy Nexus
Worked normal using super beam( I recommend that over android beam anyways)
Sent from my Nexus 7 using Tapatalk 4 Beta
Fine for beam
Yeah, same here. No problems. I don't use NFC much, but tested it a little with my new N7 HD (or whatever we're calling it) and my SGS III and it they both made a sound (phone buzzed too) no problem. I'd just as soon use the QR part of super beam anyway since my good batteries (zero lemon!) don't have NFC.
It does not work with me I tried under X and every where but still wont work
I tested with Nexus 4, Galaxy s4, and Nexus 4 Wireless Charger
I tried it with my old Nexus 7, and I had to hold them together and wiggle them around for several seconds before it beeped. This is probably because I had no idea the antenna was down in the middle. I'll have to try the middle of the new one against the top of the old one and see if it is more immediate.
I returned my Nexus 7 due to the qi not working on it, prior to doing that though I had checked out the nfc with both a Razr Maxx HD and a DNA... worked fine. After exchanging the Nexus7 with a new one, my qi charge now works but the NFC doesn't. I table and/or phone makes a beep and the "Touch to send" screen pops up but no files or images send. Not too worried since I don't think it's an option I would use much and I don't want to exchange the tablet again for a different one (again).
I've had no problems sending or receiving. In addition wireless charging works great, too. It's the only way I charge the N7 since I got it.
This is what I have been able to determin.
Works:
- Device to device (Nexus 7 v2 & GAlaxy Note II)
- Generic NFC tags from ebay (They also work with my NOTE II and TecTiles app)
- NFC Task Launcher app
- UPDATE: Samsung TecTiles just worked after being written with NFC Task Launcher.
Does not work:
- UPDATE: Samsung TecTiles just worked after being written with NFC Task Launcher.
- Samsung TecTiles app
Don't have and have not tried with the new TecTiles 2
This may shed some light into the TecTiles issue:
http://www.anandtech.com/show/6919/...le-with-original-tectiles-tectile-2-announced
RojasTKD said:
This is what I have been able to determin.
Works:
- Device to device (Nexus 7 v2 & GAlaxy Note II)
- Generic NFC tags from ebay (They also work with my NOTE II and TecTiles app)
- NFC Task Launcher app
- UPDATE: Samsung TecTiles just worked after being written with NFC Task Launcher.
Does not work:
- UPDATE: Samsung TecTiles just worked after being written with NFC Task Launcher.
- Samsung TecTiles app
Don't have and have not tried with the new TecTiles 2
This may shed some light into the TecTiles issue:
http://www.anandtech.com/show/6919/...le-with-original-tectiles-tectile-2-announced
Click to expand...
Click to collapse
I can also confirm that Kamor NFC Tags are not working with the Nexus 7 (2013) Wifi or LTE models. Here is information from the NXP TagInfo app regarding the non-supported tags from a Nexus 7 (2012) where the tag tiles work.
* TagInfo scan (version 2.00) 2013-10-08 09:15:09 **
-- INFO ------------------------------
# IC manufacturer:
NXP Semiconductors
# IC type:
MIFARE Classic (MF1S50)
-- NDEF ------------------------------
# NFC data set storage not present:
Maximum NDEF storage size after format: 716 bytes
-- EXTRA ------------------------------
# Memory size:
1 kB
* 16 sectors, with 4 blocks per sector
* 64 blocks, with 16 bytes per block
-- TECH ------------------------------
# Technologies supported:
MIFARE Classic compatible
ISO/IEC 14443-3 (Type A) compatible
ISO/IEC 14443-2 (Type A) compatible
# Android technology information:
Tag description:
* TAG: Tech [android.nfc.tech.MifareClassic, android.nfc.tech.NfcA, android.nfc.tech.NdefFormatable]
android.nfc.tech.NdefFormatable
android.nfc.tech.MifareClassic
android.nfc.tech.NfcA
* Maximum transceive length: 253 bytes
* Default maximum transceive time-out: 618 ms
After some Googling, I have found that Android supports a few NFC tag technologies (and that some of them are RFID standards also).
Android supports the following NFC tag technologies:
TagTechnology - The interface that all tag technology classes must implement.
NfcA - Provides access to NFC-A (ISO 14443-3A) properties and I/O operations.
NfcB - Provides access to NFC-B (ISO 14443-3B) properties and I/O operations.
NfcF - Provides access to NFC-F (JIS 6319-4) properties and I/O operations.
NfcV - Provides access to NFC-V (ISO 15693) properties and I/O operations.
IsoDep - Provides access to ISO-DEP (ISO 14443-4) properties and I/O operations.
Ndef - Provides access to NDEF data and operations on NFC tags that have been formatted as NDEF.
NdefFormatable - Provides a format operations for tags that may be NDEF formattable.
Can anyone else who is having problems with specific NFC tags or tiles verify with TagInfo the type of tag used? I suspect there may be a problem with NfcA compatibility on the NFC stack used with the 2013 models.
buckofive said:
I can also confirm that Kamor NFC Tags are not working with the Nexus 7 (2013) Wifi or LTE models. Here is information from the NXP TagInfo app regarding the non-supported tags from a Nexus 7 (2012) where the tag tiles work.
* TagInfo scan (version 2.00) 2013-10-08 09:15:09 **
-- INFO ------------------------------
# IC manufacturer:
NXP Semiconductors
# IC type:
MIFARE Classic (MF1S50)
-- NDEF ------------------------------
# NFC data set storage not present:
Maximum NDEF storage size after format: 716 bytes
-- EXTRA ------------------------------
# Memory size:
1 kB
* 16 sectors, with 4 blocks per sector
* 64 blocks, with 16 bytes per block
-- TECH ------------------------------
# Technologies supported:
MIFARE Classic compatible
ISO/IEC 14443-3 (Type A) compatible
ISO/IEC 14443-2 (Type A) compatible
# Android technology information:
Tag description:
* TAG: Tech [android.nfc.tech.MifareClassic, android.nfc.tech.NfcA, android.nfc.tech.NdefFormatable]
android.nfc.tech.NdefFormatable
android.nfc.tech.MifareClassic
android.nfc.tech.NfcA
* Maximum transceive length: 253 bytes
* Default maximum transceive time-out: 618 ms
After some Googling, I have found that Android supports a few NFC tag technologies (and that some of them are RFID standards also).
Android supports the following NFC tag technologies:
TagTechnology - The interface that all tag technology classes must implement.
NfcA - Provides access to NFC-A (ISO 14443-3A) properties and I/O operations.
NfcB - Provides access to NFC-B (ISO 14443-3B) properties and I/O operations.
NfcF - Provides access to NFC-F (JIS 6319-4) properties and I/O operations.
NfcV - Provides access to NFC-V (ISO 15693) properties and I/O operations.
IsoDep - Provides access to ISO-DEP (ISO 14443-4) properties and I/O operations.
Ndef - Provides access to NDEF data and operations on NFC tags that have been formatted as NDEF.
NdefFormatable - Provides a format operations for tags that may be NDEF formattable.
Can anyone else who is having problems with specific NFC tags or tiles verify with TagInfo the type of tag used? I suspect there may be a problem with NfcA compatibility on the NFC stack used with the 2013 models.
Click to expand...
Click to collapse
The article I posted clearly states the issue. Here is an excerpt of the pertinent part:
" When I saw the presence of BCM2079x, I remembered that this reader doesn’t read MIFARE tags, which the NXP solution does, since it is an NXP tag format. Instead Broadcom only reads tags which adhere to the standard NFC Forum tag types. Ordinarily this isn’t much of a problem, as long as users are aware of the limitation and to stay away from MIFARE classic tags on an incompatible reader."
Sent from my Nexus 7 using Tapatalk 4
I can't my NFC to work at all. I have the ntag203 tags so I know their compliant. I get nothing at all. Guess I'm going to take this tablet back and exchange. I've used several apps. If any one knows a fix or how to check and see if the hardware is at fault please pm me If I knew how to check I would.
asdf1nit said:
I can't my NFC to work at all. I have the ntag203 tags so I know their compliant. I get nothing at all. Guess I'm going to take this tablet back and exchange. I've used several apps. If any one knows a fix or how to check and see if the hardware is at fault please pm me If I knew how to check I would.
Click to expand...
Click to collapse
neither do I, it can't find a nexus 4/nexus 5 nor compatible tags
If someone find a fix, post your solution please
it worked only ONCE with a tag, then I tried to read it again and since then nothing...I tried changing roms, full wipe
I found this:
http://www.andytags.com/nfc-tags-compatibility-issues.html
...not sure if it's helpful, but there you go.

Categories

Resources