# Usable for:
# Cyberflex Palmera V5 (applet must be converted with C:\Program Files\Schlumberger\Smart Cards and Terminals\Cyberflex Access Kits\v4\Toolkit\PRGMaker\Export Files)
# NXP JCOP 3.1
# Oberthur Cosmo Dual 72K

mode_211 
enable_trace
establish_context
card_connect
select -AID a000000003000000
#select -AID A000000018434D00

open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
#open_sc -security 1 -keyind 0 -keyver 0 -key 47454d5850524553534f53414d504c45

delete -AID ${jc.applet.AID_GPShell}

delete -AID ${jc.package.AID_GPShell} 
install -file ${build.classes.dir}/${jc.package.path}/javacard/${jc.package.shortName}.cap -nvDataLimit 2000 -instParam 00 -priv 2
select -AID ${jc.applet.AID_GPShell}
send_apdu -APDU B040000009010203040506070809

card_disconnect
release_context
