summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPuneet Mishra <puneetm@codeaurora.org>2015-11-24 14:45:45 +0000
committerLinux Build Service Account <lnxbuild@localhost>2016-08-24 08:08:14 -0600
commitf65e296c4e37a0796cb062b34086a681b35b857c (patch)
treeef5d83adf1f1517cac12f652bd633935a7377472
parent2bccb8f3681351441b7714e1373619bc88923d03 (diff)
downloadandroid_packages_apps_Nfc-f65e296c4e37a0796cb062b34086a681b35b857c.tar.gz
android_packages_apps_Nfc-f65e296c4e37a0796cb062b34086a681b35b857c.tar.bz2
android_packages_apps_Nfc-f65e296c4e37a0796cb062b34086a681b35b857c.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 8411fb61..90a9bb2f 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");
@@ -688,6 +691,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);