diff --git a/.changeset/brave-dolphins-admire.md b/.changeset/brave-dolphins-admire.md new file mode 100644 index 00000000000..0291c6817da --- /dev/null +++ b/.changeset/brave-dolphins-admire.md @@ -0,0 +1,5 @@ +--- +"live-mobile": minor +--- + +Enable Nano X BLE Fw update on LLM diff --git a/apps/ledger-live-mobile/src/locales/en/common.json b/apps/ledger-live-mobile/src/locales/en/common.json index 13dbc6c06e7..59bce51d75e 100644 --- a/apps/ledger-live-mobile/src/locales/en/common.json +++ b/apps/ledger-live-mobile/src/locales/en/common.json @@ -4329,7 +4329,8 @@ "installUpdate": { "titleInactive": "Install update", "titleActive": "Installing update", - "description": "{{deviceName}} will restart multiple times.\n\nTo complete the update, unlock {{deviceName}} with your PIN after installation has finished." + "description": "{{deviceName}} will restart multiple times.\n\nTo complete the update, unlock {{deviceName}} with your PIN after installation has finished.", + "descriptionNanoXBle": "{{deviceName}} will restart multiple times.\n\nIt might be necessary to turn it back on manually.\n\nTo complete the update, unlock {{deviceName}} with your PIN after installation has finished." }, "restoreSettings": { "earlySecurityCheck": { diff --git a/apps/ledger-live-mobile/src/newArch/features/FirmwareUpdate/utils/isFirmwareUpdateSupported.ts b/apps/ledger-live-mobile/src/newArch/features/FirmwareUpdate/utils/isFirmwareUpdateSupported.ts index c1525388bb3..6f38e3a4951 100644 --- a/apps/ledger-live-mobile/src/newArch/features/FirmwareUpdate/utils/isFirmwareUpdateSupported.ts +++ b/apps/ledger-live-mobile/src/newArch/features/FirmwareUpdate/utils/isFirmwareUpdateSupported.ts @@ -4,7 +4,7 @@ import { DeviceModelId } from "@ledgerhq/devices"; import isFirmwareUpdateVersionSupported from "@ledgerhq/live-common/hw/isFirmwareUpdateVersionSupported"; import { Device } from "@ledgerhq/live-common/hw/actions/types"; -const NEW_UX_SUPPORTED_DEVICES = [DeviceModelId.stax, DeviceModelId.europa]; +const NEW_UX_SUPPORTED_DEVICES = [DeviceModelId.stax, DeviceModelId.europa, DeviceModelId.nanoX]; export function isNewFirmwareUpdateUxSupported(deviceModelId?: DeviceModelId) { return deviceModelId ? NEW_UX_SUPPORTED_DEVICES.includes(deviceModelId) : false; diff --git a/apps/ledger-live-mobile/src/screens/FirmwareUpdate/index.tsx b/apps/ledger-live-mobile/src/screens/FirmwareUpdate/index.tsx index 0f88831a933..2c002804921 100644 --- a/apps/ledger-live-mobile/src/screens/FirmwareUpdate/index.tsx +++ b/apps/ledger-live-mobile/src/screens/FirmwareUpdate/index.tsx @@ -1,5 +1,5 @@ import { Image } from "react-native"; -import { getDeviceModel } from "@ledgerhq/devices"; +import { DeviceModelId, getDeviceModel } from "@ledgerhq/devices"; import { isEqual } from "lodash/fp"; import { updateFirmwareActionArgs, @@ -365,9 +365,13 @@ export const FirmwareUpdate = ({ <> - {t("FirmwareUpdate.steps.installUpdate.description", { - deviceName: productName, - })} + {!device.wired && device.modelId === DeviceModelId.nanoX + ? t("FirmwareUpdate.steps.installUpdate.descriptionNanoXBle", { + deviceName: productName, + }) + : t("FirmwareUpdate.steps.installUpdate.description", { + deviceName: productName, + })} ), @@ -390,7 +394,7 @@ export const FirmwareUpdate = ({ ), }, }), - [isBeforeOnboarding, t, productName, restoreSteps], + [isBeforeOnboarding, t, productName, restoreSteps, device.wired, device.modelId], ); useEffect(() => {