| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This reverts commit 988c3fff5470a1de3a880bd07fa438cc47e283c8.
Change-Id: I787ea2b8a2c6977cefb1ad72952b8a1ed7a52660
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| | |
* commit '46c6f9cf5ef0b881006da34c73b4622cff148abd':
Expose peer LLCP version to apps.
|
| |
| |
| |
| | |
Change-Id: Id5ea699a8508b5bdf44c0bae2d38893e2c42241a
|
|/
|
|
|
|
| |
Code is planned to be removed post-M.
Change-Id: Icca447a788b2c5f4b4b8415c3d39a0a728b58015
|
|\
| |
| |
| |
| | |
* commit '9d734bdf2c98e4408d1bf4645a805c24da9c604d':
Add missing includes.
|
| |
| |
| |
| | |
Change-Id: I1dc1227e9800a46fdf44bd8f18a76c20adad5e5e
|
| |
| |
| |
| |
| |
| |
| | |
https://code.google.com/p/android/issues/detail?id=80953&q=nfc&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
Bug:18611560
Change-Id: I0f12b5b569ae32d604a106feb3334f4092c43b34
|
|/
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Bug: 16958324
Change-Id: I0cc7b4b9d400727cc6e59ad7d5440dfb2842edbe
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
We keep our devices in snooze by default now.
Change-Id: Ia84635031d60221da054448b8c81c5c48f1f821d
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
Since we allowed the tag to continue dispatch after unlock
as well as reenable discovery when the phone is unlocked
the tag used for unlock gets processed twice.
This patch adds logic to ensure the tag gets processed only
once.
Change-Id: Ie42bffb5ec302b68013e6bf1c1104db01e96e79f
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| | |
* commit '5f9671d0ff91bfd66dd84b2dcf57b21da4eecba9':
Fix warnings in the JNI code
|
| |
| |
| |
| |
| |
| | |
Change-Id: I5bd8198e4f61fbddf0ff7e42d8ce55f54d8aed12
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
|
|\|
| |
| |
| |
| |
| |
| | |
dependency"
* commit '4143f576a81fa0cba29718908dcb136a4642ef39':
Fix thread deadlock issue - Removed the dependency
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Root Cause: The function returned without release the thread lock while
the input parameter is an invalid value.
Change-Id: I96be6e1a36d7a5cf085a6ea88268ce7e7acc0c51
Signed-off-by: jie fang <jie.fang@tieto.com>
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | | |
and uint8_t"
* commit '0c6df1db51d02fcaaa2dbf81dafd3455d87876cb':
nfc: use uintptr_t to cast between pointer and uint8_t
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fixes make checkbuild when packages is removed from 64-bit
blacklist.
Change-Id: Ic2355722f1bb5b856942761288609c68a7c7012b
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Port to support 64-bit pointers using jlong instead of jint
in JNI modules, and long rather than int in the corresponding
Java modules.
Change-Id: I48bd244a0f7f494b8d0d325a0694fcb6c0b5bd55
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit 80e61a46c0541471ef01a9d3c91570139336bcff.
Change-Id: I0b4fc471a3dae22c4d732b1c002f51a412c2c121
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | | |
Change-Id: I3ff21d3f1ad0f8e9e643c84fecd4c45a1b373133
|
|/ /
| |
| |
| | |
Change-Id: I3a604fb4260a1e99e6aa40189e999996d5947ed4
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| | |
To improve reader performance.
Bug: 10360259
Change-Id: I3a76563b876aafa9c8cd555127a32f8c8e5bfd14
|
| |
| |
| |
| |
| | |
Bug: 10360259
Change-Id: I1339840ed900b73d3f9ae43e1a01b59c7e679f9e
|
| |
| |
| |
| |
| | |
Bug: 10360259
Change-Id: I41c47ce84aa18bce01f6fb1ebe280fac0ed79070
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the old NXP JNI:
- We can be in the process of discovering a tag/p2p target
when we try to configure discovery. In case ConfigureDiscovery
returns BUSY, don't immediately call abort(), but retry a few
times.
- Completely disable Tag/P2P discovery *before* opening a pipe
to the SMX. This avoids nasty races with opening the SMX
while a P2P/Tag device enters the field.
Bug: 8552749
Change-Id: I433a40c918373c661abda3bc40dd36db7b233245
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the host opens the pipe to the SE for communication,
the notification callback is temporarily changed to a
SE-specific callback. In itself this is fine, because
there can be no other devices discovered while the eSE
is connected.
However, when disconnecting the connection from the host,
the PN544 already resumes discovery. This is before we
call enableDiscover(), and before we've restored the
correct target notification callback. This race-condition
can cause a crash.
Fix it by restoring the proper notification when
(de)selecting the secure element.
Bug: 8599167
Change-Id: I26816eb8851637de18058e974b98607e4379f55d
|
|
|
|
|
| |
Bug: 8580410
Change-Id: Ia159e97f5962b05b3cd176121ea9703310e7522b
|
|
|
|
|
|
|
|
|
|
|
| |
There are a number of different conditions under
which access to the SE is not possible. Since some
of these require user intervention to resolve (ie
external field present), return a more accurate
reason for NfcEe.open failure.
Bug: 4304698
Change-Id: Ie947c29be12d554a02d9246264a9f0e026a37af8
|
|
|
|
| |
Change-Id: I1ea17f15a0e627296fb46b20765c59d0998eaf2a
|
|
|
|
|
|
|
| |
Also turn compiler warnings up and fix the easy ones.
Bug: http://code.google.com/p/android/issues/detail?id=20441
Change-Id: I1043300f344b8296cfbb6bfad17388d5c3b314d1
|
|
|
|
| |
Change-Id: I3ccb25bf7cde2c22f52260cae0e9957517e6bb5f
|
|
|
|
|
|
|
| |
The DeviceHost classed moved to a new package,
updated the JNI references accordingly.
Change-Id: I11d30b241f80e2efba4570a921346ea3689b4ec5
|
|
|
|
|
|
|
|
|
|
| |
Preparation for the new NCI stack. The idea is to
build either the NXP or the NCI stack, triggered
by a makefile switch. To that end, move the
DeviceHost and JNI implementations in their own
directory, so we can build them only if needed.
Change-Id: I8579ec30ceb1908e4cd180cfbd10224aa4bddb8d
|
|
|
|
| |
This reverts commit 26f6049196acaa9768ba6bdef343216ea878a4c1.
|
|
Preparation for the new NCI stack. The idea is to
build either the NXP or the NCI stack, triggered
by a makefile switch. To that end, move the
DeviceHost and JNI implementations in their own
directory, so we can build them only if needed.
Change-Id: Ibb6aeb11f0bb887e153fd457860b1ad0e39e7933
|