diff options
Diffstat (limited to 'core/java/android')
-rw-r--r-- | core/java/android/nfc/cardemulation/ApduServiceInfo.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/nfc/cardemulation/ApduServiceInfo.java b/core/java/android/nfc/cardemulation/ApduServiceInfo.java index 40a3612..d0feaa3 100644 --- a/core/java/android/nfc/cardemulation/ApduServiceInfo.java +++ b/core/java/android/nfc/cardemulation/ApduServiceInfo.java @@ -255,6 +255,10 @@ public final class ApduServiceInfo implements Parcelable { return mRequiresDeviceUnlock; } + public String getDescription() { + return mDescription; + } + public CharSequence loadLabel(PackageManager pm) { return mService.loadLabel(pm); } @@ -287,6 +291,11 @@ public final class ApduServiceInfo implements Parcelable { Log.e(TAG, "AID " + aid + " is not correctly formatted."); return false; } + // Minimum AID length is 5 bytes, 10 hex chars + if (aidLength < 10) { + Log.e(TAG, "AID " + aid + " is shorter than 5 bytes."); + return false; + } return true; } |