1. 08 Aug, 2013 1 commit
    • 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
  2. 07 Aug, 2013 1 commit
  3. 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
  4. 05 Aug, 2013 1 commit
  5. 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
  6. 26 Jul, 2013 2 commits
  7. 24 Jul, 2013 1 commit
  8. 23 Jul, 2013 5 commits
  9. 22 Jul, 2013 1 commit
  10. 16 Jul, 2013 1 commit
    • Martijn Coenen's avatar
      HCE: Support dynamic routing changes. · d53c2b59
      Martijn Coenen authored
      - Routing table will now be dynamically updated as
        HCE services are installed/removed/modified
      - Layering and arch:
        - RegisteredAidCache knows about which services want
          which AIDs, and on what route.
        - AidRoutingManager maintains the current state of the
          AID routing table in the NFCC.
        - HostEmulationManager is responsible for incoming
          HCE transactions and resolving them to the correct
          service.
      - Fixed various bugs
      
      Change-Id: I16327dfca96a9bd3fb5633c2e6b4247fe35ab8d6
      d53c2b59
  11. 01 Jul, 2013 4 commits
  12. 28 Jun, 2013 1 commit
  13. 17 Jun, 2013 1 commit
  14. 13 Jun, 2013 5 commits
  15. 12 Jun, 2013 4 commits
  16. 10 Jun, 2013 1 commit
    • Martijn Coenen's avatar
      Host-based card emulation. · 9f8f6cf9
      Martijn Coenen authored
      Initial check-in that allows to build basic HCE apps:
      - Introduced new RoutingManager, taking care of programming
        the routing table to the NFCC.
      - Added DeviceHost interfaces for adding/removing aids to
        the routing table, and sending raw frames.
      - On devices that have an eSE, the eSE is the default route.
      - Removed routing code from SecureElement class.
      - HostEmulationManager resolves and dispatches AIDs
        routed to the host to an application service.
      - Simple Messenger service interface for exchanging APDUs.
      - RegisteredAidCache keeps a cache of AIDs that are registered
        by Android applications, as well as their route.
      
      TODO:
      - Dynamic registration of AIDs.
      - Dynamic updates of the routing table.
      - AID conflict resolution.
      - Allow apps to indicate AIDs present "off-host".
      - Implement base-class HCE service in framework.
      - Switch default route to host.
      
      Change-Id: I7d7643770fcc848699810ec5443d0d9b81d85669
      9f8f6cf9
  17. 03 Jun, 2013 2 commits
  18. 02 Jun, 2013 1 commit
  19. 01 Jun, 2013 2 commits
  20. 31 May, 2013 1 commit
  21. 28 May, 2013 2 commits
  22. 26 May, 2013 1 commit