Extract stock kernel from OTA's or Full Images - Google Pixel 2 XL Questions & Answers

Does anyone know how to extract the stock kernel from the OTA/Full images downloaded from Google's servers for our device? Additionally, is there a way to make it flashable zip through TWRP? Thanks.
Sent from my Pixel 2 XL using Tapatalk

andrewjt19 said:
Does anyone know how to extract the stock kernel from the OTA/Full images downloaded from Google's servers for our device? Additionally, is there a way to make it flashable zip through TWRP? Thanks.
Click to expand...
Click to collapse
Use a program like 7zip or Winzip to extract the factory image. Then, you'll see another large zip, extract that one too. Then inside you'll see the boot.img which is the kernel and recovery in one. Take that boot.img and put it on your internal storage. Boot into twrp, select install, then select image on the bottom right, then go to where you put the boot.img, tap it, then select the boot partition to flash it to. Takes about a second and it's done. Now your on stock kernel again. Keep in mind, that you'll have to flash the twrp.zip again when your done. Also, be sure to remove all lock screen security before you start all of this. I'm sure you know about that already though ?

Related

[Q] [q] rom installation aborted

.HEY everyone I have my Samsung galaxy nexus rooted ..I tried to unroot it But couldnt succeeded in it I have rom manager
I did the following steps
1..flash clockwork recovery mod
2..backup my phone data
3..install a rom from sd card.. I download the tagju -maguro factory image from Google developers
4..extract the files in a folder And copied that folder in my phone internal storage.
5..when the option *install rom from sd card came up I located the file.. But in 2 seconds installation starter And installation aborted..
I tried figuring out What's going wrong the whole Night But couldn't succeed..
Hope I explained my problem... do let me know of anyone up with it's solution.
Thanks​
the factory image from google is a img file you can only flash zip files in recovery... you have to flash the img file in fastboot mode, follow efrants guide to go back to stock
http://forum.xda-developers.com/showthread.php?t=1626895
ROM installation aborted
k786 said:
the factory image from google is a img file you can only flash zip files in recovery... you have to flash the img file in fastboot mode, follow efrants guide to go back to stock
http://forum.xda-developers.com/showthread.php?t=1626895
Click to expand...
Click to collapse
thats too lengthy and complicated ...
i have downloaded the factory rom of 190 mb ... and its a zip file i have extracted the files as well
manky15 said:
thats too lengthy and complicated ...
i have downloaded the factory rom of 190 mb ... and its a zip file i have extracted the files as well
Click to expand...
Click to collapse
oh. when you said you got it from the google site i thought you downloaded the img file but if you got the zip from the dev section just flash it in recovery, no need to extract it..
ROM installation aborted
k786 said:
oh. when you said you got it from the google site i thought you downloaded the img file but if you got the zip from the dev section just flash it in recovery, no need to extract it..
Click to expand...
Click to collapse
u mean i put that zip file as it is in my phone internal memory ??
then where am i going wrong bro ?
manky15 said:
u mean i put that zip file as it is in my phone internal memory ??
then where am i going wrong bro ?
Click to expand...
Click to collapse
4..extract the files in a folder And copied that folder in my phone internal storage.
Click to expand...
Click to collapse
that is wrong you are not supposed to extract the zip file
ROM installation aborted
k786 said:
that is wrong you are not supposed to extract the zip file
Click to expand...
Click to collapse
then whats the next thing ??
i read somewhere we have to extract the files
i can see the zip file in fastboot mode
but it shows installation started and then installation aborted
what shouldi do ?
Can you link to the thread you downloaded from? It will help us help you.
Sent from my Galaxy Nexus using Tapatalk 2
manky15 said:
thats too lengthy and complicated ...
i have downloaded the factory rom of 190 mb ... and its a zip file i have extracted the files as well
Click to expand...
Click to collapse
too long and complicated? really?
it boils down to a couple commands
fastboot flash boot boot.img
fastboot flash system.img
fastboot flash userdata.img
fastboot flash recovery.img
fastboot flash radio radio.img
fastboot flash bootloader bootloader.img
if that is too difficult, you need to never root/rom your phone.
Bro actually a friend of mine rooted my phone And hes overseas now.. thats why I'm asking for help... could u tell me How to flash these images?? Plzzzz
Sent from my Galaxy Nexus using xda app-developers app
manky15 said:
Bro actually a friend of mine rooted my phone And hes overseas now.. thats why I'm asking for help... could u tell me How to flash these images?? Plzzzz
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
1. You haven't explained where you got the file, and I'm still not sure whether you have a flashable zip or an img.
2. If an img, the post above yours explained generally how to flash the images, and efrant's guide linked a couple posts above that is quite clear as well. In short, put your phone in fastboot, connect to computer, and fastboot flash the relevant files from terminal.
3. If a flashable zip, don't unzip it; just wipe and flash the entire zip from recovery.
ROM installation aborted
bananagranola said:
1. You haven't explained where you got the file, and I'm still not sure whether you have a flashable zip or an img.
2. If an img, the post above yours explained generally how to flash the images, and efrant's guide linked a couple posts above that is quite clear as well. In short, put your phone in fastboot, connect to computer, and fastboot flash the relevant files from terminal.
3. If a flashable zip, don't unzip it; just wipe and flash the entire zip from recovery.
Click to expand...
Click to collapse
i thought to give you guys a better views from this...
hope it would have helped u guys a bit atleast
thanks
do revert me back
manky15 said:
... could u tell me How to flash these images??
Click to expand...
Click to collapse
"too lenghty and complicated"
Use mskips toolkit 10.1.. And flash factory IMG with that.. It will dl it for u
http://forum.xda-developers.com/showthread.php?p=20494965
I no I no.. U should really learn to do it manually, but F that I'm lazy
Sent from my Galaxy Nexus using Tapatalk 2
manky15 said:
i thought to give you guys a better views from this...
hope it would have helped u guys a bit atleast
thanks
do revert me back
Click to expand...
Click to collapse
You don't even have a custom recovery; flash stock images so that we can wrap this up.
sent from my Google Galaxy Nexus
Looks like a bad zip file or its a non flashable zip file.
Sent from my Galaxy Nexus using xda premium
Hello,
From what i saw in your attachment, I can tell that you are using stock recovery. So I suggest you to google how to install Clockworkmod touch recovery.
Steps from wiki:
Download "Rom Manager" from Google Play, use the app to download the correct version of CWM for your phone (update.zip file), reboot into the stock recovery and choose the option "re-install package" TWO TIMES to temporarily load CWM from the update.zip file. This file needs to remain on the phone to load CWM when needed each time. DO NOT DELETE!
Then boot into Recovery and install your rom (zip file)
Good luck,
zepius post #9. You could do fastboot boot "cwm.img", substituting the actual filename for "cwm.img" without the parentheses, then flash the .zip. Also, depending on what rom you're on, you'll probably need a factory reset first. Looks like you'll need to consult efrant's post to learn fastboot either way.
Guys, OP wants to unroot/return to stock. Instructions were already given.
sent from my Google Galaxy Nexus

[Q] restoring just the kernel

Question, if you are mucking around with kernels and want to restore to stock without doing a full TWRP nandroid restore, can you just restore the boot partition?
Alternatively, how does one pull just the stock kernel (including ramdisk) from the factory image? In the past with other brands its been more convoluted e.g. with HTC I remember in addition to flashing the stock kernel in zip you had to push something in fastboot as well (the ramdisk). Unfortunately I can't find just the stock kernel file(s) in this forum hence asking if it can be pulled from the factory image
Thanks in advance
wintermute000 said:
Question, if you are mucking around with kernels and want to restore to stock without doing a full TWRP nandroid restore, can you just restore the boot partition?
Alternatively, how does one pull just the stock kernel (including ramdisk) from the factory image? In the past with other brands its been more convoluted e.g. with HTC I remember in addition to flashing the stock kernel in zip you had to push something in fastboot as well (the ramdisk). Unfortunately I can't find just the stock kernel file(s) in this forum hence asking if it can be pulled from the factory image
Thanks in advance
Click to expand...
Click to collapse
Hi
If you use Nexus Root Toolkit you can start the program and exists the option Launch and there exists restore stock kernel. I think it can solve your problem but first confirm.
There are stock JWR66N and JSS15J kernels attached to this post:
http://forum.xda-developers.com/showthread.php?t=2415497
boot into bootloader
fastboot flash boot boot.img
done
Need jss15q
Sent from my C6603 using Tapatalk 4
wintermute000 said:
Need jss15q
Sent from my C6603 using Tapatalk 4
Click to expand...
Click to collapse
It is there now.
http://forum.xda-developers.com/showthread.php?t=2415497
That are only .img files and not zImage files.
So only with PC or MAC flashable.
TDO said:
That are only .img files and not zImage files.
So only with PC or MAC flashable.
Click to expand...
Click to collapse
I am not sure what your idea of a zImage file is. These are compressed kernels with compressed root filesytems, which is what a zImage is.
You can flash these in fastboot over a PC or you can use dd to restore the partition while in android. Just make sure you know what you are doing in the latter case and don't overwrite the wrong partition or you can have big issues.
sfhub said:
I am not sure what your idea of a zImage file is. These are compressed kernels with compressed root filesytems, which is what a zImage is.
Click to expand...
Click to collapse
I know what a zImage is and this files can easily be flashed via Recovery (TWRP, ...)
If you know a similar method for .img files you can share it.
TDO said:
I know what a zImage is and this files can easily be flashed via Recovery (TWRP, ...)
If you know a similar method for .img files you can share it.
Click to expand...
Click to collapse
If you compare the md5 of a TWRP backup of the stock kernel against the system.img in my posts, they will be exactly the same. I didn't use TWRP, but used the same method as TWRP. Thus if your definition of a zImage is that it can easily be flashed via Recovery (TWRP, ...)
rename system.img to boot.emmc.win
copy into TWRP dated backup folder
restore in TWRP, check boot, uncheck everything else, disable MD5
If you want to do md5
md5 boot.emmc.win > boot.emmc.win.md5
echo " boot.emmc.win" >> boot.emmc.win.md5

How to get a boot.img

Hello all,
I would like to know how to get the boot.img without any root. Because there is a way to patch the boot.img with Magisk.
To install Magisk via this new method, simply download and install the latest Magisk Manager APK. You’ll obviously need your device’s stock boot image already downloaded for this method. Then launch the app and tap on the Install button at the bottom. Select Install on the pop-up dialog that appears and then select Patch Boot Image File. You’ll then be redirected to the document viewer where you can select your stock boot image file. If you wish to change the boot image format, you can do so in Settings > Patched Boot Output Format.
Maybe this is a option if we can have a boot.img and patch it with Magisk till we have some custom roms and twrp for the Razer Phone
Nobody?
Ok @admin delete this thread pls
steviegolf said:
Nobody?
Ok @admin delete this thread pls
Click to expand...
Click to collapse
Wait until factory images are out
I think they would have to release the stuff.. How else are people supposed to recover from a botched update? I can't imagine razer just having everyone rma stuff in that scenario. That would be a huge financial loss, even more so than the badly flashed units surfacing in the rma process.
moved to questions section.
All hail bacon.

Moto E4 Plus Stock Images (owens NPR26.58-25)

Here's a link to the important stock stuff for the Qualcomm Moto E4 Plus. Specifically the boot.img, recovery.img, system.img, fsg.bin, logo.bin, and modem.bin.
I'm too new to post links, but just go to tinyurl dot com /yauppmbc
I'm not 100% sure if system.img will flash correctly, but using
Code:
dd if=/sdcard/system.img of=/dev/block/mmcblk0p53
should work, just remember to put the system.img in /sdcard first. Also included in the zip is the partition mappings. I used dd to yank them from the phone while booted into TWRP. Huge shout out to @jasonmerc for walking me through this.
My build number is NPR26.58-25
Clickable link here
Can I just flash the zip
On my phone from TWRP ?
Miklalo said:
On my phone from TWRP ?
Click to expand...
Click to collapse
TWRP might work, but you need to set it to image flashing rather than zip flashing
jasonmerc said:
TWRP might work, but you need to set it to image flashing rather than zip flashing
Click to expand...
Click to collapse
I downloaded the zip twice and both times was unable to extract the zip file. Do I need a specific app or program to extract this to access the .img files in it?
Sent from my XT1775 using XDA Premium HD app
glockman4519 said:
I downloaded the zip twice and both times was unable to extract the zip file. Do I need a specific app or program to extract this to access the .img files in it?
Sent from my XT1775 using XDA Premium HD app
Click to expand...
Click to collapse
It's corrupted somehow. It's just a normal zip, nothing special should be needed.
aj2333 said:
It's corrupted somehow. It's just a normal zip, nothing special should be needed.
Click to expand...
Click to collapse
Thanks for letting me know, I'll see if I can reach maerk and tell him to make a new zip
Great, I made a build of Resurrection Remix 7.1.2 for the XT-1775 (Owens) and have no data. I noticed that there are no APN's in the carrier section under settings. It also has no way to add in any new APN's. My guess is that I will have to flash the modem.img and maybe a few more to get this working again. I'm hoping that I don't have to go back to completely stock...lol...

how to update without losing root?

I'm using stock oos and root with magisk
Everytime I get an ota it removes root.
Does anyone have any ideas
It happens because if you choose to update over System Settings it somehow knows that your phone is rooted / has an unlocked BL.
Therefore, Oneplus only offers the full Image. There is a way to inspect this full Image.
The way I'm doing it whenever I'm updating is:
download the newest FW over PC, inspect zip... delete something that says "recovery" on it.
Because that is the one, that will return you to stock recovery, instead of keeping TWRP installed.
After flashing that zip; TWRP should still be available for you, from there you can re-flash the magisk zip and you should all be rooted then.
moeq123 said:
It happens because if you choose to update over System Settings it somehow knows that your phone is rooted / has an unlocked BL.
Therefore, Oneplus only offers the full Image. There is a way to inspect this full Image.
The way I'm doing it whenever I'm updating is:
download the newest FW over PC, inspect zip... delete something that says "recovery" on it.
Because that is the one, that will return you to stock recovery, instead of keeping TWRP installed.
After flashing that zip; TWRP should still be available for you, from there you can re-flash the magisk zip and you should all be rooted then.
Click to expand...
Click to collapse
After that do you only loose root? Is your data, apps, customizations still there? Other than magisk root what else got deleted? Please answer i wanna do it your way.
Also where do you download FW file?
nadiration said:
After that do you only loose root? Is your data, apps, customizations still there? Other than magisk root what else got deleted? Please answer i wanna do it your way.
Also where do you download FW file?
Click to expand...
Click to collapse
Firmwares should be available on manufactures site.
For Oneplus 5T it should be that link: https://downloads.oneplus.com/devices/oneplus-5t/
Honestly, I can't tell what's inside These files; as I don't have one of them at Hand; and I'm not allowed to download and open such files here at work.
If you want I can expect them later after work (4 hours or something) or you download one and post me the Folder tree as a text here.
I know, that if you remove this one recovery file/Folder/entry that it passes the flashing of the recovery Partition.
If I recall correctly (from my Knowledge of devices and roms other than op5t) inside of These downloaded firmwares there should be a file called "Image.zip"
inside that Image.zip there should be Folders or files like "boot", "recovery" "system Images", and "userdata".
Delete recovery and userdata, repack it to "Image.zip" and repack that zip to the previously downloaded zip...
flashing that pack should prevent you from your data being wiped.
I don't know if magisk will work without flashing magisk.zip over.
Before you do all that stuff, back up your data, try it, and please - let us know if that has worked.
[Edit]: TL;DR - In the end, it just wipes your data and installs another recovery because it has been told to do so inside of these Firmware Images.
Download that Firmware, inspect everything, and delete stuff that tells him to do stuff that you don't like.

Categories

Resources