diff --git a/CHANGELOG b/CHANGELOG index 37d8432b..e81a64a5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,7 @@ ## 0.7.1 - Unreleased +* Mark stock firmware 2.3 as validated for installing custom firmware over * Add Wear OS watch battery indicator to the top bar and Glanceboard * Glanceboard tap setting includes a Disable option * Refinements to builtin games diff --git a/app/g2/firmware-compat.ts b/app/g2/firmware-compat.ts index 7a85eb00..3de376c2 100644 --- a/app/g2/firmware-compat.ts +++ b/app/g2/firmware-compat.ts @@ -36,7 +36,7 @@ const LEGACY_PREFIX = "EVENCFW"; // unrecognized (its layout may differ from what our patch set targets). export const BASE_STOCK_VERSION = [2, 2, 9, 22]; export const BASE_STOCK_VERSION_TEXT = BASE_STOCK_VERSION.join("."); -export const VALIDATED_STOCK_VERSION = [2, 2, 10, 10]; +export const VALIDATED_STOCK_VERSION = [2, 3, 0, 24]; export const VALIDATED_STOCK_VERSION_TEXT = VALIDATED_STOCK_VERSION.join("."); export type FirmwareExtension = diff --git a/tests/firmware-compat.test.cjs b/tests/firmware-compat.test.cjs index 1db8134f..24077d85 100644 --- a/tests/firmware-compat.test.cjs +++ b/tests/firmware-compat.test.cjs @@ -63,7 +63,9 @@ test("stock firmware classifies by base version and warns on the main screen", ( assert.equal(compat.classifyOnboardingFirmware(info("", "2.2.9.22", "2.2.9.22")).kind, "flashable-stock"); assert.equal(compat.classifyOnboardingFirmware(info("", "2.2.4.34", "")).kind, "flashable-stock"); assert.equal(compat.classifyOnboardingFirmware(info("", "2.2.10.10", "2.2.10.10")).kind, "newer-stock-validated"); - assert.equal(compat.classifyOnboardingFirmware(info("", "2.3.0.1", "2.3.0.1")).kind, "newer-stock-unvalidated"); + assert.equal(compat.classifyOnboardingFirmware(info("", "2.3.0.1", "2.3.0.1")).kind, "newer-stock-validated"); + assert.equal(compat.classifyOnboardingFirmware(info("", "2.3.0.24", "2.3.0.24")).kind, "newer-stock-validated"); + assert.equal(compat.classifyOnboardingFirmware(info("", "2.3.0.24", "2.3.0.25")).kind, "newer-stock-unvalidated"); // Faceclaw firmware on a newer base is still judged by its revision, not the base. assert.equal(compat.classifyOnboardingFirmware(info(`Faceclaw/${REQUIRED}`, "2.3.0.1", "2.3.0.1")).kind, "custom"); });