History log of /packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e594363266714de153e5b07f050a05acb2ad6ff9 19-Oct-2017 Antony Sargent <asargent@google.com> Confirmation dialog for opening NFC-scanned urls

This adds an confirmation dialog displayed before opening an url from a
scanned NFC tag. The feature is off by default for now and will be
selectively enabled via a build overlay, but we plan to turn this on
unconditionally in the future.

Bug: 30109939
Test: manual
Change-Id: I3884fd9b7a492504afa86e75c55fced0741de8e1
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
712518263e16875b4955869d8f19af6501706328 28-Apr-2017 Hiroki Yamamoto <hiroki.a.yamamoto@sony.com> Merge "Don't dispatch live case tag if live cases are disabled" am: dbe987b821 am: 5e19f4ea94
am: ced7e58b58

Change-Id: I5b636aaa978dafcb59b10c49687a180fb2c5c464
44a27fea4133fd8fa0afaad8db4480afe005140d 25-Apr-2017 Hiroki Yamamoto <hiroki.a.yamamoto@sony.com> Don't dispatch live case tag if live cases are disabled

Live case tag shouldn't be dispatched when enable_live_cases is disabled
even if Nfc polling is enabled at lock screen by any NfcUnlockHandler.

Test: Compile
Change-Id: I89f604c0955bf6ddb98e9a99309c5f7e4dad768f
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
d29c9a124a6134de5a4bf7415cbaaa0c2499c14e 04-Apr-2017 Hiroki Yamamoto <hiroki.yamamoto@sonymobile.com> Merge "Check capability of each profile before BT handover" am: efe8a7e9ca am: 203642836c
am: 6b54fc2c29

Change-Id: I8e8622521a588010fbcd8cad9d0c526d3df981d2
efe8a7e9ca32bd1686013dcf89f6cde02ddb48ef 04-Apr-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Check capability of each profile before BT handover"
49c517fb9c369e3921b18c918eb9646518cdec04 21-Dec-2016 Ruchi Kandoi <kandoiruchi@google.com> Merge "Adds functionality to detect live case NFC tags on lock screen." am: 19613493ea am: 3ab6999661 am: 51cf6be925
am: daf8bc1941

Change-Id: I54e31d5c6d581e67f05293a09da4186bc0eff5a3
0f4ebd13084ff9b9c9b3fcdc4ec8ab6509f9995f 17-Dec-2016 Ruchi Kandoi <kandoiruchi@google.com> Adds functionality to detect live case NFC tags on lock screen.

Live case usecase at lock screen can be disabled by setting
enable_live_cases in the live_cases.xml to false.
live_case_tag_types contains technology types which will be polled for
at the lock screen. And live_case_mime_types contains the list of mime
records that will be allowed to be passed to the application. Currently
they are set to the Live Case application mime type, and can be
overriden for each of the device.

Test: Manual; test with live case
Change-Id: I2534aeeaf550dee128c8963dfbada40574d5a4a5
Signed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
7490b54650e48bbe3e0da8e142f83c4cc63ddc49 18-Nov-2016 Hiroki Yamamoto <hiroki.yamamoto@sonymobile.com> Check capability of each profile before BT handover

If the BT device has a UUID or BluetoothClass information in NDEF,
then phone will connect to only designated profiles.

And if the profile of the device is disabled by user,
then skip to connect to the profile.

Test: manual (check BluetoothHandover with BT speaker)
Bug: 32995611

Change-Id: Ifffd209799662db39b6f5fc12da14579d3694353
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
3da6676ebb7a18a53621a5bc7eec21ca24becdf0 11-Nov-2016 Sudheer Shanka <sudheersai@google.com> Update usage of ActivityManagerNative.

Bug: 30977067
Test: N/A
Change-Id: Ia2abbf9b7e07dd3c502dec5662a7ebe19e7f8798
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
06486f58530d456a9a8d99bf14936539b3540dde 21-Jun-2016 Martijn Coenen <maco@google.com> Allow peripheral/WiFi handover in provision mode.

Bug: 29193031
Change-Id: I8bf0eee064c6a8eccfb52b091b0475e86ccdb8d9
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
38609ffd78908af4d6bd5156e6b297b357c0dda6 04-Apr-2016 Nicolas Prevot <nprevot@google.com> Nfc shouldn't initiate bluetooth connection if disallowed.

In NfcDispatcher, if DISALLOW_CONFIG_BLUETOOTH is set: dont
initiate bluetooth connection.

BUG:27939020
Change-Id: I7f069c92e731529ce3579b95dfd70f2960cf1bc3
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
5ef11b7525885a42e681c31ebe2adb8b9317d0d2 29-Mar-2016 Martijn Coenen <maco@google.com> Allow foreground override in provision mode.

Bug: 27895307
Change-Id: I098d0746785348c9aee35d23fe456ce1c3589e46
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
93aa66518ba76514149a749937529095ef8b5761 08-Feb-2016 Martijn Coenen <maco@google.com> Don't allow receiving files in provision mode.

Bug: 24152924
Change-Id: I66e3a1d4c2d8606c1cb986c0c67edaf80303e683
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
ca75f7282125255caee81f4bcd8f765d709acc38 29-Dec-2015 Jakub Pawlowski <jpawlowski@google.com> Add optional OOB data processing for LE devices

This patch adds processing of optional OOB data that can be used
to improve pairing security.

Change-Id: I40b61b150c07c7532d2238a803e854007aea04a8
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
492469777a9bf75c5f9232256746acdfca3d4cde 23-Mar-2015 Bartek Teodorczyk <bartek.teodorczyk@microemu.com> Implement URI decode scheme for NfcBarcode tag technology

NfcBarcode tag technology has been supported since API 17 for
the Barcode ID function. This patch implements the publicly available
URI decoding scheme, linked in Android API docs since 2013 but not yet
implemented in the code. http://www., https://www., http://,
and https:// prefixes are supported, and an optional terminator 0xfe
is supported for variable length URIs.

Change-Id: Iadf0c0d1b809d78dc2cb7159ef6382868ccd0ed6
Signed-off-by: Bartek Teodorczyk <bartek.teodorczyk@microemu.com>
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
b82d80d891077ccd74729e4143925a66eb89eef2 24-Oct-2014 Andres Morales <anmorales@google.com> Refactor Beam to work with managed profiles

Simplify logic and break out different components
into their own services.

Allow BeamShareData to pass a UserHandle in order
to start the transfer in the correct user.

Bug: 17966846
Change-Id: I012a9ebe87deca6fceb857da8c8d4e2ecbeca6fe
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
c54a22dc8e56e8bb9ba80b03292ddb48a917152e 07-Oct-2014 Andres Morales <anmorales@google.com> Remove dead code from NfcDispatcher

Bug:17883273
Change-Id: I260003cdadeb61fc1a7058303d0e3a1ac0cc9364
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
54a729ffe3ed13abc92cf143a751aeced7c6d8df 18-Sep-2014 Andres Morales <anmorales@google.com> Allow Wi-Fi tags in SetupWizard

Bug:17510608
Change-Id: I521b7734695cea96bbf2670d348ada610eda8a33
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
cf76dfbf36ab621b9372527ddc8ca605e00d7784 05-Sep-2014 Andres Morales <anmorales@google.com> Allow BLE keyboard to be paired via NFC in SW

Bug:17397066
Change-Id: Id8a51e1c8285b263b74dce72c11b79b9f196a957
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
731fd8a52cec0dbe8d6ec6a4c7aa36ff52812112 19-Aug-2014 Andres Morales <anmorales@google.com> Remove old NFC unlock API

Bug: 16401635
Change-Id: I7ada54d46993aa381a89652e6d3eee77a42744c2
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
32cdfbf250f2611bb7624c13cfd7d111a847676e 12-Aug-2014 Andres Morales <anmorales@google.com> Don't play success sound after NFC unlock

Bug: 16896337
Change-Id: I846b17a0a89cd27e56163240655ac3d79c0cb5f7
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
34cfff42771acf6d889dd0e5fedc2c2313d9784a 04-Aug-2014 Andres Morales <anmorales@google.com> Only allow NDEF dispatch at lockscreen

Also add logging of lockscreen poll mask for debugging

Bug: 16547456
Change-Id: Ia6ba345d7d0bcd4ea108e32bcdfa86e87a574721
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
16ee2fe0e0f6d2f811bd06c37cbd53c8b395e6d6 23-Jul-2014 Andres Morales <anmorales@google.com> NFC Unlock api changes

Add NfcUnlockHandler interface

Bug: 16401635
Change-Id: I6c31c67771c1b74d7100df56fa4d253f171a17a2
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
6ac9196b397a5f3554fe1c416bc005bcef9ac520 24-Jul-2014 Andres Morales <anmorales@google.com> Don't make sad sound when unlocking device

Change-Id: Id9c6ac26abe63b50d5a4ef5ee0af0c71077aee18
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
fbd59bd47482eb0784077ee3faf498d531497304 13-Feb-2014 Andres Morales <anmorales@google.com> Wifi-Direct connection handover for Beam.

Enables usage of a Wi-Fi direct channel for large
file transfer via Android Beam. Leaves BT as
default until b/15721122 is resolved.

Change-Id: I9b5e00b79b893d4d0208033241e4b1604bdc4d11
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
28a49f0de26c4cc6f0b8c30dc67bebcb1a3110b6 20-May-2014 Andres Morales <anmorales@google.com> Adding NFC Trustlet

Exposing calls to register a lockscreen dispatch service.

Change-Id: I7feaeef3b6b9abd090d8c5e905c32ec7bff8063a
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
766d24ccb639ed3bf23f7fe918290df6d372e611 20-May-2014 Andres Morales <anmorales@google.com> Reverting NFC Unlock from Nfc application.

Will be re-added through TrustAgent.

Change-Id: Ic5c6c19a5c9227476af5b85eab64b1d7c7ad9cc4
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
1ff4d6bceafb7c1c380c04d82e1c95843ae4dfb0 31-Jan-2014 Andres Morales <anmorales@google.com> Handle NFC Wifi configuration tags

Adds a hook in NfcDispatcher to attempt to configure
a network if the appropriate mime type is found on a tag.

Change-Id: Id53bc3124f54186115f4ed9f85eae4d289db1434
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
4309f9c7c0097bdd95cf791eef78700b106dec21 15-Nov-2013 Andres Morales <anmorales@google.com> Add NFC unlock to NFC Service

Change-Id: Ie065742a6f2ffe8ddcfe141a56bea16b40486124

Fix imports

Change-Id: I389d8ecba447d1eb0bd15a74709dc6c7eae99a2c
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
65468cb547f654afbdb00182f3a9f3f509b0d08c 01-Jul-2013 Elliott Hughes <enh@google.com> am 844501b2: Merge "Switch NFC over to the public StandardCharsets."

* commit '844501b273a9848da220910a5db5f535e42c167f':
Switch NFC over to the public StandardCharsets.
893bc90a71883f8d2bfc82818abbf21c9745efda 29-Jun-2013 Elliott Hughes <enh@google.com> Switch NFC over to the public StandardCharsets.

Change-Id: I9704a7a8e6b8e6e4c52f60e2704d69993ee8aa41
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
7d8987f233985a5ff29226890e11012275d325f5 07-Mar-2013 Martijn Coenen <maco@google.com> Allow incoming provisioning intents while in setup wizard.

When the device is in setup wizard, the keyguard state
registers as locked, hence in this state NFC was not
enabled.

This change adds some resource settings to enable
NFC in setup wizard, and allow a set of mime-types
to be received while in that mode.

Bug: 8275527
Change-Id: Iab6cd8438fa77764b0cc9c96cbf1a36e95d79524
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
525c260303268a83da4c3413b953d13c9084e834 14-Dec-2012 The Android Open Source Project <initial-contribution@android.com> Snapshot 1a6bcf3cca90fedfbad33c1cdd6d05af5774fc01

Change-Id: I3ccb25bf7cde2c22f52260cae0e9957517e6bb5f
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
43f2fa7ad4c72ef4849f2d2b78a963c1925c63a3 04-Apr-2012 Nick Pelly <npelly@google.com> First cut at Bluetooth Beam

Change-Id: I616fd57b7822d703280ec960b84cf8c5ced6719d
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
020b17588c85e9a55539ccbb20081754272c724b 29-Mar-2012 Martijn Coenen <maco@google.com> Merge "Fix NPE when there's NDEF data we can't dispatch."
bfaee054834ade31c52002f00553c63701f1c0b0 08-Mar-2012 Martijn Coenen <maco@google.com> Fix NPE when there's NDEF data we can't dispatch.

Bug: 6135087
Change-Id: Ib2161c6125b6592db8ca2d89a1959e20f54455eb
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
a2908a164eec02c34efc39db2e3ee0e38ebbfdb1 01-Mar-2012 Nick Pelly <npelly@google.com> Implement NFC-BT handover for Bluetooth headsets, such as Nokia BH-505.

Touch once to turn BT on, pair, connect HFP and A2DP, and start the music.
Touch again to disconnect HFP and A2DP.

Change-Id: Icfe120606aae5e80b04cc4aba3b03331a1213676
TODO: enable Bluetooth without causing auto-connection to *other* devices
TOOD: disable Bluetooth when disconnecting if it was enabled for this device
TODO: il8n / UI review
TODO: check security issues around auto-on BT and auto-pair
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
ea78e5beebff19ece23870b4ff5e5fd69d61aaa1 24-Jan-2012 Nick Pelly <npelly@google.com> Don't need to pass the NdefMessage in dispatch().

Change-Id: Ib1463aa51b1ce48cf7217866cb7c11ab8caa4e06
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
391cfe2479eca2080c14d1832599ad51cafae918 05-Jan-2012 Nick Pelly <npelly@google.com> Rewrite NDEF dispatch path. It was getting pretty messy.

The dispatch sequence is identical, but the hierarchy of functions has been
collapsed. The flow now is:

dipsatchTag() ->
tryOverrides() ->
*** NDEF override ***
*** TECH override ***
*** TAG override ***
tryNdef() ->
*** AAR to NDEF ***
*** AAR to application launch ***
*** AAR to market launch ***
*** regular NDEF ***
tryTech() ->
*** TECH ***
*** TAG ***

o Fix bug where cancelling a pending intent would disable further foreground dispatch.
o Fix bug where a foreground process dying would not cancel override
o Assume one NdefMessage per tag in implementation methods

Change-Id: Iaf7a0a83076e4f540a5e55c9e628490570116b01
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
f955ec07aefda9d15b9a64afabedd8d927e0aff7 13-Oct-2011 Martijn Coenen <maco@google.com> Start all NFC activities from a dedicated root task.

Instead of launching NFC into existing tasks, always launch
into a clean task that is owned and controlled by the NFC process.

Bug: 5122560
Change-Id: Iea6022bb754bcc46e7ab3adb1b9ccc7fe20797e3
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
8e85fe445d229fba5d101b4f95fe0dfa34a8601e 28-Sep-2011 mike wakerly <mikey@google.com> NfcService: call enableAppSwitches for additional events.

This addresses the responsiveness issue identified in b/5140941

Change-Id: I8fad061be2e3f1006e4e2910db84c0a3360e2a0a
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
0b3b8ab69835cb66c96691dae3ba9b75705980a5 24-Aug-2011 Nick Pelly <npelly@google.com> NFC service updates for moving NDEF push to a fragment.

enable()/disable() -> set()
ZeroClick -> NdefPush

Change-Id: I21806665b8fd29e4580bd2e3200858d834605f6f
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
77d0b56bfa6a4e4e1449c476a1141a7486f34ad9 11-Aug-2011 Nick Pelly <npelly@google.com> Decouple P2P link management from P2P UX management.

The goal is to make it easier to track the state of the P2P transfer, and
to make it easier to fine-tune UX (sound, vibration, animation) for P2P
transfer.

NdefP2pManager -> P2pLinkManager
It now only handles LLCP and NDEF logic (and no UX). It has a state machine to
track the state of the LLCP link, send and receive. It does debouncing on the
LLCP link. Events are surfaced to P2pEventManager through the P2pEventListener
interface.

P2pEventManager
Handles all UX (sound, vibration, animation) and send confirmation.
The current implementation uses Rotation to confirm send, and
P2pAnimationActivity to animate the send.

Change-Id: Ie498219857afe69403e90f09c77f4d6d1b24ffeb
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
222b8c18c4a9cf800f2dd615ef116f796ef7942c 03-Aug-2011 Martijn Coenen <maco@google.com> Launch application if already installed.

If app doesn't have a foreground NDEF message, both a Market URL
and an Android App NdefRecord will now be sent instead.
On the receiving side, if the app is already
installed, try to launch the apps main activity. If not possible,
go to market instead.

Change-Id: Iac1d27151d2cae8c561090c92177bca7bb5daa92
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
f2500d4518ac7c8b41a0f2ab5d0926196fbae6e1 03-Aug-2011 Nick Pelly <npelly@google.com> Allow NDEF swap.

Try normal NDEF dispatch even if the foreground activity pushed NDEF.

Change-Id: I6fd17ae14ff3e15b43ffdc9b0304c374ca981c51
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
f39dd4cf73e846cdc9523f70df5c12984930751f 01-Aug-2011 Nick Pelly <npelly@google.com> Fix bug: use foreground dispatch when ndef push is enabled via callback.

The previous code only checked for a static message, not the callback.

Change-Id: Ib0f2db42423ca8b11ece7f4b20adb7969911c8ba
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
ea9898eb8041802bca345b59de9e0e9302e8232b 13-Jul-2011 Ben Dodson <bjdodson@google.com> Launch ACTION_MAIN intents that don't support CATEGORY_DEFAULT.

Change-Id: Ie191aaff29d11fe9f65038f8ed5a5c13b3c54ed1
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
b442e5fc49f235c228d3989c73e333d58caa2ade 06-Jul-2011 Ben Dodson <bjdodson@google.com> Allow dispatch to a specific package

Change-Id: I511dd319dd1568ef7b59621b30a2ff144978e69c
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
d704c298a5a1e783c71db6f39b2eef0a909b0e88 17-Jun-2011 Jeff Hamilton <jham@android.com> Play sounds for start, end, and error.

This needs some cleanup to handle the
error states better, but works ok for now.

Change-Id: I803c339de593acfe5bb7f1007a965f203e0e1a30
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
2ef360deaff9f17aa72d5749ceee283cc80897af 15-Jun-2011 Ben Dodson <bjdodson@google.com> Merge snep p2p to master

Change-Id: Ic629c9a2ad348c1f352f39d7fc2be04edcf627e7
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java
76a412f47ff57ce05d84fd51adbf8e72fd37a448 08-Jun-2011 Nick Pelly <npelly@google.com> Slay the NfcService beast, part one.

Split out dispatch code into NfcDispatcher.java. It can be pulled out
cleanly.

Move URI field construction into framework.

Change-Id: Ia70c06c5f469b370c532905e1c02f71149cb9ecc
/packages/apps/Nfc/src/com/android/nfc/NfcDispatcher.java