1. 26 Sep, 2013 1 commit
    • Martijn Coenen's avatar
      HCE: invalidate cache if passed in service unknown. · 06645f1a
      Martijn Coenen authored
      To fix a specific scenario where a service is enabled
      using PackageManager.setComponentEnabledSetting(): in this
      case, the ACTION_PACKAGE_CHANGED broadcast is delayed by
      10 seconds, causing NfcService not to know about enabled
      services until then.
      
      This in turn could cause our "isDefault" APIs to return
      incorrect results in the first 10 seconds after changing
      the component state, because we do not know about the
      newly enabled service yet.
      
      Fix by invalidating the cache if we don't know about a
      service passed in from API calls.
      
      Bug: 10633674
      Change-Id: I4c236002afc79464e0b41f3c6919541915020ba4
      06645f1a
  2. 25 Sep, 2013 1 commit
    • Martijn Coenen's avatar
      Latest HCE UX. · a3b2c794
      Martijn Coenen authored
      Use service description whenever we can.
      
      Bug: 10862185
      Bug: 10859925
      Change-Id: I1e6f668bec0d2d2e4f96f803ba24ba58088836a3
      a3b2c794
  3. 19 Sep, 2013 1 commit
  4. 18 Sep, 2013 2 commits
  5. 16 Sep, 2013 1 commit
  6. 14 Sep, 2013 1 commit
  7. 12 Sep, 2013 7 commits
  8. 11 Sep, 2013 1 commit
  9. 10 Sep, 2013 2 commits
  10. 04 Sep, 2013 3 commits
  11. 03 Sep, 2013 1 commit
  12. 30 Aug, 2013 1 commit
    • Martijn Coenen's avatar
      Upgrade to new API changes. · f5cd84c3
      Martijn Coenen authored
      Following API review. Also:
      - Added support for pause/resume P2P in reader mode
      - Fixed bug where we tried to route even when NFC was off,
        causing lockups.
      
      Bug: 10550349
      Bug: 10552589
      -
      
      Change-Id: I48f6834386bd542bdf1b7f1a8b1072d8981b0915
      f5cd84c3
  13. 29 Aug, 2013 1 commit
    • Martijn Coenen's avatar
      HCE: API updates, default handling, lock-screen. · 451ba48f
      Martijn Coenen authored
      - Use new selection mode APIs
      - Fixed up default handling
      - Check if service requires device unlock before dispatching
      - Fixed isDefaultServiceForAid()
      - Fixed a bug where we created two routing managers
      
      Change-Id: Iba4a3ce7f599974ccedbf8d301cc46ff1e99c94e
      451ba48f
  14. 27 Aug, 2013 1 commit
    • Martijn Coenen's avatar
      Implement reader mode APIs. · c4e4277a
      Martijn Coenen authored
      Disable p2p/listen modes on request. Currently only
      for NCI platforms, NXP will follow later.
      
      Also, fixed some compiler warnings and a mem leak.
      
      Bug: 10360259
      Change-Id: Id13db24914adc43db62e055b66e0989e9cde2482
      c4e4277a
  15. 22 Aug, 2013 2 commits
  16. 19 Aug, 2013 2 commits
    • Martijn Coenen's avatar
      HCE UX: Display dialog on service failure indication. · 78976de0
      Martijn Coenen authored
      Also:
      - Refactor AID handling to separate class.
      - Implement unHandled() call from service.
      - Verify the service's identify by checking replyTo param
      - Return 6F00 in case we can't parse an APDU for whatever reason.
      
      Bug: 10262585
      Change-Id: I1a3ccb9ae57107d68cf5923c3cf05bd224f93e4e
      78976de0
    • Evan Chu's avatar
      Sync up with Broadcom JNI changes. · a8aa0714
      Evan Chu authored
      Patches contributed by Evan Chu<evanchu@broadcom.com>
      and Paul Chaisson<pchaisson@broadcom.com>.
      
      Bug: 10360038
      Change-Id: I1402191406b08e097680f8c7f587f393f749184e
      a8aa0714
  17. 10 Aug, 2013 1 commit
  18. 08 Aug, 2013 2 commits
    • Martijn Coenen's avatar
      Queue SELECT APDU in case a service was already bound. · ac91fe83
      Martijn Coenen authored
      Change-Id: I01bfe49d718767ae1087a58f310b683ffe7807d1
      ac91fe83
    • Martijn Coenen's avatar
      HCE: permissions, OffHost services, payment service. · 89c89331
      Martijn Coenen authored
      - Added permission and userId checks for all new
        incoming binder calls.
      - Started enumerating OffHostApduServies correctly,
        dealing with the routing as we go.
      - Fixed up HostEmulationManager logic to work with the
        correct service; check if service is already bound.
      - Persistently bind to payment service if one has been
        selected as default by the user.
      - Return 6A82 for AIDs that are not found.
      
      Change-Id: I7b8121bec54b815d94b49747bc4f2bb00de26b36
      89c89331
  19. 07 Aug, 2013 1 commit
  20. 06 Aug, 2013 1 commit
    • Martijn Coenen's avatar
      HCE: 1-time tap overrides, chooser/tap again. · 75f63db5
      Martijn Coenen authored
      - Added two dialogs for dealing with app selection
        and asking the user to "Tap Again" once an app
        has been selected.
      - Logic for dealing with 1-time tap overrides and
        defaults.
      
      UX still to be finalized.
      
      Change-Id: I10f9fed6ef8aa6255a88f6a518af9875068ddac4
      75f63db5
  21. 05 Aug, 2013 1 commit
  22. 03 Aug, 2013 1 commit
    • Martijn Coenen's avatar
      More HCE work. · a0b908c5
      Martijn Coenen authored
      - Factor our helper class containing information about
        (Off)HostApduServices to ApduServiceInfo.
      - New BIND_NFC_SERVICE permission to protect implementing
        services from other apps binding.
      - Implement INfcCardEmulationService interface from
        the framework APIs.
      - Observe changes in settings for default apps in a
        category.
      - Single algorithm that resolves AIDs to a list of eligible
        services, taking into account defaults as well. Result of
        that algorithm feeds directly into the routing decisions.
      - Removed old persisting code, everything is in Settings.Secure now.
      
      Change-Id: I1840710f19435b079d20a4a41642b79fd03d1c76
      a0b908c5
  23. 26 Jul, 2013 2 commits
  24. 24 Jul, 2013 1 commit
  25. 23 Jul, 2013 2 commits