android - How detect when the phone enters into a nfc field using card emulation -


i'm using card emulation uicc se (no hce). min api sdk 17 , target 19.

as far remember in android 2.x intent aware app if phone goes nfc field, field_on intent. ¿is there anyhow nowadays?

the ndef detection is, obviously, not valid me far i'm passive one. situation is: "hey you're being reading active element".

thank you

browsing through current aosp source , nfc service on gs4, there couple of intents/broadcasts want:

  1. this seems sent when external rf field activates secure element:

    com.android.nfc_extras.action.rf_field_on_detected 
  2. this seems sent when application on se selected:

    com.android.nfc_extras.action.aid_selected 
  3. this seems sent when apdu received se:

    com.android.nfc_extras.action.apdu_received 
  4. this seems sent when se activated:

    com.android.nfc_extras.action.se_listen_activated 
  5. this seems sent when se's mifare functionality accessed:

    com.android.nfc_extras.action.mifare_access_detected 

moreover, found following events (some seem device specific):

android.nfc.action.transaction_detected com.sony.nfc.action.transaction_detected com.nxp.action.connectivity_event_detected 

however, i'm not sure permissions need in order receive of intents. also, i'm not sure of events apply uicc , valid embedded ses only. moreover, i'm not sure if of them broadcasts (i.e. receivable through broadcast receivers).


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -