I happen to have an old phone laying around with messed up system partition(a couple of files accidentally deleted). This phone has an internal storage of max 1.5 GB(total 4gb, after setting everything up leaves me with 1.5 GB). I downloaded the stock firmware for the phone and the system.img size is almost 1.7GB I have twrp recovery. Is it possible to flash with an external sdcard. N.B: I unfortunately don't have my pc with me atm.
/system
is not "internat storage" but a different partition – which is one reason why only 1.5G are "left" from the 4G announced (the remaining ~800M are on the other partitions, like recovery, cache etc).system
partirion through UMS to a PC and flash image there. Or stream the image over network (using adb/nc) and write to partition at the same time. There are even more possibilities.dd
command as well. Likedd if=/storage/sdcard/system.img of=I forgot the name
from twrp terminal. is that possibleuserdata
partition. Replace that withsystem
./dev/block/platform/mtk-msdc.0/by-name/system
I did a ls -l on system and found that it is a symbolic link to/dev/block/mmcblk0p20
Now, should I dodd if=/storage/sdcard0/system.img of=/dev/block/platform/mtk-msdc.0/by-name/system
or should I dodd if=/storage/sdcard0/system.img of=/dev/block/mmcblk0p20
Which one should I do?