apdu

How to get AID for reader Host based card emulation

ぃ、小莉子 提交于 2019-12-31 10:48:06
问题 I'm trying to do Host card emulation on an Android device using this example using ACR1281U NFC tag reader. This is the kind of application I want to make. As per the Android documentation and the example, it is required to register an AID in the Android project: <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" android:description="@string/servicedesc" android:requireDeviceUnlock="false"> <aid-group android:description="@string/aiddescription" android:category=

Read write data in SLE4442 smart card with java commandAPDU?

旧时模样 提交于 2019-12-30 07:50:11
问题 I want to read and write data in SLE4442 smart card i have ACR38U-i1 smart card reader For write I am use this commandAPDU byte[] cmdApduPutCardUid = new byte[]{(byte)0xFF, (byte)0xD0, (byte)0x40,(byte)0x00, (byte)4,(byte)6,(byte)2,(byte)6,(byte)2}; And for read data byte[] cmdApduGetCardUid = new byte[]{(byte)0xFF,(byte)0xB0,(byte)0x40,(byte)0x00,(byte)0xFF}; both are execute and send SW= 9000 but no one data receive in responseAPDU Like I write 6262 data but it not receive I am also use

How do I read the PAN from an EMV SmartCard from Java

非 Y 不嫁゛ 提交于 2019-12-30 00:20:06
问题 I need to read account number from Maestro/Mastercard with smart card reader. I am using Java 1.6 and its javax.smartcardio package. I need to send APDU command which will ask EMV application stored on card's chip for PAN number. Problem is, I cannot find regular byte array to construct APDU command which will return needed data anywhere... 回答1: You shouldn't need to wrap the APDU further. The API layer should take care of that. It looks like the 0x6D00 response just means that the

java.lang.nullpointerexception in j2me

人走茶凉 提交于 2019-12-29 09:25:10
问题 I am writing an application for read the mifare card,but when I pass the APDU the error occur that on emulator "java.lang.nullpointerexception".I have successfully detect the ISO14443_CARD after that I pass the APDU like if (tp.hasTargetType(TargetType.ISO14443_CARD)){ form.append("Target is ISO14443_CARD\n"); try { static byte[] APDU_AUTH1 = { (byte) 0xff, (byte) 0x86, (byte) 0x00, (byte) 0x00, (byte) 0x05,(byte)0x01,(byte)0x00,(byte)0xfc,(byte)0x60,(byte)0x00}; static byte[] STATUS_BYTE = {

List of OMAPI supported devices

流过昼夜 提交于 2019-12-29 05:35:07
问题 I'm developing with the Open Mobile API but so far haven't found a list of devices that support the API by default (by default being using the OEM ROM). I realise that since API level 21, Android telephony supports sending APDUs via basic and logical channels dirctly through the TelephonyManager. But I'd like to know about devices running pre-API level 21 too. So, has a list already been compiled of devices with built-in support or is there a way to find out for myself? 回答1: I'm not aware of

6A82 APDU communication issue between NFC enabled Android phone and ISO/IEC 14443-4 Smart Card

戏子无情 提交于 2019-12-25 04:48:06
问题 I'm currently working with an Android payment application using NFC.For this purpose Android application need to send and receive APDU commands to ISO/IEC 14443-4 Smart Card. When i test my application using Galaxy S5(OS 4.4.2) , or Galaxy s3(OS 4.1.2) I'm getting 6A82 My Code flow is going like below: 1st step -> Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); IsoDep iso = IsoDep.get(tag); iso.connect(); 2nd step -> By using iso.transceive().. I'm sending APDU command 0084000008

How can I edit the content of my smart card?

梦想与她 提交于 2019-12-25 01:45:37
问题 Can you tell me please how I can edit the content of my smart card? How should I use APDU commands in order to edit the content? Lets say I have something like this on a smart card: 00 00 05 00 00 00 00 00 00 00 00 FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 And I want it to be : 00 00 06 00 00 00 00 00 00 00 00 FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 How can I do that? Is it possible? If yes, how? I have ACR-122 NFC READER/writer 回答1: You're talking about simple

Smart Card Get Response Returns Status 6D00

荒凉一梦 提交于 2019-12-24 17:44:11
问题 I am developing a C++ application (on Windows 7) which interfaces with PC/SC card readers to perform some authentication operations. This application is the child process of another application (I don't know if that's relevant, but it might be). I also have a simple standalone test application which performs all the interactions with the smart card that I need and does so successfully. However I have run into some odd behavior when integrating the code from this utility into my main

EMV - GPO with PDOL

亡梦爱人 提交于 2019-12-23 20:10:01
问题 I'm working on a C platform and I want to read the AFL of a card. If the previous command, select of the AID, don't give me a PDOL tag, it's ok: I can read the AFL without issues. But I need to write a method that can generate a GET PROCESSING OPTION regardless the PDOL. So the questions are: How can I write an universal method that work despite the PDOL? Have I to map every single possible TAG? How can I format the GPO command with the correct data? Look the following example: SELECT AID

Sending Extended APDU to Javacard

喜欢而已 提交于 2019-12-22 10:33:18
问题 I have a ACR38 samrt-card-reader and a number of Javacard [2.1.1] compliant with GP Spec [02]. As I know, there is two kind of APDU, Short-APDU [APDU with LC or/and LE shorter than 255 ] and Extended-APDU [APDU with LC or/and LE greater than 255 ]. is that right? We send Short-APDU in T=0 protocol and send Extended-APDU in T=1 protocol. is that right? I sent Short-APDU to my card successfully. [via GPJ , GPShell , OpenSC-Tool ]. And now, I want to know: 1: if I want to use Extended APDU, my