1. 12 May, 2011 1 commit
    • mike wakerly's avatar
      Add Rev · 6344b654
      mike wakerly authored
      Change-Id: Ide8d8dfe75eebb93420bc7a95130b0f6a72756b6
      6344b654
  2. 28 Apr, 2011 1 commit
  3. 20 Apr, 2011 3 commits
  4. 04 Apr, 2011 2 commits
  5. 01 Apr, 2011 3 commits
  6. 30 Mar, 2011 3 commits
  7. 26 Mar, 2011 1 commit
    • Jeff Hamilton's avatar
      Add com.android.nfc.permission.NFCEE_ADMIN. · 93d8a69c
      Jeff Hamilton authored
      It controls permissions for NFCEE administration
      and is checked based on the signature of Nfc.apk
      and the caller.
      
      The NFCEE admin permission checking is currently
      set to check the stock NFC permission.
      
      Change-Id: I164511d8f6850034ca0fc1f6f7f75c5ef212fbc2
      93d8a69c
  8. 25 Mar, 2011 1 commit
  9. 11 Mar, 2011 1 commit
  10. 10 Mar, 2011 1 commit
  11. 08 Mar, 2011 1 commit
  12. 24 Feb, 2011 2 commits
  13. 18 Feb, 2011 2 commits
    • Martijn Coenen's avatar
      Fix isConnected() implementation. · 6a7ba70e
      Martijn Coenen authored
      The NFC API's isConnected() is mapped to isPresent on a NativeNfcTag
      object, which in turn uses a cached value. This value was however not
      updated properly when the internal presence check loop detected the
      tag to be gone. The cases where isConnected() does work properly
      are screen off and explicit disconnect.
      
      Change-Id: Ieac76ceb1f161ead772ce9fd2acf273b23caca37
      6a7ba70e
    • Martijn Coenen's avatar
      Fix race in NFC tag registry/dispatch. · 10389c11
      Martijn Coenen authored
      The tag handle was only registered after the dispatch; with the "normal"
      dispatch the activity would take a while to start and this problem would not be
      seen. With foreground dispatch however, if you'd immediately try to connect to a tag,
      sometimes the tag handle is not registered yet, causing the connect() to fail.
      
      Change-Id: I92b5e36a5d8f08e410a656d364e88bce2d25c854
      10389c11
  14. 16 Feb, 2011 4 commits
  15. 09 Feb, 2011 1 commit
  16. 01 Feb, 2011 1 commit
  17. 28 Jan, 2011 2 commits
    • Martijn Coenen's avatar
      INfcTag isPresent() should not block and not cause RF activity. · ab2b44b9
      Martijn Coenen authored
      Use a cached value instead, which is based on the presence check that is running
      anyway.
      
      Change-Id: Ifa50ff38e884fa865bb7ba95dde45da39bebf7e8
      ab2b44b9
    • Martijn Coenen's avatar
      Fixed connect() failure from technology->ndef->technology. · 6b3ccb6e
      Martijn Coenen authored
      Suppose you have a MifareClassic tag with NDEF; the following scenario failed
      MifareClassic.connect()/close() -> Ndef.connect()/close() -> MifareClassic.connect() .
      
      This last connect fails because the service refuses to connect any technology
      on the same handle, except for NDEF. This check was too strict - it was only
      intended to catch connecting to a NfcA technology on an IsoDep tag, as libNFC does not
      support this. This change always allows connecting a tech on the same handle, except
      when you want to connect a non-IsoDep technology on a tag that does have the IsoDep
      technology on the same handle - in which case it refuses. This
      matches exactly what libnfc supports.
      
      Change-Id: I64d552b3cd51beb36712676492f36d182c605748
      6b3ccb6e
  18. 27 Jan, 2011 1 commit
  19. 26 Jan, 2011 3 commits
  20. 25 Jan, 2011 1 commit
    • Jeff Hamilton's avatar
      Stop using URIs for ACTION_TECHNOLOGY_DISCOVERED · 24dbea55
      Jeff Hamilton authored
      The pattern matching wasn't sufficient with the
      move to identifying technologies with their class
      names so now we use a custom dispatching mechanism.
      
      Change-Id: I3e6379d454458bbb65730ade32cdaa1680c5e339
      24dbea55
  21. 24 Jan, 2011 4 commits
    • Arnaud Ferir's avatar
      Do not disconnect P2P target if connect failed. · 7f5487be
      Arnaud Ferir authored
      If the P2P target connect failed, the P2P target disconnect cannot be done.
      However the polling loop must be restarted. This is already done in JNI layer
      by the failing connect itself.
      
      Change-Id: I1c3323e4c038c8133e7b6e16b3a238c050427cfc
      7f5487be
    • Arnaud Ferir's avatar
      Fix tag disconnect. · 2436ffe9
      Arnaud Ferir authored
      This patch fixes the tag disconnect sequence in 2 cases:
      
      1.
      When the NFC service disconnects a tag because it is not needed anymore, the
      disconnection should be effective immediately and not delayed until the tag is
      removed from the field. The NFC service is responsible for discovering again
      the same tag if the polling loop is restarted.
      The looping "presence check" in native code is then removed.
      
      2.
      Before the screen is turned off, the polling loop configuration and - if any
      tag is present - the tag disconnection must be done accordingly to the "normal"
      tag management. In particular the watchdog must be stopped properly.
      
      Change-Id: I58ee27cede110c419052b4eef07f1e4bd35ae208
      2436ffe9
    • Martijn Coenen's avatar
      Don't throw NdefFormattable technology when Ndef found. · e08c8939
      Martijn Coenen authored
      libNFC doesn't support formatting tags that are already NDEF formatted. This
      needs to be fixed in libNFC, but as a temporary work-around we will only
      throw the NdefFormattable technology if no NDEF has been found on the tag.
      
      Change-Id: I487b875de5fd66fdfec2d1b9c30fa886d8ca1477
      e08c8939
    • Jeff Hamilton's avatar
      Make the NDEF intent creation more robust. · adb527a9
      Jeff Hamilton authored
      There are lots of ways things could go
      wrong when faced with invalid NDEF data
      so just got for the catch-all and handle
      it properly.
      
      Change-Id: Ia762c8e337aef8fed867beab8159e6ed05bbacea
      adb527a9
  22. 23 Jan, 2011 1 commit
    • Jeff Hamilton's avatar
      Tweak dispatching a bit. · a1935861
      Jeff Hamilton authored
      Foreground dispatch overrides now interpret
      null for the filters as "catch all".
      
      Foreground NDEF push disables standard dispatch
      and only honors foreground dispatching so that
      two NDEF push apps don't end up just swapping
      between each other when the push happens.
      
      Change-Id: Ic305d4a3a593fff732b8d88ae72e09b4a03d6286
      a1935861