# Install & configure script for Gemalto TOP IM GX4, mother key

mode_201
gemXpressoPro
enable_trace
establish_context
card_connect

select -AID A000000018434D00
open_sc -security 3 -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 -sdAID A000000018434D00 -nvCodeLimit 4000 -priv 0

# test sbelection
select -AID ${jc.applet.AID_GPShell}

card_disconnect
release_context

