particle-iot / particle-cli

Command Line Interface for Particle Cloud and devices
Apache License 2.0
212 stars 92 forks source link

Feature/sc 129083/when flashing device os modules to a protected #746

Closed monkbroc closed 2 months ago

monkbroc commented 2 months ago

Description

Prevent downgrading Device OS below a minimum version of 6.0.0 for Protected Devices.

How to Test

  1. Put a Protected Device in Service Mode
  2. The following commands should give the error "Cannot downgrade Device OS below version 6.0.0 on a Protected Device"
    • particle update --target 5.8.0
    • particle flash --usb argon-system-part1@5.8.0.bin
    • particle flash --local argon-system-part1@5.8.0.bin
    • particle flash --local --target 5.8.0

Related Issues / Discussions

Story

Completeness