summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2012-04-02 15:57:13 -0700
committerMartijn Coenen <maco@google.com>2012-04-02 15:57:45 -0700
commitba15143ff54f5078f9b2cef5804525d387c52c72 (patch)
tree2412ff0a05809441c68bbd8869a51a47c656bdae /src/com/android
parent3322eb8bf21f95ec1564dff145d16e34e12ddfd5 (diff)
downloadpackages_apps_nfc-ba15143ff54f5078f9b2cef5804525d387c52c72.zip
packages_apps_nfc-ba15143ff54f5078f9b2cef5804525d387c52c72.tar.gz
packages_apps_nfc-ba15143ff54f5078f9b2cef5804525d387c52c72.tar.bz2
Support for querying extended length APDU support.
Bug: 5813943 Change-Id: I1274e3c47203e30cedefb57049738f97122de4b1
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/nfc/DeviceHost.java2
-rwxr-xr-xsrc/com/android/nfc/NfcService.java5
-rwxr-xr-xsrc/com/android/nfc/nxp/NativeNfcManager.java5
3 files changed, 12 insertions, 0 deletions
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() {