<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>DFU update with encrypted bin file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16667/dfu-update-with-encrypted-bin-file</link><description>Hi, 
 We are currently using SDK 10 experimental boot loader example. We would like to encrypt the firmware before creating the zip file for OTA. The procedure we followed is that we replace the original bin file with an encrypted bin file in OTA package</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Sep 2016 12:53:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16667/dfu-update-with-encrypted-bin-file" /><item><title>RE: DFU update with encrypted bin file</title><link>https://devzone.nordicsemi.com/thread/63767?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2016 12:53:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5350c5d7-95d6-47b2-bd3e-9ca58c3d8c89</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;No problem @arjun! Glad to hear that you found the cause of the issue. :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update with encrypted bin file</title><link>https://devzone.nordicsemi.com/thread/63766?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2016 12:51:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ece8726d-787d-4c68-b900-337ba477bf48</guid><dc:creator>Arjun</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;I found why I was facing the issue. Very silly mistake and my bad. The zip was created with a folder directory. This meant the app was not able find json. Sorry about the trouble. But your answer pointed out this problem. Thank you very much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update with encrypted bin file</title><link>https://devzone.nordicsemi.com/thread/63765?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2016 12:13:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2100b6fb-7b25-4704-a2d7-ed1db764f335</guid><dc:creator>Arjun</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. There is the manifest.json file for sure in the package. In any case I am attaching the zip file with the question. Regarding SDK12 we will start looking into this. Thanks for the information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update with encrypted bin file</title><link>https://devzone.nordicsemi.com/thread/63764?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2016 11:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb008101-d44c-4c9f-8e41-ae247a873e7b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Arjun,&lt;/p&gt;
&lt;p&gt;firstly I strongly recommend that you migrate SDK 12 and use the production-ready Secure DFU bootloader instead of the experimental one from SDK v10.&lt;/p&gt;
&lt;p&gt;No, I do not think that the app verifies the SHA hash before starting the OTA DFU process, it is checked when the entire image is received on the nRF side.&lt;/p&gt;
&lt;p&gt;The error displayed by the app&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;[DFU] Opening file failed: The zip
file must contain an Application, a
Softdevice and/or a Bootloader&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;suggests that the application cannot find the manifest.json file in zip file. If you take a look at the ArchiveInputStream function, &lt;a href="https://github.com/NordicSemiconductor/Android-DFU-Library/blob/9cd78d010a38cf13743d9c9160d7e2336c8f9bd4/dfu/src/main/java/no/nordicsemi/android/dfu/internal/ArchiveInputStream.java"&gt;here&lt;/a&gt; is the GitHub link, that parses the zip, you&amp;#39;ll see that the app only throws this exeption when its in compatibility mode. Could you attach  the zip-file that generates the error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>