| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
is fired up. This patch fixes the scenario of Gwallet and HCE living happily together. it is a fix, really, for the intended function of when an HCE application is in the forground, it has control, all other times Gwallet gets control of emulation from SE.
Change-Id: I8c37e2799c3a2232f7cc1b18d1b40c6986e98e44
|
|
|
|
| |
Change-Id: I9d6ed9b15da69a346936cb4288c1cf5c7438ae87
|
|
|
|
|
|
|
| |
This fix is handling a new semaphore dedicated to
the SE Notification to avoid the semaphore desynchronisation.
Change-Id: I2e735247897a88eaddafcee0edbf3e5a89e18155
|
|
|
|
|
|
|
|
|
| |
When SE is in wired mode shared prefs sets the se_wired to true,
when SE is no more in wired mode shared prefs sets se_wired to
false. Default value for se_wired is false. se_wired shared pref
is set during the NFC initialization.
Change-Id: I9a3565c23035802895c8e99c671483c808312e0e
|
|
|
|
|
|
|
| |
Added delay before NFC system recovery if SE is in wired mode to
complete possible pending transaction.
Change-Id: I74f04e6d66342b94184083141c5d62341bdf209b
|
|
|
|
| |
Change-Id: I7572274dd74d8f9c3f0c80bdccf3d30707c91c3f
|
|
|
|
| |
Change-Id: I384990772c2c457207ba3116ace12e7d7b2c71b4
|
|
|
|
|
|
|
| |
Regression from an earlier patch that refactored the download code.
Bug: 6205363
Change-Id: I5ec23f4ee7ead5802cc6856a05cd0167dcc8f611
|
|
|
|
|
|
| |
Removed code-duplication, fixed some warnings.
Change-Id: I5b7a2986e3836d6689b677bf80cb93421bfa821e
|
|\
| |
| |
| |
| | |
* commit '962460d13b4bc4563ae381848dd3fc373c9d1a3c':
Remove a warning of mismatch arguments
|
| |
| |
| |
| |
| |
| |
| |
| | |
The fix removes the warning:
packages/apps/Nfc/jni/com_android_nfc_NativeNfcManager.cpp:286: warning: too few arguments for format
Change-Id: I81c61055f675890ea2e8be5f417f83df48621cff
|
| |
| |
| |
| | |
Change-Id: I2199dac0a342e553e66bdf95fdfcfd00ef6816c3
|
| |
| |
| |
| |
| |
| |
| | |
We only indicated (the mandatory) link management service, but
should indicate SDP and SNEP as well.
Change-Id: I8a232fc6f74076d858e082145ebf18313de354d3
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Allow servicename for connectionless sockets;
- Pass in servicename in Bind() for both types;
- EchoServer: allow MIU=128 again since ATR_RES
fix was merged in libnfc-nxp
- EchoServer: fix reading from incorrect offset.
Change-Id: Ie77fe5b46e7a17435e6261c8b7400dcca4d3784a
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Can be used to test the Android LLCP stack with nfcpy. Disabled
by default.
Also fixed unnecessary JNI release call causing warnings in the
logs.
Change-Id: Iaed159e23dadc1601be2df2aadbe1d9c54c50615
|
| |
| |
| |
| |
| |
| | |
Useful for testing the connectionless part of the LLCP stack.
Change-Id: I76a7962526ec1e6ff463c938431229f89c545824
|
| |
| |
| |
| |
| |
| |
| | |
See https://android-git.corp.google.com/g/#/c/157220
Bug: 5449033
Change-Id: If3f714c482c26a9b90cae43dbab6e4ee7f46dcb9
|
| |
| |
| |
| |
| |
| |
| | |
See https://android-git.corp.google.com/g/157065
Bug: 5449033
Change-Id: Ibefef5fe8213c339fa584bffd9cf72658277f552
|
| |
| |
| |
| |
| |
| |
| | |
See https://android-git.corp.google.com/g/156801
Bug: 5449033
Change-Id: I22fac4374807db8284f90fc8246a25dbeaec5e2f
|
| |
| |
| |
| |
| |
| |
| | |
See https://android-git.corp.google.com/g/156016
Bug: 5449033
Change-Id: Ie4ce01d556684684b2e3ccb5c2fd65307ec11960
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Previous code always selected the first target, which adds an implicent dependency
on libnfc to always put p2p first in the list. Make our preference for p2p explicit by
searching the list for p2p targets. If no p2p target found, connect the first target
as we did before.
Change-Id: I2be95e3d0a7f7d96aa4ecf5d229a74b98e9e3e61
|
|/ /
| |
| |
| |
| |
| |
| | |
This has annoyed me forever (adb filters don't seem to work with spaces;
greppability suffers). Would it break anything?
Change-Id: I9a5d9e0dc237582db25f73ea72a56a5ba447b199
|
| |
| |
| |
| | |
Change-Id: I03eac9d3a1c9fea5e90487415391114b454fd5ff
|
|\ \
| |/
| |
| |
| | |
* commit '985dcef867fcdb1afaca0fc478ec46dacf22b654':
Fix Beam&Tag failures after opening NFC-EE.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
An earlier MR1 checkin stopped re-registering the remote
device notification callback with libnfc on start_discovery.
This causes a regression since opening the NFC-EE will change
the callback. So Tag&Beam notifications end up going to
the secure element callback - causing crashes or missed tags.
Bug: 5725521
Change-Id: Idddba26b7babae095c124fda44e5b1da37549acd
|
|\ \
| |/
| |
| |
| |
| |
| | |
technologies." into ics-mr1
* commit '3a6751007b70265fc69019f59f308246cad76157':
Fix NdefFormatable not showing up for NfcA technologies.
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Regression from a patch applied long ago: the NfcA technology
used to have its higher-level type (Mifare / 4A) associated with it,
and the code that determined formatable used this. The patch
associated NfcA technology only with the 3A libnfc type, causing the
format check to return false for all of these types.
Change-Id: Idc02873de447b6d8121bff02af795a6a7f5058cf
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | | |
init." into ics-mr1
* commit '078e8368a229482e3e835bb51b53a2ad649187d0':
Set up DISCOVERY and SE notification callbacks at NFC init.
|
| |/
| |
| |
| |
| |
| |
| |
| | |
Previously we only set these up on startDiscovery, so we could
not receive SE events at the lock screen on first boot.
Bug: 5375005
Change-Id: I0ed75cd8ea52ea956708b4fa807c1fd91e4f78b6
|
|/
|
|
|
|
|
|
|
|
| |
Usage:
setprop debug.nfc.eeprom.9E74 B0
will write value 0xB0 to EEPROM address 0x9E74. Only effective
after turning NFC off and back on again.
Change-Id: I3572e3418122fcd7cd2d110498cd513e232202bd
|
|
|
|
|
|
|
| |
Also removed port configuration: libnfc retrieves it directly
from the NFC HAL now.
Change-Id: Ic57d20c3a8079aaaae3c129da189e8abf4e03dab
|
|
|
|
|
|
|
|
|
| |
Enable hybrid polling with a ratio of 1 regular poll for every
4 low-power polls.
Also, turn off the new EMD setting.
Change-Id: I840d0538bf374fa1980bcfc4926d3d2e43a3ce4f
|
|
|
|
| |
Change-Id: I7eb676a75786584f0ed6757d8179cd457f3ef4ee
|
|
|
|
|
|
|
| |
Set to 255 ms, increase number of retries to 64.
Add dump() interface to native library
Change-Id: Ib3a32f70453f7f8b79ff89394410f56b4b9dd7a2
|
|
|
|
|
| |
Bug: 5430205
Change-Id: I2b6581cb54f49693744bd8739856877dec19f933
|
|
|
|
|
|
|
|
|
| |
Patch to perform a download at NfcService boot time
This patch permit, when NFC is off, to perform a download if the PN544
is not up to date
Change-Id: Iaa01e218ccd1e4cb18ef77d58c18348823135b1e
|
|\ |
|
| |
| |
| |
| |
| |
| | |
This is required by [DIGITAL].
Change-Id: I47458e20141654b7083513ccbb3fe6ceea085212
|
| |
| |
| |
| |
| |
| |
| |
| | |
When the API SE SetMode is called, using the NXP_EVT_SE_SWITCH_MODE
event to enable/disable the card emulation. At NFC Init, SE is always
set by default in Off mode.
Change-Id: Ic692631a33169a6ed208a3d6d229497534edab3b
|
| |
| |
| |
| |
| |
| |
| |
| | |
Should throw an IOException() whenever recv() failed. Also
changed recv error return value to be -1, to be more in line with
common sockets.
Change-Id: If65fe9e22c76f0a4558a9a6dedc0662bac038ee8
|
| |
| |
| |
| | |
This reverts commit 9dcaaa08fe2ae563bfb792a091577b4b70be15b8.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In that patch, when the API SetMode is called, we are now using the
NXP_EVT_SE_SWITCH_MODE event to enable/disable the card emulation mode
Change-Id: I7ddadc3b20ade7d2a951eb111fa4d1008fd15126
Conflicts:
jni/com_android_nfc_NativeNfcManager.cpp
|
| |
| |
| |
| |
| |
| |
| |
| | |
In the error scenario, cb_data was freed and subsequently
still accessed.
Bug: 5067103
Change-Id: I3ca2910ef48d40f8c8beed612211457cb6140b7d
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
An earlier change to add multiple protocol support for NfcA and IsoDep
causes 3 technologies (NfcA, MifareClassic, IsoDep) to be enumerated on
the Secure Element instead of 2 (MifareClassic, IsoDep). This caused a
regression because
com_android_nfc_jni_open_secure_element_notification_callback() always
connected to the 2nd handle, without checking protocols.
Fix is to walk the protocol list and look for IsoDep instead of hard-coding
the index.
For some reason IsoDep seems to be phNfc_eISO14443_A_PICC and not
phNfc_eISO14443_4A_PICC in this code.
Change-Id: If7471b494099a09cf6d0bf5e255da556f11570b1
|
|\ |
|
| |\
| | |
| | |
| | |
| | |
| | | |
While I was there, rework of NativeNfcTag.findAndReadNdef()
Change-Id: I971403d880f281c8f64d2f9ed60756f6e692e9ae
|
| | |
| | |
| | |
| | |
| | |
| | | |
Plumb status codes up through the stack.
Change-Id: Id30e69fff3bb56082ab29d42f166cb12c3061857
|
|\ \ \
| |/ /
|/| | |
|