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
diff --git a/src/com/android/nfc/NfcService.java b/src/com/android/nfc/NfcService.java
index 026cb7b..ae769a1 100644
--- a/src/com/android/nfc/NfcService.java
+++ b/src/com/android/nfc/NfcService.java
@@ -1,4 +1,7 @@
/*
+ * Copyright (c) 2018, 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 @@
}
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);