How do you extract system image file from Oxygen OS ZIP file - OnePlus 5T Questions & Answers

I want to flash the system image of oxygen is on my OnePlus 5T
I have downloaded the latest beta zip file
From that zip is there any way to extract the system image file from the zip file?
Help Appreciated!!

Flash the zip in your recovery
Sent from my ONEPLUS A5010 using Tapatalk

Dugaldrob said:
Flash the zip in your recovery
Click to expand...
Click to collapse
No I want just the system.img file for my own use from the ZIP

Related

[Q] Why does the boot.img have to be present in the .zip file?

Why does the boot.img have to be present in the .zip file? I take the boot.img out of the zip file and
fastboot flash boot boot.img
Click to expand...
Click to collapse
it anyway, so why is it in the zip file?
Is the boot.img by the way the kernel?
zettez said:
Why does the boot.img have to be present in the .zip file? I take the boot.img out of the zip file and
it anyway, so why is it in the zip file?
Is the boot.img by the way the kernel?
Click to expand...
Click to collapse
Boot.img is inside zip because same source build sripts are used for devices with s-off. So...on s-off devices U only have to flash rom.zip and it's installing boot.img also.
icke said:
Boot.img is inside zip because same source build sripts are used for devices with s-off. So...on s-off devices U only have to flash rom.zip and it's installing boot.img also.
Click to expand...
Click to collapse
And because my One X has s-on that means I have to install the contents of the zip first and then flash because of the s-on security preventing installation from within the zip file?
zettez said:
And because my One X has s-on that means I have to install the contents of the zip first and then flash because of the s-on security preventing installation from within the zip file?
Click to expand...
Click to collapse
That's right...as long as your bootloader is saying s-on u've to flash boot.img via fastboot.
icke said:
That's right...as long as your bootloader is saying s-on u've to flash boot.img via fastboot.
Click to expand...
Click to collapse
So I could basically just make a zip file with the manifest and system folder and exclude the boot.img from there?
zettez said:
So I could basically just make a zip file with the manifest and system folder and exclude the boot.img from there?
Click to expand...
Click to collapse
What is the target to doing this? What are U meaning with "just make a zip file"?
zettez said:
So I could basically just make a zip file with the manifest and system folder and exclude the boot.img from there?
Click to expand...
Click to collapse
You cant 'just make' a zip file.. you would have to repack and sign the zip again. Better would be that the boot.img stays where it is.
Sent from my unlocked HTC One X using XDA premium.
icke said:
What is the target to doing this? What are U meaning with "just make a zip file"?
Click to expand...
Click to collapse
Based on our conversation I have come to this conclusion.
S-OFF: You need not use fastboot to flash a boot.img. When you install a ROM from a zip file it will automatically take the boot.img and put it in the right place.
S-ON: You need to use fastboot to flash a boot.img. When you install a ROM from a zip it will not install the boot.img because it is protected by the system (read-only or something) and you then need to implement one more step, the
fasboot flash boot boot.img
Click to expand...
Click to collapse
code. What I wanted to confirm is if I have an S-ON phone I need not have the boot.img in the zip file? I can just flash it after I have installed the manifest/system folder from the zip file?
anks257 said:
You cant 'just make' a zip file.. you would have to repack and sign the zip again. Better would be that the boot.img stays where it is.
Click to expand...
Click to collapse
But is it possible on an S-ON phone to skip the boot.img in the zip file and only go with the manifest and system folder?
Yes, you could delete the boot.img from the zip file if you really wanted. It won't make any difference as it isn't being written anyway (you might also want to modify the updater script so it's not referencing something you've removed).

How can i room this files?

Hi
Today i have download this room from here : http://forum.xda-developers.com/showthread.php?t=2340562 (I9082XXUBMI1 rooted)
but the file type is zip and there is inside the zip file (META-INF,system,boot.img)
now how can i install it?
do i change the zip file to tar.md5 and install it from download mode and Odin or from the recovery?
Thanks
IRAQIGHOST said:
Hi
Today i have download this room from here : http://forum.xda-developers.com/showthread.php?t=2340562 (I9082XXUBMI1 rooted)
but the file type is zip and there is inside the zip file (META-INF,system,boot.img)
now how can i install it?
do i change the zip file to tar.md5 and install it from download mode and Odin or from the recovery?
Thanks
Click to expand...
Click to collapse
It's a flashable zip, boot into recovery, perform a wipe data/cache/dalvik cache and flash this
If you go into bootloop perform a wipe again after install :good:

I need stock boot image for A3 2017 (SM-A320F)

Hi,
I just unrooted my phone. Now it says i need to flash stock boot.img to complete unrooting. But i have no clue what it is and where to find it.
Anyone?
1. Download your firmware on a desktop.
2. Extract AP.
3. Using 7 ZIP modded extract "boot.img.lz4" from AP.
4. Open "boot.img.lz4" with the same app and extract "boot.img". Then flash it into TWRP.
Pagan_Serpent said:
1. Download your firmware on a desktop.
2. Extract AP.
3. Using 7 ZIP modded extract "boot.img.lz4" from AP.
4. Open "boot.img.lz4" with the same app and extract "boot.img". Then flash it into TWRP.
Click to expand...
Click to collapse
thx buddy, but link doesnt work

[SOLVED] Trying to get stock recovery back

Hi, I flashed TWRP to be able to install magisk on my friend's Honor 7x (BND-L21 C432) and now that magisk is flashed and configured I want to go back to the stock recovery. I've downloaded the update.zip with the Firmware Finder app, and I've extracted the recovery_ramdisk.img from the UPDATE.APP file.
But once flashed (with fastboot) I can't access it, it gives me ERROR MODE, like if the img was invalid.
Any help?
Thanks!
Did you download and flashed the correct build file? Which recovery you flashed?
shashank1320 said:
Did you download and flashed the correct build file? Which recovery you flashed?
Click to expand...
Click to collapse
I was using correct version, but I wasn't using HuaweiUpdateExtractor. After using it to get the img it worked well.
Thanks!
eXtremeDevil said:
Hi, I flashed TWRP to be able to install magisk on my friend's Honor 7x (BND-L21 C432) and now that magisk is flashed and configured I want to go back to the stock recovery. I've downloaded the update.zip with the Firmware Finder app, and I've extracted the recovery_ramdisk.img from the UPDATE.APP file.
But once flashed (with fastboot) I can't access it, it gives me ERROR MODE, like if the img was invalid.
Any help?
Thanks!
Click to expand...
Click to collapse
this install zip, should restore the recovery-from-boot.p file, the file that causes stock recovery to be replaced. I have not confirmed on this device but it is a generic solution that should work.
mrmazak said:
this install zip, should restore the recovery-from-boot.p file, the file that causes stock recovery to be replaced. I have not confirmed on this device but it is a generic solution that should work.
Click to expand...
Click to collapse
Thanks anyway, I was able to *correctly* extract the img file
What does that file exactly? Is there a backup of the recovery on the phone?? I assuming we're talking about normal recovery, not the second eRecovery thing, right?
eXtremeDevil said:
Thanks anyway, I was able to *correctly* extract the img file
What does that file exactly? Is there a backup of the recovery on the phone?? I assuming we're talking about normal recovery, not the second eRecovery thing, right?
Click to expand...
Click to collapse
Stock Android has a feature to make a recovery image from the boot.img. By checking the contents of the recovery partition and comparing a checksum. When the sum does not match, the file "recovery_from_boot.p" takes over and builds it's own recovery image.
When you install twrp and "swipe to allow system modification" that file gets renamed to end with ".bak"
This zip file verifies the recovery script is on the phone e, and if it is, it will remove the .bak extension . That makes the system .restore (make) stock recovery on the next boot up
Thanks for the info!

Help with rooting my phone

Hey everyone, I'm trying to root my Xiaomi Mi a2 lite without twrp since, if i understand correctly, it needs the data partition to be formatted as it cant decrypt it, and I don't really need it anyway. I wanted to use Magisk manager to patch a boot image and flash it to get root, but the app explicitly asks for .img files. I've been looking everywhere and I can only find zip archives or .tgz files of my firmware. I'd appreciate any help, and btw my build number is 11.0.21.0
Ame76 said:
Hey everyone, I'm trying to root my Xiaomi Mi a2 lite without twrp since, if i understand correctly, it needs the data partition to be formatted as it cant decrypt it, and I don't really need it anyway. I wanted to use Magisk manager to patch a boot image and flash it to get root, but the app explicitly asks for .img files. I've been looking everywhere and I can only find zip archives or .tgz files of my firmware. I'd appreciate any help, and btw my build number is 11.0.21.0
Click to expand...
Click to collapse
A TGZ file is a TAR Archive file that has been compressed using Gnu Zip (gzip).
You can uncompress tgz files using 7-zip:
7-Zip
7-zip.org
VD171 said:
A TGZ file is a TAR Archive file that has been compressed using Gnu Zip (gzip).
You can uncompress tgz files using 7-zip:
7-Zip
7-zip.org
Click to expand...
Click to collapse
oooh thank you so much, feeling pretty stupid rn
Obviously, first you need unlocked bootloader, or your device will get bricked.
1. Download the full stock rom.
2. Extract these two files: boot.img and vbmeta.img.
3. COMPRESS those two files to TAR. (Attention: TAR and NOT tgz.)
4. Open the magisk app and click on "install to file".
5. Select the COMPRESSED TAR file and wait until it finish.
6. Open the folder "Downloads" and uncompress the file magisk_patched.tar to get the patched boot.img and the patched vbmeta.img.
7. Flash the patched boot.img and the patched vbmeta.img. (You need to flash patched vbmeta because vbmeta verifies if any partition was changed.)
Done, you are rooted.
Warning: magisk app will ignore if you try to patch ONLY the vbmeta.img, you need to patch vbmeta.img together boot.img compressed in only one file.
You can use 7-Zip: https://7-zip.org
VD171 said:
Obviously, first you need unlocked bootloader, or your device will get bricked.
1. Download the full stock rom.
2. Extract these two files: boot.img and vbmeta.img.
3. COMPRESS those two files to TAR. (Attention: TAR and NOT tgz.)
4. Open the magisk app and click on "install to file".
5. Select the COMPRESSED TAR file and wait until it finish.
6. Open the folder "Downloads" and uncompress the file magisk_patched.tar to get the patched boot.img and the patched vbmeta.img.
7. Flash the patched boot.img and the patched vbmeta.img. (You need to flash patched vbmeta because vbmeta verifies if any partition was changed.)
Done, you are rooted.
Warning: magisk app will ignore if you try to patch ONLY the vbmeta.img, you need to patch vbmeta.img together boot.img compressed in only one file.
You can use 7-Zip: https://7-zip.org
Click to expand...
Click to collapse
thanks dude, you're really helping me out with this
VD171 said:
Obviously, first you need unlocked bootloader, or your device will get bricked.
1. Download the full stock rom.
2. Extract these two files: boot.img and vbmeta.img.
3. COMPRESS those two files to TAR. (Attention: TAR and NOT tgz.)
4. Open the magisk app and click on "install to file".
5. Select the COMPRESSED TAR file and wait until it finish.
6. Open the folder "Downloads" and uncompress the file magisk_patched.tar to get the patched boot.img and the patched vbmeta.img.
7. Flash the patched boot.img and the patched vbmeta.img. (You need to flash patched vbmeta because vbmeta verifies if any partition was changed.)
Done, you are rooted.
Warning: magisk app will ignore if you try to patch ONLY the vbmeta.img, you need to patch vbmeta.img together boot.img compressed in only one file.
You can use 7-Zip: https://7-zip.org
Click to expand...
Click to collapse
Hey i seem to be having a problem, i extracted the .tar file and i can see the boot.img file but i can't find the vbmeta.img one
Ame76 said:
Hey i seem to be having a problem, i extracted the .tar file and i can see the boot.img file but i can't find the vbmeta.img one
Click to expand...
Click to collapse
Actually i've looked around and everyone only shares the boot file, maybe flashing vbmeta is unnecessary for this device?
Maybe.

Categories

Resources