Resize System partition
Steps:
1. Download "parted and platform-tools" in "UiX city" and add file in "platform-tools"
2. Reboot your phone to twrp then open CMD in platform-tools
3. In CMD:
adb push parted /sbin
adb shell
chmod 777 /sbin/parted
parted /dev/block/sdc
p
We can see your partitions
Delete "system" and "userdata"
rm 40
rm 46
Create system partition
mkpart
system
ext4
7828
16020
Create userdata partition
mkpart
userdata
ext4
16G
(your amount of memory(64G/128G/256G)
128G
4. In twrp wipe system and data. Reboot recovery
5. Flash DFE format data (yes), and reboot recovery
6. Flash your rom