Change default P2P initiator mode to phNfc_eP2P_ALL (all passive and 424A).

Also add debug hooks to manually set P2P modes.

Change-Id: I4abd8d5ac35c3ef6c6ffee475760b917a8bcebf1
Patch to set the ATQA of the P2P NFC Target 106 passive to 0x00 0x02

This patch permit to avoid a collision between NFC-WI and P2P NFC Target 106 passive mode
in front of a payment reader.

Change-Id: Ie044cf519c7cf56f70277a2bc4cb661cf43529db
Fix bad merge from gingerbread:

Show an icon in the status bar when the NfcAdapter is in card emulation mode.

Change-Id: I64805f1b5f9d4bd9784791ed3a67d76b9e3788f3
Re-enable nfc.
Merge "Another attempt at fixing JNI local reference leaks." into gingerbread
Implement callback interface for Ndef push.

Change-Id: I829c95436b69f41bc473f8085f18247fedac48c5
Add support for TNF_EXTERNAL in NDEF_DISCOVERED intents.

The URN is converted to a URL in the form:

vnd.android.nfc://ext/<domain_name>:<service_name>

so that it can be processed by IntentFilter. For example to
catch all TNF_EXTERNAL entries for example.com you would use
the following in your manifest:

<intent-filter>
    <action android:name="android.nfc.action.NDEF_DISCOVERED" />
    <category android:name="android.intent.category.DEFAULT"/>
    <data android:scheme="vnd.android.nfc"
          android:host="ext"
          android:pathPrefix="/example.com:" />
</intent-filter>

Change-Id: I5f5b121aa217364611923113985261a5c9a2171e
Use a hardcoded SE reset script.

Remove per-package support for tear-down. It just complicates things.

Change-Id: I9ab413df339b2d5407084b2b83c0c2a8feabc0e4
Merge "Use a hardcoded SE reset script." into gingerbread
Fix a bug with absolute URI processing.

Change-Id: Ic9dc3f981e6abe52d7732eab35d6cc2c535a2dad
Merge "Fix a bug with absolute URI processing." into gingerbread
merge in gingerbread-release history after reset to gingerbread
Enable NFC after the device is unlocked.

The current behavior is to enable it on screen on.

Change-Id: Ia9e7a839ee3365ed94494eeb154aadd7bf8f1b9c
Implement Mifare Ultralight-C detection.

Bug: 3398465
Change-Id: Ia335c3c07aef98d05ba68ea84e908b0375d4adcc
am a60e8301: Change default P2P initiator mode to phNfc_eP2P_ALL (all passive and 424A).

* commit 'a60e8301ea9d0d33921982c3cfe7d8854f187c40':
  Change default P2P initiator mode to phNfc_eP2P_ALL (all passive and 424A).
am 30f99b9a: Patch to set the ATQA of the P2P NFC Target 106 passive to 0x00 0x02

* commit '30f99b9a446029bac5cb02b6efe5cae2f0349749':
  Patch to set the ATQA of the P2P NFC Target 106 passive to 0x00 0x02
am 662d6985: Merge "Another attempt at fixing JNI local reference leaks." into gingerbread

* commit '662d698534f9cf3c8224ae4083e55a8c2245af4e':
  Another attempt at fixing JNI local reference leaks.
Backup NFC preferences.

Backs up all NFC shared preferences. Note this only works when doing a
full system restore. Doing just a runtime restore won't trigger the NFC
service to restart and reload the setting.

Bug: 3139537
Change-Id: I40d3e5c5cd39482a292e634a941af6093f639ece
Check whether an activity is enabled before adding to the chooser.

The RegisteredComponentCache is updated on asynchronous messages
from the PackageManager, which may be delayed for several seconds.
So if an application disables an activity, the activity may still show
up in the activity chooser. Selecting this activity will cause the
NFC service to crash. Prevent this by actually checking whether
an activity is enabled before adding it to the list.

Change-Id: Ibe28b58dd110d93431508cbf728a89743c8fc53b
Make sure NFC stack is initialized before attempting SE reset.

This fixes a regression at about GRJ46 where phones that had NFC
turned off would fail to perform SE reset on first boot of GRJ46
and later. This would prevent NFC from being turned on, and caused
NFC service to eat battery.

Change-Id: I4714f06e8a3c92a5974851dd1be90b797e3058ac
Bug: 4504474