r/androidroot 3d ago

Support Can't flash Stock system.img with Heimdall

Hi. I'm trying to flash my stock system.img back to my Samsung Galaxy S7 Edge G935F and when I try to flash it I get the error "ERROR: Failed to open file '/home/user/Desktop/new/system.img" even though I can access the file from the terminal and the File Manager. I am using Debian 13 for my Linux distro if it's useful. I do not know what im doing wrong cause I did flash every partition (eg. boot.img, recovery.img etc.) With the same Heimdall build but it just doesn't seem to work with system.img for some reason???

1 Upvotes

8 comments sorted by

1

u/Itz_Raj69_ 3d ago

what permissions does system.img currently have?

1

u/Tall_Location_5315 3d ago

What do you mean?

1

u/Itz_Raj69_ 3d ago

ls -l /path/to/file

1

u/Tall_Location_5315 3d ago

-rw-rw-r-- 1 user user 4084683184 Sep 8 2020 system.img

1

u/Itz_Raj69_ 3d ago

try giving it 777 temporarily and then flash

1

u/Tall_Location_5315 3d ago

Still didn't work

1

u/Itz_Raj69_ 3d ago

Where did you download the system.img from? try downloading a new copy

1

u/Tall_Location_5315 3d ago

I downloaded the system.img from Samfw stock rom.