Here’s a draft write-up explaining the concept of a scatter file in the context of Android devices, why a universal version doesn’t exist, and how to work with device-specific scatter files.
To create a scatter file for a specific device: scatter file for all android phones
adb shell df, parted, or fdisk can provide insights.MEMORY_LAYOUT definition and then specifies offsets and sizes for each partition.ROM developers modify the scatter file when repartitioning to enlarge system for GApps or custom features. They then provide a custom scatter with their ROM package. Here’s a draft write-up explaining the concept of
The newer versions of SP Flash Tool (v5.x+) include a feature to read the partition table directly from the phone in META mode or BRAM mode. Creating a Scatter File To create a scatter
Steps:
Caution: The phone must be in a working state (not fully dead) and able to enter preloader or BRAM mode.
You have options, though none are ideal.