diff options
author | Martijn Coenen <maco@google.com> | 2012-04-02 15:57:13 -0700 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2012-04-02 15:57:45 -0700 |
commit | ba15143ff54f5078f9b2cef5804525d387c52c72 (patch) | |
tree | 2412ff0a05809441c68bbd8869a51a47c656bdae /src | |
parent | 3322eb8bf21f95ec1564dff145d16e34e12ddfd5 (diff) | |
download | packages_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')
-rw-r--r-- | src/com/android/nfc/DeviceHost.java | 2 | ||||
-rwxr-xr-x | src/com/android/nfc/NfcService.java | 5 | ||||
-rwxr-xr-x | src/com/android/nfc/nxp/NativeNfcManager.java | 5 |
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() { |