History log of /packages/apps/Nfc/src/com/android/nfc/cardemulation/PreferredServices.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c729f699349f6bf57c50d64e88011964043403ef 22-Nov-2016 Hiroki Yamamoto <hiroki.yamamoto@sonymobile.com> Fix NPE in isForegroundAllowedLocked()

Sometimes crash happens if a preferred foreground service is deleted.
In order to avoid this, null check should be added.

Test: manual
Bug: 33062858
Change-Id: I349697cae8b38976d22e20fbddc64612a9df57c4
/packages/apps/Nfc/src/com/android/nfc/cardemulation/PreferredServices.java
3bfcf3b4d158db975e118580b268da12fdaca922 17-Aug-2016 Akinobu Nakashima <akinobu.x.nakashima@sonymobile.com> Query foreground service preference for specific users

The foreground service is user dependent preference,
therefore userId has to be specified to query.

Bug: 30907613
Test: Manual; Change setting for sub users and verify
Change-Id: I401fea17aff22a249d875f2c77cf88b578139a6c
/packages/apps/Nfc/src/com/android/nfc/cardemulation/PreferredServices.java
50c2629198d9302d2d2e2fcbb7e3c863dd7893a4 23-Jan-2015 Martijn Coenen <maco@google.com> Don't allow overlapping AID registrations.

If a service registers a prefix *and* and an
exact AID which falls in the prefix range,
the latter is not ignored as it should be.

Bug: 19144664
Change-Id: Iac0b4e2a7b606483b4d6ae07c9b82045caee84a9
/packages/apps/Nfc/src/com/android/nfc/cardemulation/PreferredServices.java
d943597d17fb8aa462b119040334478756f9e2f9 13-Nov-2014 Martijn Coenen <maco@google.com> Restrict RF Field events to preferred app.

If any of the packages in nfcee_extras.xml
is preferred (either tap&pay or foreground),
only that app will get RF field events. Otherwise,
all apps in nfcee_extras will get the events.

Long term solution will be to reduce reliance
on RF field events (which doesn't scale), and instead
tie this to AID selection.

Bug: 18358874
Change-Id: I29276b8929f48b8ca33d61c4120a7405c0ab4dcf
/packages/apps/Nfc/src/com/android/nfc/cardemulation/PreferredServices.java
0ad654d57bf17d73f2a7de5c44c9d69b7b450962 26-Sep-2014 Martijn Coenen <maco@google.com> Fix bugs in AID prefix conflict resolution.

- Should peek() the queue, not poll(), which
would remove an element from it - which is
not always the correct decision.

- Fixes an issue where we don't detect
a conflict between an app asking foreground
preference for an exact AID which conflicts
with a prefix AID of the payment default
(it would only detect exact AID conflicts).

- Fixes not assigning the resolved category
in a few scenarios.

Bug: 16517161
Change-Id: I3fae502a7c39a6e9e5bb056465653f08e73e754f
/packages/apps/Nfc/src/com/android/nfc/cardemulation/PreferredServices.java
31208d3ee36f583fd998c89508a3e93bb550cb29 30-Jul-2014 Martijn Coenen <maco@google.com> Support for AID prefix registration.

Bug: 16517161
Change-Id: I8bc58ac0e9fb6684a7ee22d712dbbd91279d4c30
/packages/apps/Nfc/src/com/android/nfc/cardemulation/PreferredServices.java
ea8bbf3e6a41b4ace768f0b2c74bdcf21e2aee64 27-Jun-2014 Martijn Coenen <maco@google.com> Prevent foreground app from grabbing AIDs.

With the new foreground / dynamic AID registration APIs,
the following scenario could happen:

1) User has configured device to not allow payment apps
to be overriden by foreground apps.
2) App X doesn't register any payment AIDs, and asks the
OS to receive foreground preference.
3) The OS grants this, because there are no payment AIDs
requested.
4) App X then calls the dynamic AID registration API to
register payment AIDs that conflict with the default
payment app.
5) The OS assigns the AIDs, recomputes the routing table,
and now routes these AIDs to APP X, ignoring user
preferences.

Bug: 15933251
Change-Id: I803794fac8d086d809a0bafa0b2eedfb91cce77a
/packages/apps/Nfc/src/com/android/nfc/cardemulation/PreferredServices.java
2f07e3e221cb157918c198e4cd58d8242e897b68 24-May-2014 Martijn Coenen <maco@google.com> Re-compute preferred services on unregister.

Bug: 15195300
Change-Id: Ica093e0626545ff5d975f5327779c57bc948431a
/packages/apps/Nfc/src/com/android/nfc/cardemulation/PreferredServices.java
da772582c17e3f5ffe36e4cab3e1ede3cba32060 26-Apr-2014 Martijn Coenen <maco@google.com> HCE/SE foreground support.

- Allow apps to specify a service they'd like to execute while in foreground.
- Refactored code that determines priority into PreferredServices
- Made a generic ForegroundUtils class that use IProcessObserver
to monitor foreground/background state transitions.
- Simplified logic in RegisteredAidCache that determines where an AID goes. Order is:
1) Foreground (if allowed to override)
2) Payment default app
3) Other.
- Added dump() to classes for easier debugging

Change-Id: Idf871ea91d10102b82b170a45b519be98adc9edf
/packages/apps/Nfc/src/com/android/nfc/cardemulation/PreferredServices.java