summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPuneet Mishra <puneetm@codeaurora.org>2015-11-24 14:45:45 +0000
committerSemavi Ulusoy <doc.divxm@gmail.com>2022-03-11 17:19:55 +0300
commit59919c14410058f961ca29df1ba499d8a24d3f80 (patch)
tree71cec031afafb334dd110a06f2ef502d1b825d2b
parenta0c57c701648fe4a38af05245592b5787e668978 (diff)
NFC: Adding new vendor specific interface to NFC Services12.1
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 Signed-off-by: DennySPB <dennyspb@gmail.com> Signed-off-by: DennySPb <dennyspb@gmail.com>
-rw-r--r--src/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 026cb7b1..c7ac5815 100644
--- 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");
@@ -1093,6 +1096,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);