Home | History | Annotate | Download | only in hce
      1 package com.android.cts.verifier.nfc.hce;
      2 
      3 import android.content.ComponentName;
      4 
      5 public class PrefixPaymentService2 extends HceService {
      6     static final String TAG = "PrefixPaymentService2";
      7 
      8     static final ComponentName COMPONENT =
      9             new ComponentName("com.android.cts.verifier",
     10             PrefixPaymentService2.class.getName());
     11 
     12     public static final CommandApdu[] APDU_COMMAND_SEQUENCE = {
     13         HceUtils.buildSelectApdu(HceUtils.PPSE_AID, true),
     14         HceUtils.buildSelectApdu(HceUtils.MC_AID, true),
     15         HceUtils.buildCommandApdu("80CA02F000", true),
     16         HceUtils.buildSelectApdu("F0000000FFFFFFFFFFFFFFFFFFFFFFFF", true),
     17         HceUtils.buildSelectApdu("F000000000", true)
     18     };
     19 
     20     public static final String[] APDU_RESPOND_SEQUENCE = {
     21         "FAAA9000",
     22         "FBBB9000",
     23         "F789FFCCDD9000",
     24         "FFBAFEBECA",
     25         "F0BABEFECA"
     26     };
     27 
     28     public PrefixPaymentService2() {
     29         initialize(APDU_COMMAND_SEQUENCE, APDU_RESPOND_SEQUENCE);
     30     }
     31 
     32     @Override
     33     public ComponentName getComponent() {
     34         return COMPONENT;
     35     }
     36 }