I have the stock firmware for my device (a Galaxy J6). I've downloaded it from sammobile, and it's in a zip file. Supposedly, all I need to do is extract this file with an extraction program like winrar and presto, I should have the necessary boot.img. But all I get are these useless .md5 files. What is going on? Did I misinterpret something?
More than anything, I would just like it if someone finally just explained to me what the hell I'm supposed to do. The Magisk installation guide doesn't even go into detail about how to get a boot.img, it just assumes you have it. It's infuriating.
AndreM962 said:
I have the stock firmware for my device (a Galaxy J6). I've downloaded it from sammobile, and it's in a zip file. Supposedly, all I need to do is extract this file with an extraction program like winrar and presto, I should have the necessary boot.img. But all I get are these useless .md5 files. What is going on? Did I misinterpret something?
More than anything, I would just like it if someone finally just explained to me what the hell I'm supposed to do. The Magisk installation guide doesn't even go into detail about how to get a boot.img, it just assumes you have it. It's infuriating.
Click to expand...
Click to collapse
If it's an OTA full upgrade there should be a file named payload.bin.
You need to unpack it to get the img files. Do it using this tool:
https://androidfilehost.com/?fid=818070582850510260
Enviado desde mi ONEPLUS A6013 mediante Tapatalk
Um, when I tried downloading your program, the page said there were no mirrors found.
Also, there doesn't appear to be any payload.bin file on the zip, just md5 files. And it's been that way for every j6 firmware I've downloaded in the past.
Maybe you should try downloading the firmware from sammobile and seeing whether you can extract boot.img from it?
AndreM962 said:
Um, when I tried downloading your program, the page said there were no mirrors found.
Also, there doesn't appear to be any payload.bin file on the zip, just md5 files. And it's been that way for every j6 firmware I've downloaded in the past.
Maybe you should try downloading the firmware from sammobile and seeing whether you can extract boot.img from it?
Click to expand...
Click to collapse
Give me the link and i will see what can i do.
Enviado desde mi ONEPLUS A6013 mediante Tapatalk
https://www.sammobile.com/firmwares/galaxy-j6/SM-J600GT/ZTO/download/J600GTVJU3ASA1/257858/
You might need to make a sammobile account if you don't have one already. Good luck!
AndreM962 said:
https://www.sammobile.com/firmwares/galaxy-j6/SM-J600GT/ZTO/download/J600GTVJU3ASA1/257858/
You might need to make a sammobile account if you don't have one already. Good luck!
Click to expand...
Click to collapse
I downloaded a random J6 firmware in another site.
You have to use 7zip software, it's free, much better than WinRar and supports tons of compression formats. Do these steps with 7zip:
-Unpack zip file.
-Rename the "*.tar.md5" to "*.tar".
-Open the ".tar" file and unpack "boot.img.lz4".
-Unpack "boot.img.lz4" file.
-It's done, you now have the "boot.img" file you were looking for
Enviado desde mi ONEPLUS A6013 mediante Tapatalk
Sorry for the late reply. I did it. I found the boot.img file! I'll be using it shortly.
Thank you so much. Your advice was absolutely invaluable!
How can I get boot.IMG from my firmware
My device is mafe air and I download Its firmware from a website but I am unable to get boot.img file from it because it have recovery.img and other system file where can I found my device supported boot.img in my device firmware. Please help me I need it to root my device using magisk. Please reply
My device is itel A14 max running on Mediatek chip and I downloaded it's firmware to root using magisk but when extract the zip file using 7zipper, I can't find the boot.img file. The file that I get is in .pac format and I am failing to extract it further to get boot.img file. Is there any way I can be helped please?
I have oppo f15 phone and i downloaded its stok rom after extract it ,8 can't find boot.img file how to do it plz help..
hank81 said:
I downloaded a random J6 firmware in another site.
You have to use 7zip software, it's free, much better than WinRar and supports tons of compression formats. Do these steps with 7zip:
-Unpack zip file.
-Rename the "*.tar.md5" to "*.tar".
-Open the ".tar" file and unpack "boot.img.lz4".
-Unpack "boot.img.lz4" file.
-It's done, you now have the "boot.img" file you were looking for
and the last step there is unpack or extract the boot.img from the boot.img.lz4 file cause i just did it
Click to expand...
Click to collapse
Please tell me how to extract latest firmware of oppo f15 cph2001ex_11_C.47 which is in ozip format please help me
hank81 said:
I downloaded a random J6 firmware in another site.
You have to use 7zip software, it's free, much better than WinRar and supports tons of compression formats. Do these steps with 7zip:
-Unpack zip file.
-Rename the "*.tar.md5" to "*.tar".
-Open the ".tar" file and unpack "boot.img.lz4".
-Unpack "boot.img.lz4" file.
-It's done, you now have the "boot.img" file you were looking for
Enviado desde mi ONEPLUS A6013 mediante Tapatalk
Click to expand...
Click to collapse
For me, on my note 10 lite I have a problem with 7zip when i try to open the boot.img.lz4 it says that I dont have an app Installed to perform that action
hank81 said:
I downloaded a random J6 firmware in another site.
You have to use 7zip software, it's free, much better than WinRar and supports tons of compression formats. Do these steps with 7zip:
-Unpack zip file.
-Rename the "*.tar.md5" to "*.tar".
-Open the ".tar" file and unpack "boot.img.lz4".
-Unpack "boot.img.lz4" file.
-It's done, you now have the "boot.img" file you were looking for
Enviado desde mi ONEPLUS A6013 mediante Tapatalk
Click to expand...
Click to collapse
My Friend
I have same problem above: find boot.img of my device ( SM-G532MT).
I have a firmware downloaded from firmware.mobi. Works fine.
But, when decompressed, shows only the archives for instalation for Odin ( CSC, AP, etc... ). No boot.img under other format.
hank81 said:
I downloaded a random J6 firmware in another site.
You have to use 7zip software, it's free, much better than WinRar and supports tons of compression formats. Do these steps with 7zip:
-Unpack zip file.
-Rename the "*.tar.md5" to "*.tar".
-Open the ".tar" file and unpack "boot.img.lz4".
-Unpack "boot.img.lz4" file.
-It's done, you now have the "boot.img" file you were looking for
Enviado desde mi ONEPLUS A6013 mediante Tapatalk
Click to expand...
Click to collapse
Cloviscard said:
My Friend
I have same problem above: find boot.img of my device ( SM-G532MT).
I have a firmware downloaded from firmware.mobi. Works fine.
But, when decompressed, shows only the archives for instalation for Odin ( CSC, AP, etc... ). No boot.img under other format.
Click to expand...
Click to collapse
read this https://android.stackexchange.com/a/179248
and this https://forum.xda-developers.com/t/extracting-boot-img-from-stock-firmware.3909612/#post-79106875
I read carefully and...
Forgive me, but the article DON'T answer my question: How to extract the boot.img from a stockrom in .img format...
Cloviscard said:
I read carefully and...
Forgive me, but the article DON'T answer my question: How to extract the boot.img from a stockrom in .img format...
Click to expand...
Click to collapse
forgive me about that too
Samsung devices by default don't have .img ...
usually stockrom come as .zip then you need to extract it (use 7zip since winrar is not capable of extracting .lz4)
-Rename the "AP_xxx.tar.md5" to "AP_xxx.tar". <~ any similar file with AP from the start
-Open the "AP_xxx..tar" file and if you see boot.img extract "AP_xxx..tar" then grab boot.img it's done, you now have the "boot.img" file you were looking for
-some device have "boot.img.lz4" file. <~ use 7zip again to extract .lz4 file then grab boot.img it's done, you now have the "boot.img" file you were looking for
also it is stupid to grab your boot.img when you are Samsung since Odin only accept .md5 format (does Samsung have access to fastboot or they are stuck using Odin idk never has Samsung phone lmao)
also i forgot to say that you can actually patch "AP_xxx.tar" via Magisk itself so less work
For anyone else having trouble getting the boot.img, but on a custom recovery:
1. Go to recovery
2. Open recovery terminal
3. Enter:
Code:
dd if=/dev/block/bootdevice/by-name/boot of=/sdcard/boot.img
4. Press enter to confirm the command
5. Reboot to system
The boot.img is now on your SD card.
<deleted>
discovered id posted a duplicate link
Immortal68 said:
For anyone else having trouble getting the boot.img, but on a custom recovery:
1. Go to recovery
2. Open recovery terminal
3. Enter:
Code:
dd if=/dev/block/bootdevice/by-name/boot of=/sdcard/boot.img
4. Press enter to confirm the command
5. Reboot to system
The boot.img is now on your SD card.
Click to expand...
Click to collapse
Thank you very much for rally... very helpfull...
But still 1 question: if the referred boot.img was previously patched with another root aplication like suroot???
Related
Hello everyone,
I have a ZIP file downloaded using Kies and saved with Kies Patcher.
How can I create a ODIN package?
Link: Hotfile - JP5_JP4_JPP_TIM.zip
99 views & no reply? LOL.
@OP, Extract the contents using a unzipper like winrar or 7zip. tell me the contents.
Also tell me where you downloaded it from.
Curious aswel!!!
ragin said:
@OP, Extract the contents using a unzipper like winrar or 7zip. tell me the contents.
Also tell me where you downloaded it from.
Click to expand...
Click to collapse
Here's the content. I downloaded it from Kies. It's the official package of Froyo for italian branded TIM smartphones
Thank you!
Did you find a tar file in the zip? Use that
Sent from my GT-I9000 using XDA App
Its the file allready ready for Odin?? just put the file in PDA section and flash. Ihave seen many files that is just .zip files and u dont exract the .zip file because its ready for ODIN for flash
if you take a look at this official thread and the roms all of them I downloaded are just .zip file and ready to flash....please correct if im wrong.
http://forum.xda-developers.com/showthread.php?t=846913
The extracted files from zip u can use to flash in a iMac/macbook and heimdall app.
Why do i get a .tar file instead of a .img file when unzipping tar.gz files
I've tried winraw and bitzipper run as admin or not
The files I'm trying to unzip are these
http://forum.xda-developers.com/showthread.php?t=922870
I've been browsing these forums all day trying to find someone thats had the same problem, guess I'm out of my league here
Thanks in advance
*.tar.gz files are. Zipped (the .gz) and Tar'd so it's a 2 step process.
Basically TAR is a grouping of the files and GZ is the compression.
Check out 7-zip:
http://www.7-zip.org/
Un-Gzip the file you have a *.tar file. Un-Tar the file and you have all the files.
YES! Thanks
I had tried to winrar and bitzipper them twice but the file was useless
But with 7-zip Ive got a img. file, seems like all the instructions I've been following said uncompress but I guess the assume that you know to do both
Now I can get on with my next nightmare getting this NC back to stock
Thank you
So I tried to install Magisk via patching my boot image, but it failed, and I know from the instructions that I need my stock image rom to be a .img.tar if I want to flash through ODIN. However my stock boot image is a .tar.md5, and even trying to research the issue I just end up getting more confused. Does the rom need to end in .img? Can I convert/extract my .tar.md5 to an .img.tar(.md5?)? Is a .tar.md5 the same as a .tar (the hashing bit I understand) so that whenever someone refers to a .tar, either a .tar or a .tar.md5 is acceptable?
These Linux extensions driving me crazy and I really can't figure out what's what. It might be useful for the main Magisk thread to have a section that explains this kind of basic stuff for the less-savvy. If someone could straighten me out I would be highly appreciative, thanks in advance!
.tar.md5 is a text file which contains hash of the original file. It is used to check the integrity of files.
Compare the sizes of .tar and .tar.md5 files.
Sorry @Shished that has really not helped me at all, I'm just as confused as ever. Thank you for trying though. What is "the original file"? What am I comparing, should I have some other kind of file here? Can I get the original file out of my .tar.md5? I have one file that I believe is a factory boot image and it's a .tar.md5. Believe me when I say I am a complete noob on this and I need the basics of the basics.
Edit: The file originally came as a zip, is THAT the original file?
screenshot of files: https ibb.co/fas1o7
Questioneer said:
So I tried to install Magisk via patching my boot image, but it failed, and I know from the instructions that I need my stock image rom to be a .img.tar if I want to flash through ODIN. However my stock boot image is a .tar.md5, and even trying to research the issue I just end up getting more confused. Does the rom need to end in .img? Can I convert/extract my .tar.md5 to an .img.tar(.md5?)? Is a .tar.md5 the same as a .tar (the hashing bit I understand) so that whenever someone refers to a .tar, either a .tar or a .tar.md5 is acceptable?
These Linux extensions driving me crazy and I really can't figure out what's what. It might be useful for the main Magisk thread to have a section that explains this kind of basic stuff for the less-savvy. If someone could straighten me out I would be highly appreciative, thanks in advance!
Click to expand...
Click to collapse
.tar is the compression used for Samsung. If you extract the .tar, you will find an .img in it. A .tar.md5 is just the .tar with the hash file appended.
madbat99 said:
.tar is the compression used for Samsung. If you extract the .tar, you will a .img in it.
Click to expand...
Click to collapse
Does it mean that .img file can always be extracted from a .tar or .tar.md5 file?
A S Ovin said:
Does it mean that .img file can always be extracted from a .tar or .tar.md5 file?
Click to expand...
Click to collapse
There will likely be several .img files inside of it.
I'm trying to install Magisk through the patched method on my N9600. So far I have
1. Downloaded stock ROM
2. Renamed AP file to .tar
3. Extracted with WinRar
4. Located the boot.img.lz4 file
I then tried to extract that with WinRar and got a message saying file was corrupted.
Is the file really corrupted? Becaus eI have in fact flashed my Note 9 via Odin with that particular stock ROM. Can anyone advise me further?
eliotargy said:
I then tried to extract that with WinRar and got a message saying file was corrupted.
Is the file really corrupted? Can anyone advise me further?
Click to expand...
Click to collapse
Usually the file is corrupted if the file comes from an incomplete download. Try downloading a new file before a retry
Snowby123 said:
Usually the file is corrupted if the file comes from an incomplete download. Try downloading a new file before a retry
Click to expand...
Click to collapse
My other implied question was: Did I do everything right?
eliotargy said:
I'm trying to install Magisk through the patched method on my N9600. So far I have
1. Downloaded stock ROM
2. Renamed AP file to .tar
3. Extracted with WinRar
4. Located the boot.img.lz4 file
I then tried to extract that with WinRar and got a message saying file was corrupted.
Is the file really corrupted? Becaus eI have in fact flashed my Note 9 via Odin with that particular stock ROM. Can anyone advise me further?
Click to expand...
Click to collapse
search for lz4 on either xda or google.
( you need to unpack it)
eliotargy said:
I'm trying to install Magisk through the patched method on my N9600. So far I have
1. Downloaded stock ROM
2. Renamed AP file to .tar
3. Extracted with WinRar
4. Located the boot.img.lz4 file
I then tried to extract that with WinRar and got a message saying file was corrupted.
Is the file really corrupted? Becaus eI have in fact flashed my Note 9 via Odin with that particular stock ROM. Can anyone advise me further?
Click to expand...
Click to collapse
Hey friend, did you manage to accomplish this? Do you still trip the knox this way? I am just about to try it on a brand new Note 9, with no previous Samsung rooting experience.
Thanks
Why are you trying to patch? Please follow my guide for rooting the N9600.
christis said:
Hey friend, did you manage to accomplish this? Do you still trip the knox this way? I am just about to try it on a brand new Note 9, with no previous Samsung rooting experience.
Thanks
Click to expand...
Click to collapse
No luck. Also no response to my post.
zxzxzxzxzxzxzxzxzx said:
Why are you trying to patch? Please follow my guide for rooting the N9600.
Click to expand...
Click to collapse
Where is your guide?
Again, where is your guide that you speak of?
eliotargy said:
No luck. Also no response to my post.
Click to expand...
Click to collapse
I see. In the meantime I have managed to succeed. Rooted an N960F/D with patching the boot image. I know the N9600 is a different beast, but this is NOT a root guide!!!!!!!!.
For step #5, Winrar is no good. You have to use lz4, but is a pain. Personally I used a special version of 7z which includes lz4 codec and is easier and very usefull in all the steps. The link is
https://github.com/mcmilk/7-Zip-zstd/releases (choose x64 or x86 depending on your Windows version).
After this, I cannot remember the exact steps. As far as I can racall, I think I patched it with Magisk (follow the Magisk guide) first, and then I had to retrieve the patched image and compress it again (to .tar???) with the same version of 7z.
7z itself can fully replace Winrar in the whole process. In the initial firmware zip file extraction, in the extraction of the AP md5 file (no renaming necessary), in lz4 extraction of the boot file, and finally in the patched img file compression back to tar. One for all tool (use the 7zFM (file manager) shortcut and the Add or Extract buttons).
And to answer my own question: Finallly, in order to install the final patched boot image via Odin, the bootloader HAS to be unlocked, so Knox is tripped anyway. No problem for me though, since I managed to run SHealth, Gpay and Spay (the latter via the phone - watch (Gear S) connection though, not as a stand-alone). And I ensured that where I live, it is not going to affect my warranty as long as is a hardware problem.
CAUTION: That was for N960F/D and is NOT a root guide anyway.
christis said:
I see. In the meantime I have managed to succeed. Rooted an N960F/D with patching the boot image. I know the N9600 is a different beast, but this is NOT a root guide!!!!!!!!.
For step #5, Winrar is no good. You have to use lz4, but is a pain. Personally I used a special version of 7z which includes lz4 codec and is easier and very usefull in all the steps. The link is
https://github.com/mcmilk/7-Zip-zstd/releases (choose x64 or x86 depending on your Windows version).
After this, I cannot remember the exact steps. As far as I can racall, I think I patched it with Magisk (follow the Magisk guide) first, and then I had to retrieve the patched image and compress it again (to .tar???) with the same version of 7z.
7z itself can fully replace Winrar in the whole process. In the initial firmware zip file extraction, in the extraction of the AP md5 file (no renaming necessary), in lz4 extraction of the boot file, and finally in the patched img file compression back to tar. One for all tool (use the 7zFM (file manager) shortcut and the Add or Extract buttons).
And to answer my own question: Finallly, in order to install the final patched boot image via Odin, the bootloader HAS to be unlocked, so Knox is tripped anyway. No problem for me though, since I managed to run SHealth, Gpay and Spay (the latter via the phone - watch (Gear S) connection though, not as a stand-alone). And I ensured that where I live, it is not going to affect my warranty as long as is a hardware problem.
CAUTION: That was for N960F/D and is NOT a root guide anyway.
Click to expand...
Click to collapse
Mine falls at patching with Magisk. N9600.
hi, i have a Tgz fastboot rom but can't locate in miflash tool and get error while extracting it with winrar and 7zip. Help please
Sent from my SM-G950F using Tapatalk
ishaqtkr said:
hi, i have a Tgz fastboot rom but can't locate in miflash tool and get error while extracting it with winrar and 7zip. Help please
Click to expand...
Click to collapse
What error are you getting, maybe you need to download the ROM again as it's become corrupted when you downloaded it the first time.
If using 7zip you'll need to extract it twice. The first time uncompresses the file, after which you should have a single file. Sometimes this file won't have a file extension, so in this case rename it and add .tar on to the end. This is now an uncompressed archive file, so open it up in 7zip and extract the contents. After this you should have a folder containing some .bat files and another folder which contains a lot of image files. It is this top level folder you need to select in the Mi Flash Tool.
Robbo.5000 said:
What error are you getting, maybe you need to download the ROM again as it's become corrupted when you downloaded it the first time.
If using 7zip you'll need to extract it twice. The first time uncompresses the file, after which you should have a single file. Sometimes this file won't have a file extension, so in this case rename it and add .tar on to the end. This is now an uncompressed archive file, so open it up in 7zip and extract the contents. After this you should have a folder containing some .bat files and another folder which contains a lot of image files. It is this top level folder you need to select in the Mi Flash Tool.
Click to expand...
Click to collapse
You're right, i had to download again.
Sent from my Mi 9T Pro using Tapatalk
Sometimes you need to extract the file twice