swap kernels - Google Pixel 2 XL Questions & Answers

Im using the ElementalX Kernel but its causing issues for my phone. I have it rooted with magisk too. how can i either go back to the stock kernel, or a different custom one?

Just download the factory image, unzip it, open the system.img and extract the stock boot.img
Then go into fastboot and flash the stock boot image to both slots and reboot.
This restores your stock kernel, and you're done if you just wanted to go back to stock. Now you can re-root it, and/or install another kernel.
You need to be stock before installing another kernel, so you have an untouched ramdisk.

id need to do it for the factory image i used for this one right? (in my case, the may 2020 image),

hey so, i wasnt sure what you meant by opening the system.img but i flashed the boot.img to both slots and rebooted to the slot i was originally using with bliss rom, and now it wont boot..

Related

Flashing

Can I flash CM boot.img with this?
https://play.google.com/store/apps/details?id=de.mkrtchyan.recoverytools
Also do the new nightlies have TWRP or CWM?
Or this:
https://play.google.com/store/apps/details?id=com.cgollner.flashify
No. And even if you could, your phone would refuse to boot until you flashed a stock kernel again (in case you have locked bootloader, and probably have -- otherwise you would just flash the desired kernel directly through fastboot)...

[Q] About 3rd party recoveries and 5.0

I noticed that when using the last dev preview for my N7 2013, it keeps killing TWRP and putting back the stock recovery. Now the final release does this. If I flash TWRP again, it just gets overwritten after a normal boot then back to recovery.
Why? Is there a way to stop this? This is the first time I've dealt with this. Nothing else does this to me. I haven't found a clear answer yet to this while searching this site or others.
I solved this by flashing a custom kernel, in my case, ElementalX 3.02.
I downloaded the zip to the tablet, rebooted to fastboot, wrote the recovery, then booted into the recovery (just after flashing it, don't boot system), flashed custom kernel, and upon booting system it stopped overwriting the recovery partition with stock recovery.
It seems the stock kernel overwrites the recovery partition if it has been modified. Correct me if I'm wrong!
rguilamo said:
I solved this by flashing a custom kernel, in my case, ElementalX 3.02.
I downloaded the zip to the tablet, rebooted to fastboot, wrote the recovery, then booted into the recovery (just after flashing it, don't boot system), flashed custom kernel, and upon booting system it stopped overwriting the recovery partition with stock recovery.
It seems the stock kernel overwrites the recovery partition if it has been modified. Correct me if I'm wrong!
Click to expand...
Click to collapse
Well it is just 5.0 that does this.
Since I posted this there is a sane reason for them to do this - it might be the way they enforce the factory reset protection. It has to use their recovery to do so. Still annoying.
But thanks for a workaround, that it simply is the kernel, or boot image. That and I want root
You can try Chainfire's CF-AutoRoot, It modifies Boot.img so root is granted in boot time, I already had a custom kernel when I rooted, but you can try to root first and see if it stops auto-writing the stock recovery.
Here's the download link: http://download.chainfire.eu/347/CF-Root/CF-Auto-Root/CF-Auto-Root-flo-razor-nexus7.zip
Extract it, and run root-windows.bat (or the one suitable to your OS) while in fastboot.

Where to flash kernel image file from twrp?

Hello. I recently used elementalx kernel and now want to switch back to stock. I backed up my kernel through EX kernel manager but unfortunately it fails to restore the backup. I am trying to manually restore the backup from the .img file created by EXKM in twrp. It is asking me whether I want to flash it in recovery system image or bootloader. The most obvious choice seems to be bootloader but I want to confirm as I do not want a bricked phone. Please help. Thanks.
You could always just dirty flash the rom.
Haha I flashed the image file in the bootloader and it worked. Thanks for answering though.

Flashable Stock Kernel?

Has anyone got the stock kennel extracted as a flashable zip or IMG. I'd like to try out some of these kernels, but don't really want to reflash the ROM to revert if I decide they're not for me.
I think extracting and flashing the stock boot.img will revert you back to the stock kernel
Also, I'm pretty sure this should be in the Questions and Answers section
Since (afaik) some kernels also touch system, I would recommend backing up boot and system (image!) in TWRP. Then it's just a couple of seconds to restore both.
i made a backup from the stock kernel with twrp if you like ...
https://forum.xda-developers.com/showpost.php?p=74664776&postcount=82
rickysidhu_ said:
I think extracting and flashing the stock boot.img will revert you back to the stock kernel
Also, I'm pretty sure this should be in the Questions and Answers section
Click to expand...
Click to collapse
Like he said,
1 Download the FULL ROM zip (not the OTA)
2. Inside the zip folder you'll find a boot.img file. Extract that or copy it to your device
3. Go to TWRP (backup just in case) then go to Install > Select install Image > Select the boot.img you extracted or copied
4. It should prompt you to select boot, recovery, or system image. Choose Boot and then swipe to flash
5. Reboot
Ps. Once you flash the boot.img you'll have to flash twrp again via adb and if you used a root method you'll have to reflash that too.
Thanks guys!
Afaik boot.img are kernel + ramdisk.
Gesendet von meinem Honor 6X mit Tapatalk

TWRP - Permanent Installation or Temp?

Hello -
My Pixel 2 XL is still running stock but is rooted with Magisk. I have been looking at some custom ROMs. Stock is working fine for me, but the dorm in me REALLY wants to waste time flashing ROMs...
I was looking at the thread for AquariOS and a few others, and they each mention flashing TWRP after installing the ROM.
At present, I have the .img file for TWRP and I boot to it from my computer using fastboot. Is there a reason why ROMs installation instructions have the line to install TWRP? Is there any reason not to just fastboot to it as needed? My concern is how difficult is it to return to the factory recovery mode, and is there any downside to having TWRP on this model instead of the factory. Is it possible to return to the stock ROM and recovery after installing a custom ROM?
Thanks
myk.robinson said:
Hello -
My Pixel 2 XL is still running stock but is rooted with Magisk. I have been looking at some custom ROMs. Stock is working fine for me, but the dorm in me REALLY wants to waste time flashing ROMs...
I was looking at the thread for AquariOS and a few others, and they each mention flashing TWRP after installing the ROM.
At present, I have the .img file for TWRP and I boot to it from my computer using fastboot. Is there a reason why ROMs installation instructions have the line to install TWRP? Is there any reason not to just fastboot to it as needed? My concern is how difficult is it to return to the factory recovery mode, and is there any downside to having TWRP on this model instead of the factory. Is it possible to return to the stock ROM and recovery after installing a custom ROM?
Thanks
Click to expand...
Click to collapse
If you only want to use TWRP when you have a fastboot-ready PC available, there is no need to install it. The reason why that is there is because since TWRP is embedded in the kernel (not flashed to a recovery partition like older devices), it will be overwritten whenever you flash a custom rom that includes a kernel, and I'm fairly certain they all do.
Returning the stock recovery menu is as easy as flashing the stock boot.img. There are no downsides that I know of of having TWRP on your device. And yes, returning to the stock rom and recovery is as easy as fastboot flashing the factory image.
myk.robinson said:
Hello -
My Pixel 2 XL is still running stock but is rooted with Magisk. I have been looking at some custom ROMs. Stock is working fine for me, but the dorm in me REALLY wants to waste time flashing ROMs...
I was looking at the thread for AquariOS and a few others, and they each mention flashing TWRP after installing the ROM.
At present, I have the .img file for TWRP and I boot to it from my computer using fastboot. Is there a reason why ROMs installation instructions have the line to install TWRP? Is there any reason not to just fastboot to it as needed? My concern is how difficult is it to return to the factory recovery mode, and is there any downside to having TWRP on this model instead of the factory. Is it possible to return to the stock ROM and recovery after installing a custom ROM?
Thanks
Click to expand...
Click to collapse
I dont install it anymore.
I run rooted stock and have no need really for a nand backup.
When I need it I just fastboot it and honestly I cant recall the last time I needed to do that.
On other deivces I have it installed for ease of updates for LineageOS.
My Pixel XL 2 swings both ways! I use TWRP on board and Fastboot!
I run stock rooted with flash kernel. I use my Nexus 6p terminal to fastboot boot TWRP on my Pixel when flash kernel pushes an update. I don't really see any reason to run a custom rom on this device as it runs great as is and there is an app for pretty much any custom rom feature you'd want.

Categories

Resources