Search code examples
javaandroidemulationnfccard

NFC Emulate card witout root


I am developing a simple app that emulates reading a card.

The big problem is, is it possible to emulate a card WITHOUT root access on an Android device?

if yes, can you share your information

thank you all.

I have looked at the following: https://developer.android.com/guide/topics/connectivity/nfc/hce

this is the working app with root access only https://play.google.com/store/apps/details?id=com.yuanwofei.cardemulator.pro&hl=tr&gl=US


Solution

  • There are many different types of NFC Tags

    You can emulate a Type 4 tag without rooting the phone. As you have seen this can be done as per https://developer.android.com/guide/topics/connectivity/nfc/hce

    An example of HCE is available at https://github.com/underwindfall/NFCAndroid

    This works without rooting the phone.

    I believe that some (not all) phone hardware might be able to emulate one other type of Tag if you have rooted the phone and know the non public API to access the hardware in the right manner (not confirmed).