title: how can i change my JAVA card life cycle state to OP_READY?
body: <p>I found the below script in the Oracle (<a href="https://community.oracle.com/thread/3563244" rel="nofollow">This lint</a>) and run it via <code>GPShell</code> on my java card and now I can't run <code>gpj -list</code> in <code>GPJ</code>! </p>
  
  <p>My questions:</p>
  
  <p>1- What is this code for? changing Card Domain Manager status from OP_READY to Secured?</p>
  
  <p>2- Why I can't find anywhere <code>80F0800708A000000003000000</code> And <code>80F0800F08A000000003000000</code> APDUs that used in script?! I searched <code>GP Specification 2.2</code> and <code>ISO 7814-4</code> for an APDU with <code>F0</code> in <code>CLA</code> section! But I found nothing!</p>
  
  <p>3- Is the operation of the below script reversible by another script? </p>
  
  <p>The Script : </p>
  
  <pre><code>mode_211
  enable_trace
  establish_context
  card_connect
  
  select -AID A0000000
  open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f -kek_key 
  
  404142434445464748494a4b4c4d4e4f
  send_apdu -sc 1 -APDU 80F0800708A000000003000000
  send_apdu -sc 1 -APDU 80F0800F08A000000003000000
  card_disconnect
  release_context
  </code></pre>
  
  <p>And this is it's output in Console :</p>
  
  <pre><code>C:\Users\ghasemi\Desktop\GPShell-1.4.4&gt;gpshell lcchange.txt
  mode_211
  enable_trace
  establish_context
  card_connect
  select -AID a00000
  Command --&gt; 00A4040003A00000
  Wrapped command --&gt; 00A4040003A00000
  Response &lt;-- 6F108408A000000003000000A5049F6501FF9000
  open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4
  f -enc_key 404142434445464748494a4b4c4d4e4f -kek_key 404142434445464748494a4b4c4
  d4e4f
  Command --&gt; 80CA006600
  Wrapped command --&gt; 80CA006600
  Response &lt;-- 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864
  886FC6B03640B06092A864886FC6B040215650B06092B8510864864020103660C060A2B060104012
  A026E01029000
  Command --&gt; 805000000823CE2F4C2B6C689B00
  Wrapped command --&gt; 805000000823CE2F4C2B6C689B00
  Response &lt;-- 0000116001007F8B0AF9020201D1C94E4F787D75DD54805A7488BCF79000
  Command --&gt; 84820100100BCCFE8818D2DFC6E5B48EA4B6892457
  Wrapped command --&gt; 84820100100BCCFE8818D2DFC6E5B48EA4B6892457
  Response &lt;-- 9000
  send_apdu -sc 1 -APDU 80F0800708A000000003000000
  Command --&gt; 80F0800708A000000003000000
  Wrapped command --&gt; 84F0800710A0000000030000007AA29B3A708E6E75
  Response &lt;-- 9000
  send_APDU() returns 0x80209000 (9000: Success. No error.)
  send_apdu -sc 1 -APDU 80F0800F08A000000003000000
  Command --&gt; 80F0800F08A000000003000000
  Wrapped command --&gt; 84F0800F10A0000000030000004FCFC15FD7EBDE9A
  Response &lt;-- 9000
  send_APDU() returns 0x80209000 (9000: Success. No error.)
  card_disconnect
  release_context
  </code></pre>
  
  <p>Thankyou.</p>