For older MediaTek devices (typically those running Android 4.x or 5.x), you can generate a custom scatter file directly from your phone: Android Partitions on MTK Devices - rigacci.org
A scatter file (typically named something like MT67xx_Android_scatter.txt ) serves as a blueprint for the device's internal flash memory (eMMc or UFS). It contains technical details such as: scatter file for all android phones
The exact hex address where a partition begins in the memory. For older MediaTek devices (typically those running Android