Where to flash kernel image file from twrp? - HTC 10 Questions & Answers

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.

Related

Recovery

I for some reason can't get the stock recovery to flash the root file or any stock firmware. Also I can't get it to change recoveries for some reason I've tried in terminal with a few different ones and tried flashing the stock one also but it won't change. Does anything know how to fix this? Is there a back to stock thing I can flash it? I've been searching for days with no luck. Thanks
Sent from my X9006 using XDA Free mobile app
You have to flash the latest stock recovery! They patched the stock recovery and hashed for that!
Flash a custom recovery and make a nandroid backup. Save your backup for security reasons to your pc then install coloros completely new from 1.2.1and only update it with ota to 1.2.4 . Now use fastboot to boot from a custom recovery like Philz.(fastboot boot recovery.img)
Recovery.img should be replaced with the name of your recovery. Twrp won't work for this plan!, cause it don't backs up the recovery. Now make again a backup. Save the recovery.img from backup safely. Now restore your old backup and flash the captured stock recovery. Tada now your ota update should work fine!
Cheers
got it thanks a lot!! got root and that custom recovery worked! thanks again!!
Zoltan-X said:
You have to flash the latest stock recovery! They patched the stock recovery and hashed for that!
Flash a custom recovery and make a nandroid backup. Save your backup for security reasons to your pc then install coloros completely new from 1.2.1and only update it with ota to 1.2.4 . Now use fastboot to boot from a custom recovery like Philz.(fastboot boot recovery.img)
Recovery.img should be replaced with the name of your recovery. Twrp won't work for this plan!, cause it don't backs up the recovery. Now make again a backup. Save the recovery.img from backup safely. Now restore your old backup and flash the captured stock recovery. Tada now your ota update should work fine!
Cheers
Click to expand...
Click to collapse
mr2guy18 said:
got it thanks a lot!! got root and that custom recovery worked! thanks again!!
Click to expand...
Click to collapse
How did you get stock 2.0 to your phone?

TWRP 2.8.0.1 Bricked my device???

I just flashed TWRP and upgraded from 2.7 to 2.8.0.1, when I backed up my stock ROM i didnt backup original Recovery, only data and such. I can only restore ROM if possible, not recovery.
Now I read on the site that this is the wrong version, its for the V510 GPE, it won't let me flash any ROMS, and I deleted system data with the intent to reflash CM11. So no ROM, no recovery backup.
I seem to be in big trouble, how do i flash 2.8.0.0 or a ROM, am I bricked for good???
EDITSOLVED) I freaked out, but it's not bad. If it happens to you, Just took a sleep over to figure it out.
You can download a flashable ZIP file version of the TWRP recovery u want from this thread, http://forum.xda-developers.com/showthread.php?t=2551499 , they have from 2.6 to 2.8
Just use an External SD Card or USB OTG Flash drive, and flash the file with normal install in TWRP Recovery, that works. Reboot recovery, and u can flash ROM. I think my screen brightness issue has resolved as well!
Time to go flying!

AT&T Note 2 stuck in TWRP boot loop

I've had AOKP & TWRP installed for nearly 3 years. The phone started rebooting occasionally when I would go to manage apps and kill an app. It finally got hosed really good on the last reboot and it got stuck in a TWRP boot loop. I was able to use odin to reflash TWRP and after the initial flash I could get into TWRP recovery. Unfortunately I don't have any of the necessary image files on the sdcard. I then tried to flash a converted AOKP zip (now a tar converted with toolkit). I am not able to get either the toolkit or adb detect the device although I am able to flash with odin. I flashed the AOKP tar image with odin but now when it boot it stays on the Galaxy Note 2 screen and goes no further.
Now I can only get in download mode and since odin seems to be the only thing that is working for me my question is can I use it to flash AOKP and GAPPS (both of which I have on computer)? If so, what format does the AOKP file need to be? img, tar or what? Also can I convert the gapps zip file to a tar and use odin to flash it?
Much thanks in advance. I plan to purchase a new device soon but would like to get this working again as a backup.
Regards, ~metafizik
Use a stock/rooted .tar image to restore the device partition structure.
It contains the PIT for remapping...
Once a stock rooted rom is flashed and running...flash TWRP 2.8.6.0 via Odin...
Then create a nandroid backup to SD CARD..
You can then flash AOKP and GAPPS as .zip files...in TWRP
It's a bit more work....but you'll have a clean backup and a way back if trouble hits...along with fresh partitions...g
I recommend flashing back to stock, get the phone set up using stock, install TWRP, take a nandroid backup, and then flash a custom ROM.

Do I need to revert to read only ?

Hi,
I've just bought a Nexus 5X and wanted to root it with systemless method for being able to get OTA in futur.
I've booted to TWRP to flash SuperSU zip but I've made the mistake to use the slider when TWRP ask if I want to keep the system as read only.
Is there an easy way to revert back without the reflashing the rom ?
And is there a way to boot to TWRP from android (if i keep the. .img on my phone) ?
Thank you
Sebacestmoi said:
Hi,
I've just bought a Nexus 5X and wanted to root it with systemless method for being able to get OTA in futur.
I've booted to TWRP to flash SuperSU zip but I've made the mistake to use the slider when TWRP ask if I want to keep the system as read only.
Is there an easy way to revert back without the reflashing the rom ?
And is there a way to boot to TWRP from android (if i keep the. .img on my phone) ?
Thank you
Click to expand...
Click to collapse
If you had TWRP touch your /system in R/W mode even if it made no changes, the system partition is tainted (there is meta-data that changed)
The only practical way to get back to untainted /system is to flash the stock system.img. The flashing is simple, but it might take a little time to download the factory image and extract the system.img.
I usually keep twrp in the recovery partition, probably chainfire has something to boot twrp directly. I do know that if you boot twrp over usb there is a problem where it doesn't accept your pin/pattern/pass to decrypt the user partition. I don't know if it suffers the same problem through other booting methods.
BTW even with systemless root, you cannot flash the differential OTA you receive over the air directly. You need to restore the stock boot.img before flashing the OTA.
The FULL OTA you get from the factory image website, on the other hand, can flash over anything, regardless of whether you have boot, system, or vendor modified.
Thank you for the clear answer
Sebacestmoi said:
Hi,
I've just bought a Nexus 5X and wanted to root it with systemless method for being able to get OTA in futur.
I've booted to TWRP to flash SuperSU zip but I've made the mistake to use the slider when TWRP ask if I want to keep the system as read only.
Is there an easy way to revert back without the reflashing the rom ?
And is there a way to boot to TWRP from android (if i keep the. .img on my phone) ?
Thank you
Click to expand...
Click to collapse
The command
Code:
[I]fastboot boot <img file name>[/I]
will boot twrp from your computer with out having to install it.

swap kernels

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..

Categories

Resources