History log of /packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
34d6116d82975f558378e2b16fdad04ac70d4130 22-Sep-2017 Jizhou Liao <Jizhou.Liao@nxp.com> Fix watchdog trigged issue during stress test

Deactivate cmd between HOST and RF interface need to be synchronized
if a tag is present.

Bug: 64293485
Bug: 64517981
Test: stress test with enable/disable NFC
Change-Id: I9cc2da139b75cc19251e6fc5c60040136c54163c
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
f939e8a61d3904ab30ec59e2762f5c543ebaa672 17-Jul-2017 Ruchi Kandoi <kandoiruchi@google.com> DTA support and extensions added.

Added SNEP server extension required by NFC Forum test cases.
Added support to configure the MW as per specifc configuration
required by NFC Forum test cases.

Bug: 63903843
Test: compiles.
Change-Id: I4df165b20388d87c25a07c8048eff7997fd21070
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
1227736a352797f6bebe7f4e098dab6a15f3164c 12-Jul-2017 Love Khanna <love.khanna@nxp.com> Power sub state and CON_DISC_PARAM seqence update.

While entering in to screen on unlock state, power sub state
should be notified to NFCC first, then CON_DISC_PARAM
should be configured to enable poll-listen phase.

Bug: 63146248
Test: Compiles.

Change-Id: I9a73881ef7537d4e0b1acb6582c3b6fe1823b5ec
(cherry picked from commit 8b3d6f833469e8359e310657339e1f1418cb36c4)
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
fdcfcb0031a4fbf38dd828ac1b3ef8319342e2fa 13-Apr-2017 Ruchi Kandoi <kandoiruchi@google.com> Add native logging for libnfc-nci

Bug: 63636926
Test: Verify logs in bugreport
Change-Id: I5f46582c75d05b8a88a9b7672e0005ff1f58f674
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
8ee2015a9c4639d465a390af93df3fdcd983cac8 12-May-2017 Love Khanna <love.khanna@nxp.com> NCI2.0 Support for AID suffix registration.

Test: compiles.

Change-Id: I11448f22dee90d9e93eb8705366c3e22967e521b
(cherry picked from commit 014170ea169484c0126b4a8ebc4ed4a0f6193af3)
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
3a894dda035a331860f0f23e93528527493a07a3 11-May-2017 Love Khanna <love.khanna@nxp.com> NCI2.0 Screen state and power sub state management.

As per NCI2.0 screen state transitions can be
handled without restarting the discovery loop
by using the con_discovery_param.
Also as part of screen trasition power sub state
info is updated to NFCC.

Test: compiles.

Change-Id: I28d7f58b299a8ae9acbe7aa643adfc0a16b787cc
(cherry picked from commit bd4c6c8c4a7553a77da8655c3d4d4816cb577185)
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
09922d2d1dcb21cf7b0bf830efe577381f855c4b 14-Apr-2017 Love Khanna <love.khanna@nxp.com> NCI 2.0: Removed RF_FIELD_INFO config param update during P2P.

As per NCI2.0 , it is not allowed to configure the RF_FIELD_INFO config
parameter in RFST_POLL_ACTIVE or RFST_LISTEN_ACTIVE.

Bug: 63146248
Test: Compiles.
Change-Id: I8cf84e033c2c6401ac8ccbbb2ae30785f3687f3d
(cherry picked from commit e40dad57051205491d69cb7101be6761cd96834c)
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
2aff4f645910cdc16a91c4670ee26e4d00045470 04-Apr-2017 Love Khanna <love.khanna@nxp.com> ISO15693 standardized as defined in NCI 2.0

ISO15693 is standardied as T5T in NCI2.0.Therefore.Functionally,
the handling of T5T protocol is same as porotcol ISO15693.

Bug: 63146248
Test: compiles.
Change-Id: Iccf10fdf8c19c059d9f2c5ed2a8f79e02d9970c1
(cherry picked from commit dcaa73482e2e6b6c52bef813e8a320533a337b84)
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
5f28e5ee8f39bd58e182f911ebb50960b2a77830 27-Apr-2017 Joe Onorato <joeo@google.com> Turn off logspam

These logs are the 8th most popular logs when the screen is turned off. And when you actually use
NFC, all other users of logcat are pushed out.

For more information, see https://source.android.com/source/code-style#log-sparingly

Also: Fix coding style. No space after function or macro name.

Bug: 37252687
Test: development/tools/logblame/power_toggle_test
Change-Id: Id7212abeee5ee05a5916dfd8685c90fbe2cca8f5

Turn off logspam

For more information, see https://source.android.com/source/code-style#log-sparingly

Bug: 37252687
Test: development/tools/logblame/app_switch_test
Test: development/tools/logblame/power_toggle_test
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
c5956ce2009414eef843b413eeb822b529ddb85c 27-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Use _OverrideLog.h instead of OverrideLog.h

This is a temporary hack to prevent the ordering. This is needed because
OverrideLog.h needs to be included first and clang-format would change
the order.

Test: compiles
Change-Id: Ide07e814e7e1be8d7d8a89f634d855938ed5adab
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
44a6057818840847033a795da9546a3ac4bae76b 13-Dec-2016 Ruchi Kandoi <kandoiruchi@google.com> nfc: Change the data type in log messages to match the new types.

Test: Compiles
Change-Id: Id9fbf743e9e6111c3c5567ee162adb27e6a7436d
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
2dfff7620070cff76fb117aafcd06e57cceb59fb 15-Dec-2016 Ruchi Kandoi <kandoiruchi@google.com> Changes data types to standard type

Data types were changed using platform/system/bt/tools/scripts/change_types.sh:
UINT8->uint8_t
UINT16->uint16_t
UINT32->uint32_t
UINT64->uint64_t
INT8->int8_t
INT16->int16_t
INT32->int32_t
INT64->int64_t

Test: Compiles
Change-Id: I04b6c7b7836145033537aa2af27e18311b3c6d91
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
729dc345dae23c1990cf5377a3948584cff2171a 24-Oct-2016 Andre Eisenbach <eisenbach@google.com> Log thread source for doAbort()

Test: manual
Bug: 29939338
Change-Id: Id0009c02a26cde4a12e6baceeab179a9ed1a7d37
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
ed5ec08dfaf4080d69a1a04b00d1e3c54d2d78a6 25-Feb-2016 Aurimas Liutikas <aurimas@google.com> Fix all the warnings in packages/apps/Nfc/nci/jni.

Bug: 26936282
Change-Id: I797b1ee866b3d7fe5ebb025c6256e9c3a838fd95
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
ecb8d7bbd1a44cd3edbcb6c5d903fc8d9a625d70 22-Jan-2016 Yoshinobu Ito <Yoshinobu.Ito@jp.sony.com> Implementation of HCE for NFC-F.

This impementation includes HCE(Host-based Card Emulation) for NFC-F
which emulates NFC Forum Type 3 Tag on a smartphone.

Signed-off-by: Daisuke Ito <DaisukeE.Ito@jp.sony.com>
Yoshinobu Ito <Yoshinobu.Ito@jp.sony.com>

Change-Id: I1618a7fba801e0705ff3cc078206a1446b3dd56d
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
a0190709be02f0064bbc7d509c0d71690803e6b5 23-Nov-2015 Martijn Coenen <maco@google.com> Treat more as a UINT8 like it should be.

Change-Id: I0385cd1b2fb1567370fc69bb0583e5ca986c3dfd
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
8605731e8f17d1fde003084811f13f52539eb20c 03-Aug-2015 Jizhou Liao <Jizhou.Liao@nxp.com> Support Mifare Classic tag.

Support NXP Mifare Classic tag.

Bug: 23618022
Change-Id: If674b493bba7596803738f8c3d22b7ce89a0fa8b
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
c5eec3c659d60a469259340608d7403c73fd6865 09-Jun-2015 Jizhou Liao <Jizhou.Liao@nxp.com> Fix peer-to-peer server register error if RF discovery is started.

If RF discovery is started, discovery should be temporarily
stopped before deregister peer-to-peer server.

Bug: 22283840
Change-Id: I42c826454f050e09b3d673b89560a8c7bed728d7
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
2decd22cff017ed79d378356002aff83830f4919 01-Jul-2015 Jizhou Liao <Jizhou.Liao@nxp.com> Reset P2P flag in de-initialization.

The sP2PEnalbed flag should be set to false in de-initialization.

Change-Id: I480d3664d004c068e8043e999da6da442a4095a0
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
e6b10cf6f5c7bb363890428e2c52505c76b13b8d 03-Dec-2014 Andres Morales <anmorales@google.com> Fix issue where Beam is disabled in SW

If the screen is locked we don't persist the proper
state, causing NFC P2P to be disabled until SW completes,
breaking EDU provisioning.

Bug: 18534741
Change-Id: I96b8f70a7b3c58e0690c2f2fc69776e15ec41806
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
31b0f4653686119d74876cae5d637c5baf52b935 12-Nov-2014 Andres Morales <anmorales@google.com> Prevent Beam at the lockscreen and during provisioning

Since we can poll at the lockscreen not for unlock
tags, need to explicitly disable Beam.

Also since we allow peripheral handover during provisioning,
we started allowing Beam as well. Blocking that.

Bug: 18349433
Change-Id: I987f43228d2c003c66201d2e91bd9bdfebd49d78
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
f3e09e66825850178879e76ccc7708509dbbc5b6 22-Sep-2014 Martijn Coenen <maco@google.com> Shutdown EEs when NFC is disabled.

Bug: 17298769
Change-Id: Icee92fb3fafb3168a4e04582b328b4ad4b6e3e39
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
c19c065b6d0e1a088780c4dca27a1404d5926765 09-Sep-2014 Martijn Coenen <maco@google.com> Reinstate RF field events.

These are generic enough to maintain in AOSP,
and can still be protected by nfcee_access.xml
like they used to be.

Bug: 16653617
Change-Id: Id604fcc45d4263b24fea2f16ca6a24e25f8580c3
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
f5c979220fadb2c3ac0bca09e16d0d281ed20eb2 25-Jul-2014 Martijn Coenen <maco@google.com> Support for configuring SE listen technologies.

If the config file specified an SE to use, configure
its listen technologies correctly.

Also, fix commitRouting() to actually commit the
configuration.

Bug: 16517161
Change-Id: I1283fcb3f855c89a8b238be857bd56f06a14138f
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
304a6342ee7e5620d3b50d988755c035f1686dc2 28-Jun-2014 Martijn Coenen <maco@google.com> Don't conditionally enable snooze.

We keep our devices in snooze by default now.

Change-Id: Ia84635031d60221da054448b8c81c5c48f1f821d
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
0799bcbe2469aa6a88c6cbdf0cdee5b50e1994f0 18-Dec-2013 Andres Morales <anmorales@google.com> Refactoring NfcService routing logic.

Currently, routing logic contains a lot of nested conditionals
and causes unnecessary work to occur, particularly in enabling
reader mode. This CL moves this logic to a state object that contains
all necessary information to transfer from one routing state to another,
leading to fewer calls to the NFCC, eliminating duplicate work, and
making the code more readable.

Change-Id: I6a8758e61cc0cbb015d618575da35386eadf7d3a
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
b5a6c9615433734869c7a73a06c1b3799ebe0c9f 06-Jun-2014 Martijn Coenen <maco@google.com> JNI code from Broadcom.

Contribution from Evan Chu <evanchu@broadcom.com>.

Changes made to make it build with current tree:
- Removed deferred start/stop logic (no SE code in AOSP).
- Removed separate enable/disable implementations (no SE code in AOSP).
- Removed second option for P2P workarounds with PN5xx as it's not used.

Change-Id: Ia33e3fa29b09dca2f6d2721307edde746605da54
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
c8768e4b2ab114d227bd8af441d81525837f78cb 25-Mar-2014 Martijn Coenen <maco@google.com> Goodbye secure element.

I really liked you,
but everybody else wanted you too.
Maybe some day you'll be back,
connected to the host CPU.

Change-Id: If78bce7c7178a77919b8b1b64334909f4ff7e037
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
4181521d0157554a59e32bf06f80bfbc6288f01d 02-Apr-2014 Martijn Coenen <maco@google.com> Don't enable LPTD if it wasn't already.

On newer devices the controller may have a default LPTD
setting already, but we disable it in the LPTD config
by writing the enable byte to zero. Check for that specific
byte, so we don't enable LPTD automatically if it wasn't
enabled before.

Change-Id: I105cc5c2c7b53467502ca1851460e9999697c719
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
a1e95d30dbe8dad0a8bb333b4ca17c009fc34e2f 04-Feb-2014 Andres Morales <anmorales@google.com> Revert "Refactoring NfcService routing logic."

This reverts commit 80e61a46c0541471ef01a9d3c91570139336bcff.

Change-Id: I0b4fc471a3dae22c4d732b1c002f51a412c2c121
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
80e61a46c0541471ef01a9d3c91570139336bcff 18-Dec-2013 Andres Morales <anmorales@google.com> Refactoring NfcService routing logic.

Currently, routing logic contains a lot of nested conditionals
and causes unnecessary work to occur, particularly in enabling
reader mode. This CL moves this logic to a state object that contains
all necessary information to transfer from one routing state to another,
leading to fewer calls to the NFCC, eliminating duplicate work, and
making the code more readable.

Change-Id: I4c451cb96ed27954fe2e6e7e7704643f3f3456a6
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
fb18ffb259fe8f40e81516842497735a7c0b6a8c 18-Dec-2013 Andres Morales <anmorales@google.com> nfc-64 part 1: store native structure in a long rather than an int

Change-Id: I3ff21d3f1ad0f8e9e643c84fecd4c45a1b373133
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
d2604c0544f7bc26e5b2407f0215cccfffedae2c 11-Dec-2013 Andres Morales <anmorales@google.com> Expose snooze mode config and polling modes in java layer

Change-Id: I3a604fb4260a1e99e6aa40189e999996d5947ed4
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
6e00e3f4b79fe875fc22067d0f84634325968fbd 14-Nov-2013 Martijn Coenen <maco@google.com> Revert "Increase NFC-A guard time to work around B5 issue."

This reverts commit 8d9375ec6e24546fe7b5423e436b7bbe48862f57,
no longer needed because of proper fix in B5 firmware.

Bug: 10852675
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
8d9375ec6e24546fe7b5423e436b7bbe48862f57 07-Nov-2013 Martijn Coenen <maco@google.com> Increase NFC-A guard time to work around B5 issue.

Increase NFC-A guard time in reader mode, to make
sure we properly wake up BCM20791B05 devices.

Bug: 10852675
Change-Id: Ia30972d5d7850171bc58068c5d6896025eb6c2c1
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
8d154680537afa5242edeb98c8f414d6186558cf 04-Oct-2013 Martijn Coenen <maco@google.com> Increase reader mode pull duration.

Also fixed a bug where gActivated is not
properly reset (scenario: turn NFC off
while doing P2P/reader) and moved some
logs to DBG. Will flick the DBG switch
later.

Bug: 10852675
Change-Id: If115ab162ddc4a080166f00cdf5e95ed4da70642
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
33aeb7c13f8fd9d9bd301f31680836b8ec912d51 12-Sep-2013 Martijn Coenen <maco@google.com> Fix build.

Change-Id: Id29de698f60266a0dd8d6fb4d5823dc5011f1562
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
d6ead4d11c56cc4b1e90a93d6d5fe7583abbbfb8 12-Sep-2013 Martijn Coenen <maco@google.com> Reader API: disable LPTD on NCI devices when in reader mode.

To improve reader performance.

Bug: 10360259
Change-Id: I3a76563b876aafa9c8cd555127a32f8c8e5bfd14
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
f5cd84c3a7ffb66196ab3c0745569da937d7533b 30-Aug-2013 Martijn Coenen <maco@google.com> Upgrade to new API changes.

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
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
c4e4277a71c70e96198cb760676ad3b40f9e0e3d 27-Aug-2013 Martijn Coenen <maco@google.com> Implement reader mode APIs.

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
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
a8aa07142ea0078d3ae4ae486e094e2f2f4ff732 27-Mar-2013 Evan Chu <evanchu@broadcom.com> Sync up with Broadcom JNI changes.

Patches contributed by Evan Chu<evanchu@broadcom.com>
and Paul Chaisson<pchaisson@broadcom.com>.

Bug: 10360038
Change-Id: I1402191406b08e097680f8c7f587f393f749184e
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
d53c2b599c73f7404b5a604be4d9a5449cafdd72 16-Jul-2013 Martijn Coenen <maco@google.com> HCE: Support dynamic routing changes.

- 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
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
9f8f6cf9c58405ecafe2d425801e6c14088db8c7 30-Apr-2013 Martijn Coenen <maco@google.com> Host-based card emulation.

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
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
4293521790a2d46cb94f0bcf5b241634128d39f2 02-May-2013 Martijn Coenen <maco@google.com> am fa5d6ea2: am f5954743: Don\'t overwrite SWP_CFG on SE pipe enable/disable.

* commit 'fa5d6ea26ada28448971e7f0b542dfe84307836d':
Don't overwrite SWP_CFG on SE pipe enable/disable.
f5954743f1d8b8ace641880fd55466fff4d914cb 02-May-2013 Martijn Coenen <maco@google.com> Don't overwrite SWP_CFG on SE pipe enable/disable.

Different BCM2079x revisions have different interpretations for
bits in the SWP_CFG config parameter. Instead of overwriting
whatever is there, read the current value, and just set/unset
the bit for UICC_IDLE timeout as desired.

Bug: 8776949
Change-Id: I33807aef1e94cfa6a2f4af0dd6a46dae630d850f
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
9cc194fd111bd41013b2ba1b096b0111ae7585fb 19-Apr-2013 Martijn Coenen <maco@google.com> Remove special deactivation handling code.

Original purpose of this block is unclear, so
removing it.

Change-Id: Ic1753f3a8c7a4d688b2f31fb6184ec6131a5ffe8
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
2526197cb8039c1fa66c950110c78cbc95de1bba 17-Apr-2013 Martijn Coenen <maco@google.com> Fix RF field stuck on race condition.

If we deactivate a tag to sleep after an NDEF check,
we're waiting for a DEACTIVATE_NTF event from the core
stack to unblock us. However, there is a
code path where we can be unblocked even without a
DEACTIVATE_NTF event. If you'd happen to remove the tag
right after the deactivation, we'd be getting read/write
interface errors, which erroneously unblock the deactivate
before it has been completed.

Then, we send another deactive command to go back to discovery.
However, because the previous deactivate is still pending, the
deactivate to discovery command gets dropped, and we stay in
a situation where the RF field is stuck on, burning power.

For now fix by adding RW_INTF_ERROR_EVTs to the list of events
that do not unblock a thread waiting on deactivate. Ideally
no other event is allowed to unblock, but we'll need more time
to verify that is actually true.

Bug: 8616351
Change-Id: I381046f0320fd4b31c5ec65d54ef2e9530c3b13c
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
aafca6482d0b65b1ecab990659c07e4a82582db8 15-Apr-2013 Martijn Coenen <maco@google.com> Don't restart RF discovery if not needed.

No need to restart RF discovery is the
current routing is already applied.

Bug: 8508568
Change-Id: If4c2b4fef9211bbd0708e72a82e9726e43dd7857
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
b408fc371821c397b47c8722c339c6b4359e062f 09-Apr-2013 Martijn Coenen <maco@google.com> Properly reset field / listen mode flags in SE object.

On NFC disable, the SE object is "finalized" but not
destroyed. It is reused on the next NFC enable, but
the listen mode / field status flags were not cleared
then.

Bug: 8574917
Bug: 8489820
Change-Id: I8e11c60eda47762404a5d5020a0c2e6ff95ead2a
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
e9a5b789db1a0a437073d20820be6266920cc7e8 07-Apr-2013 Martijn Coenen <maco@google.com> Fix race condition between NFC disabling and field events.

This field disabled notification was not strictly necessary -
we enforce it now anyway when the p2p link is disabled.

Change-Id: I45dbf34daba88b58376d63e1f83778ec2373a6ca
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
57a44d07a3de327e8cdbbcd622118aa517313dbe 28-Mar-2013 Martijn Coenen <maco@google.com> Deal with pre-MR2 PN544 NXP stack LLCP bugs.

In MR2 we started connecting LLCP on link
activation instead of when the send was confirmed. Pre-MR2
NXP-stack devices have a bug that causes them to only
send the first SYMM after 750 ms (in case they are the
initiator). There is another bug that causes that same stack
to crash if two threads try to send a packet at the same
time.

Unfortunately, this combination of factors creates the
following race:

1) pre-MR2 PN544-initiator initiates p2p link with MR2 device
2) pre-MR2 PN544-initiator starts Touch to Beam animation
3) pre-MR2 PN544 doesn't have data to send, but delays SYMM for 750ms
4) MR2 device finally gets SYMM after 750ms, and sends CONNECT PDU
5) pre-MR2 PN544-initiator device responds to CONNECT PDU with CC on Thread 1
6) Within a ~50 ms window, the user on the pre-MR2 PN544-initiator touches
the screen to confirm the send. This causes Thread 2 to try to send
something, which fails.

As a result, the Beam transaction fails. Unfortunately
this is quite easy to reproduce, since the Beam animation takes
about 750ms, just the same amount of time it takes for the SYMM
to get sent.

To prevent such a race condition, we should make sure that we do
not create multi-threaded access on the remote device. The best way
to do that is to not connect the LLCP services automatically when
talking to a pre-MR2 PN544-initiator.

Long story short, when we don't receive a first packet of data
after 200 ms, we consider the remote device to be a buggy
implementation, and delay the connect until the time the user
decides to send something (in which case it's fine - it's unlikely
the user at the other side tries to send something at exactly the
same time).

Also fixed RF field notifications to be more robust; whenever
p2p is activated, we disable field events, and always treat the
field as being on.

Bug: 8508568
Change-Id: I41b427afb24c7f8d228adc91d258cca553539588
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
218b2ef897289d3e6fd7818c6883809149f62f08 27-Mar-2013 Martijn Coenen <maco@google.com> Update JNI to work with latest stack drop.

Also improved support for Kovio.

Change-Id: If3c7a7a638f9af30b21fd86e4d7609cfb2c35558
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
61beae816af13f75dabb484d287739723c716dee 13-Mar-2013 Martijn Coenen <maco@google.com> Wait for UICC_IDLE config event to complete.

Also remove some obsolete UICC_IDLE config code.

Bug: 7487151
Change-Id: I0d11744f966bb57d2fe9496ee3a1cb0402955134
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
97a71fe90493efd5947bb6f18c7b58a7e795c1dd 18-Jan-2013 Evan Chu <evanchu@broadcom.com> Support for Kovio tags via NfcBarcode API class

Change by Mark Gorodetzky.

Bug: 7222958
Change-Id: If0e2d973e92f0f6c148cc7a3c7fdf860221a3af2
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
803eb6ae8cd5b2ac3ffe010a3ced9018bf0b3d1d 22-Dec-2012 Elliott Hughes <enh@google.com> am f843d899: Merge "Fix NFC JNI local reference and pin table leaks."

* commit 'f843d8995fb94bdb1059061bad650c21ffd3588e':
Fix NFC JNI local reference and pin table leaks.
2534d9a546f24435d9dab8168f9ea5bf8ca1eb9b 18-Dec-2012 Elliott Hughes <enh@google.com> Fix NFC JNI local reference and pin table leaks.

Also turn compiler warnings up and fix the easy ones.

Bug: http://code.google.com/p/android/issues/detail?id=20441
Change-Id: I1043300f344b8296cfbb6bfad17388d5c3b314d1
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
be1939b4b6003ac7a65fcb95a3912f5e1ce8e75f 14-Dec-2012 The Android Open Source Project <initial-contribution@android.com> Snapshot b80adb2c263702442cf2f2d771168400e6ceb9f8

Change-Id: I391d8e1be1a61e68b01f0db371dbb4ed3e5b5933
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp
525c260303268a83da4c3413b953d13c9084e834 14-Dec-2012 The Android Open Source Project <initial-contribution@android.com> Snapshot 1a6bcf3cca90fedfbad33c1cdd6d05af5774fc01

Change-Id: I3ccb25bf7cde2c22f52260cae0e9957517e6bb5f
/packages/apps/Nfc/nci/jni/NativeNfcManager.cpp