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.
Asked
Active
Viewed 2,045 times
/systemis 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). – Izzy Sep 15 '20 at 23:51systempartirion 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. – Irfan Latif Sep 16 '20 at 04:48ddcommand as well. Likedd if=/storage/sdcard/system.img of=I forgot the namefrom twrp terminal. is that possible – silly goose Sep 16 '20 at 06:51ddis the most commonly used tool in Linux world to read and write raw partitions. The methods I mentioned above are meant to be combined withddto solve the problem of space shortage. – Irfan Latif Sep 16 '20 at 07:28dd— Linux manual page – Irfan Latif Sep 16 '20 at 10:37dddisk dump, but am confused about the of=? directory as in where should I dump the contents to, at which directory. An idea just popped in my head, what if I extracted the files in system.img and replaced everything under/to the contents of the files from image. Isn't that the same thing as doing dd? – silly goose Sep 16 '20 at 13:56userdatapartition. Replace that withsystem. – Irfan Latif Sep 16 '20 at 15:09/dev/block/platform/mtk-msdc.0/by-name/systemI did a ls -l on system and found that it is a symbolic link to/dev/block/mmcblk0p20Now, should I dodd if=/storage/sdcard0/system.img of=/dev/block/platform/mtk-msdc.0/by-name/systemor should I dodd if=/storage/sdcard0/system.img of=/dev/block/mmcblk0p20Which one should I do? – silly goose Sep 16 '20 at 21:12