Skip to content

Detect if zip is mfw or application#595

Open
SlavaNordic wants to merge 2 commits into
feat/add-write-support-for-91xfrom
detect-if-mfw-zip
Open

Detect if zip is mfw or application#595
SlavaNordic wants to merge 2 commits into
feat/add-write-support-for-91xfrom
detect-if-mfw-zip

Conversation

@SlavaNordic

Copy link
Copy Markdown
Contributor

@github-actions

This comment has been minimized.

@SlavaNordic SlavaNordic changed the base branch from main to feat/add-write-support-for-91x June 19, 2026 14:10
@SlavaNordic SlavaNordic added doc required This PR includes user-facing changes that need to be documented. ui not required All PRs either need "ui required" or "ui not required". labels Jun 19, 2026
@github-actions github-actions Bot requested a review from greg-fer June 19, 2026 14:11
@SlavaNordic SlavaNordic requested a review from kylebonnici June 19, 2026 14:17
{isApplication
? 'application programming'
: 'modem DFU'}{' '}
via MCUboot.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
via MCUboot.
using MCUboot.

Comment on lines 292 to 293
The device will be overwritten if you proceed to
write.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The device memory will be overwritten if you proceed to
write.

write.
</p>
<p className="tw-mb-0">
Make sure the device is in{' '}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Make sure the device is in the{' '}

Comment thread src/util/firmwareType.ts
if (isModem) return FirmwareType.MODEM;

// Is Application: check manifest.json with a "file" entry of type "application".
const manifestEntry = directory.files.find(file =>

@kylebonnici kylebonnici Jun 25, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would consider moving the application check before the modem check as FW with 'manifest.json' is still an application FW even if it named to match /(^|\/)mfw_nrf\w+/.test(l)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc required This PR includes user-facing changes that need to be documented. ui not required All PRs either need "ui required" or "ui not required".

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants