From c19707a95e8b1f12460438bfa37ac034d77cd35f Mon Sep 17 00:00:00 2001 From: Roman Serov Date: Thu, 19 Jun 2025 19:23:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BD=D1=81=D1=82=D0=B0=D0=BD?= =?UTF-8?q?=D1=82=D1=8B=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=B2=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/ffshit/partition/partitions.h | 17 +++++++++++++++++ src/partition/partitions.cpp | 17 ----------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/inc/ffshit/partition/partitions.h b/inc/ffshit/partition/partitions.h index 68014b3..1fc1d15 100644 --- a/inc/ffshit/partition/partitions.h +++ b/inc/ffshit/partition/partitions.h @@ -14,6 +14,23 @@ namespace FULLFLASH { namespace Partitions { +static constexpr size_t BC65_BC75_OFFSET = 0x870; +static constexpr size_t BC85_OFFSET = 0xC70; + +static constexpr size_t X65_MODEL_OFFSET = 0x210; +static constexpr size_t X75_MODEL_OFFSET = 0x210; +static constexpr size_t X85_MODEL_OFFSET = 0x3E000; + +static constexpr size_t X65_IMEI_OFFSET = 0x65C; +static constexpr size_t X65_7X_IMEI_OFFSET = 0x660; +static constexpr size_t X75_IMEI_OFFSET = 0x660; +static constexpr size_t X85_IMEI_OFFSET = 0x3E410; + +static constexpr uint32_t FF_ADDRESS_MASK = 0x0FFFFFFF; + +static constexpr uint32_t X65_SEARCH_START_ADDR = 0x00800000; +static constexpr uint32_t X75_SEARCH_START_ADDR = 0x004C0000; + class Partitions { public: using Ptr = std::shared_ptr; diff --git a/src/partition/partitions.cpp b/src/partition/partitions.cpp index ce5a19d..f415f82 100644 --- a/src/partition/partitions.cpp +++ b/src/partition/partitions.cpp @@ -19,23 +19,6 @@ namespace FULLFLASH { namespace Partitions { -static constexpr size_t BC65_BC75_OFFSET = 0x870; -static constexpr size_t BC85_OFFSET = 0xC70; - -static constexpr size_t X65_MODEL_OFFSET = 0x210; -static constexpr size_t X75_MODEL_OFFSET = 0x210; -static constexpr size_t X85_MODEL_OFFSET = 0x3E000; - -static constexpr size_t X65_IMEI_OFFSET = 0x65C; -static constexpr size_t X65_7X_IMEI_OFFSET = 0x660; -static constexpr size_t X75_IMEI_OFFSET = 0x660; -static constexpr size_t X85_IMEI_OFFSET = 0x3E410; - -static constexpr uint32_t FF_ADDRESS_MASK = 0x0FFFFFFF; - -static constexpr uint32_t X65_SEARCH_START_ADDR = 0x00800000; -static constexpr uint32_t X75_SEARCH_START_ADDR = 0x004C0000; - static const Patterns::Readable pattern_sg { "?? ?? ?? A?", // name ptr "?? ?? 00 00",