<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Other NXP Products中的主题 Integrity Error on Change Key Desfire EV3 on Android</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Integrity-Error-on-Change-Key-Desfire-EV3-on-Android/m-p/2362155#M31947</link>
    <description>&lt;P&gt;Environment Details:&lt;/P&gt;&lt;P&gt;Card:&lt;BR /&gt;- MIFARE DESFire EV3&lt;/P&gt;&lt;P&gt;SDK:&lt;BR /&gt;- NXP TapLinx&lt;/P&gt;&lt;P&gt;Android:&lt;BR /&gt;- Android Studio + Kotlin&lt;/P&gt;&lt;P&gt;Transport:&lt;BR /&gt;- IsoDep&lt;/P&gt;&lt;P&gt;Library Interface:&lt;BR /&gt;- IDESFireEV1&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Goal:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create DESFire EV3 application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Change application master key (key 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Authenticate with new key&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Working:
- PICC authentication
- formatPICC()
- createApplication()
- selectApplication()

Failing:
- authenticate() on newly created AES application
OR
- changeKey() with SW2=30Working:
- PICC authentication
- formatPICC()
- createApplication()
- selectApplication()

Failing:
- changeKey() with SW2=30

 Logcat:
Integrity Error SW2 = 30
 com.nxp.nfclib.desfire.DESFireUtil.invalidResponse(:260)
com.nxp.nfclib.desfire.DESFireResponse.invalidResponse(:174)
 com.nxp.nfclib.desfire.DESFireEV2.changeKeyCommandTransfer(:1034)
com.nxp.nfclib.desfire.DESFireEV1.changeKeyHelper(:1215)
com.nxp.nfclib.desfire.DESFireEV2.changeKey(:851)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;private&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;fun&lt;/SPAN&gt; &lt;SPAN class=""&gt;createApplication&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;/SPAN&gt; {
        &lt;SPAN class=""&gt;val&lt;/SPAN&gt; s = EV1ApplicationKeySettings.Builder()
            .setAppMasterKeyChangeable(&lt;SPAN class=""&gt;true&lt;/SPAN&gt;)
            .setAppKeySettingsChangeable(&lt;SPAN class=""&gt;true&lt;/SPAN&gt;)
            .setAuthenticationRequiredForFileManagement(&lt;SPAN class=""&gt;true&lt;/SPAN&gt;)
            .setAuthenticationRequiredForDirectoryConfigurationData(&lt;SPAN class=""&gt;true&lt;/SPAN&gt;)
            .setMaxNumberOfApplicationKeys(&lt;SPAN class=""&gt;3&lt;/SPAN&gt;)
            .setKeyTypeOfApplicationKeys(KeyType.TWO_KEY_THREEDES)
            .build()
        desfire.createApplication(AID, s)
        detail(&lt;SPAN class=""&gt;"  createApplication: AID=&lt;SPAN class=""&gt;${AID.toHex()}&lt;/SPAN&gt;, type=&lt;SPAN class=""&gt;$KEY_TYPE&lt;/SPAN&gt;, numKeys=3"&lt;/SPAN&gt;)
    }



desfire.changeKey(keyNo, KeyType.TWO_KEY_THREEDES, oldKey, newKey, &lt;SPAN class=""&gt;0x00&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2026 01:35:51 GMT</pubDate>
    <dc:creator>saikumar_CH</dc:creator>
    <dc:date>2026-05-08T01:35:51Z</dc:date>
    <item>
      <title>Integrity Error on Change Key Desfire EV3 on Android</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Integrity-Error-on-Change-Key-Desfire-EV3-on-Android/m-p/2362155#M31947</link>
      <description>&lt;P&gt;Environment Details:&lt;/P&gt;&lt;P&gt;Card:&lt;BR /&gt;- MIFARE DESFire EV3&lt;/P&gt;&lt;P&gt;SDK:&lt;BR /&gt;- NXP TapLinx&lt;/P&gt;&lt;P&gt;Android:&lt;BR /&gt;- Android Studio + Kotlin&lt;/P&gt;&lt;P&gt;Transport:&lt;BR /&gt;- IsoDep&lt;/P&gt;&lt;P&gt;Library Interface:&lt;BR /&gt;- IDESFireEV1&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Goal:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create DESFire EV3 application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Change application master key (key 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Authenticate with new key&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Working:
- PICC authentication
- formatPICC()
- createApplication()
- selectApplication()

Failing:
- authenticate() on newly created AES application
OR
- changeKey() with SW2=30Working:
- PICC authentication
- formatPICC()
- createApplication()
- selectApplication()

Failing:
- changeKey() with SW2=30

 Logcat:
Integrity Error SW2 = 30
 com.nxp.nfclib.desfire.DESFireUtil.invalidResponse(:260)
com.nxp.nfclib.desfire.DESFireResponse.invalidResponse(:174)
 com.nxp.nfclib.desfire.DESFireEV2.changeKeyCommandTransfer(:1034)
com.nxp.nfclib.desfire.DESFireEV1.changeKeyHelper(:1215)
com.nxp.nfclib.desfire.DESFireEV2.changeKey(:851)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;private&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;fun&lt;/SPAN&gt; &lt;SPAN class=""&gt;createApplication&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;/SPAN&gt; {
        &lt;SPAN class=""&gt;val&lt;/SPAN&gt; s = EV1ApplicationKeySettings.Builder()
            .setAppMasterKeyChangeable(&lt;SPAN class=""&gt;true&lt;/SPAN&gt;)
            .setAppKeySettingsChangeable(&lt;SPAN class=""&gt;true&lt;/SPAN&gt;)
            .setAuthenticationRequiredForFileManagement(&lt;SPAN class=""&gt;true&lt;/SPAN&gt;)
            .setAuthenticationRequiredForDirectoryConfigurationData(&lt;SPAN class=""&gt;true&lt;/SPAN&gt;)
            .setMaxNumberOfApplicationKeys(&lt;SPAN class=""&gt;3&lt;/SPAN&gt;)
            .setKeyTypeOfApplicationKeys(KeyType.TWO_KEY_THREEDES)
            .build()
        desfire.createApplication(AID, s)
        detail(&lt;SPAN class=""&gt;"  createApplication: AID=&lt;SPAN class=""&gt;${AID.toHex()}&lt;/SPAN&gt;, type=&lt;SPAN class=""&gt;$KEY_TYPE&lt;/SPAN&gt;, numKeys=3"&lt;/SPAN&gt;)
    }



desfire.changeKey(keyNo, KeyType.TWO_KEY_THREEDES, oldKey, newKey, &lt;SPAN class=""&gt;0x00&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2026 01:35:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Integrity-Error-on-Change-Key-Desfire-EV3-on-Android/m-p/2362155#M31947</guid>
      <dc:creator>saikumar_CH</dc:creator>
      <dc:date>2026-05-08T01:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Integrity Error on Change Key Desfire EV3 on Android</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Integrity-Error-on-Change-Key-Desfire-EV3-on-Android/m-p/2362432#M31956</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/262534"&gt;@saikumar_CH&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Recommends you to refer Sample_Application_Android\src\main\java\com\nxp\sampletaplinx\WriteActivity, there has&amp;nbsp;&lt;SPAN&gt;desfireEV3CardLogic could be helpful to you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2026 10:09:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Integrity-Error-on-Change-Key-Desfire-EV3-on-Android/m-p/2362432#M31956</guid>
      <dc:creator>KaiLi</dc:creator>
      <dc:date>2026-05-08T10:09:49Z</dc:date>
    </item>
  </channel>
</rss>

