summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPuneet Mishra <puneetm@codeaurora.org>2015-11-24 14:45:45 +0000
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-05-23 07:56:45 -0700
commit6e8f8250108213bc18860e77056387959950e2ad (patch)
tree6fc484362ee9c8e6ef37ee07a7a0307a4e56f2e6
parent0db06f2d12fc51bc27d813c4c31a47bac556aa45 (diff)
downloadandroid_packages_apps_Nfc-6e8f8250108213bc18860e77056387959950e2ad.tar.gz
android_packages_apps_Nfc-6e8f8250108213bc18860e77056387959950e2ad.tar.bz2
android_packages_apps_Nfc-6e8f8250108213bc18860e77056387959950e2ad.zip
NFC: Adding new vendor specific interface to NFC Service
A new interface was added to INfcAdapter for vendor-specific extensions and additional features. It needs to be implemented in all implementations of the interface. Change-Id: I9aa8b94cfbb04133d67c2272c82409cf7db45fec
-rwxr-xr-xsrc/com/android/nfc/NfcService.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/nfc/NfcService.java b/src/com/android/nfc/NfcService.java
index 6aa0dfc4..7ab83e5b 100755
--- a/src/com/android/nfc/NfcService.java
+++ b/src/com/android/nfc/NfcService.java
@@ -1,4 +1,7 @@
/*
+ * Copyright (c) 2015, The Linux Foundation. All rights reserved.
+ * Not a Contribution.
+ *
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -702,6 +705,13 @@ public class NfcService implements DeviceHostListener {
}
final class NfcAdapterService extends INfcAdapter.Stub {
+ /**
+ * An interface for vendor specific extensions
+ */
+ public IBinder getNfcAdapterVendorInterface(String vendor) {
+ return null;
+ }
+
@Override
public boolean enable() throws RemoteException {
NfcPermissions.enforceAdminPermissions(mContext);