From ba15143ff54f5078f9b2cef5804525d387c52c72 Mon Sep 17 00:00:00 2001 From: Martijn Coenen Date: Mon, 2 Apr 2012 15:57:13 -0700 Subject: Support for querying extended length APDU support. Bug: 5813943 Change-Id: I1274e3c47203e30cedefb57049738f97122de4b1 --- src/com/android/nfc/DeviceHost.java | 2 ++ src/com/android/nfc/NfcService.java | 5 +++++ src/com/android/nfc/nxp/NativeNfcManager.java | 5 +++++ 3 files changed, 12 insertions(+) (limited to 'src/com') diff --git a/src/com/android/nfc/DeviceHost.java b/src/com/android/nfc/DeviceHost.java index 82c711c..047e3d5 100644 --- a/src/com/android/nfc/DeviceHost.java +++ b/src/com/android/nfc/DeviceHost.java @@ -214,5 +214,7 @@ public interface DeviceHost { void setP2pTargetModes(int modes); + boolean getExtendedLengthApdusSupported(); + String dump(); } diff --git a/src/com/android/nfc/NfcService.java b/src/com/android/nfc/NfcService.java index c3f27a9..95ed61f 100755 --- a/src/com/android/nfc/NfcService.java +++ b/src/com/android/nfc/NfcService.java @@ -1160,6 +1160,11 @@ public class NfcService extends Application implements DeviceHostListener { public int getMaxTransceiveLength(int tech) throws RemoteException { return mDeviceHost.getMaxTransceiveLength(tech); } + + @Override + public boolean getExtendedLengthApdusSupported() throws RemoteException { + return mDeviceHost.getExtendedLengthApdusSupported(); + } } void _nfcEeClose(int callingPid, IBinder binder) throws IOException { diff --git a/src/com/android/nfc/nxp/NativeNfcManager.java b/src/com/android/nfc/nxp/NativeNfcManager.java index 25a6b87..9a62cc0 100755 --- a/src/com/android/nfc/nxp/NativeNfcManager.java +++ b/src/com/android/nfc/nxp/NativeNfcManager.java @@ -279,6 +279,11 @@ public class NativeNfcManager implements DeviceHost { doSetP2pTargetModes(modes); } + public boolean getExtendedLengthApdusSupported() { + // Not supported on the PN544 + return false; + } + private native String doDump(); @Override public String dump() { -- cgit v1.1