Flashed TWRP on the boot image - Sony Xperia XA2 Questions & Answers

Hey ^^'
I stupidly decided to flash TWRP on the boot image. (fastboot flash boot_b TWRP.img)
The problem is that I now logically always boot on TWRP and not on the system.
Who has an idea how to delete TWRP again from the boot image? ,

Use new flasher to flash unpacked firmware from FTF file, there are many tutorials how to do this.

Related

[Q] Booting strait to custom recovery *Help*

Hey guys, I think i screwed up big time. I have just received my Htc one M8 from rogers (with no bloatware on it .. weird lol ) And i wanted to root it in order to use titanium back up.
So i followed a guide to root the phone everything went well execpt that now my phone boots straight into philz custom recovery....
When i was entering the fastboot commands to flash the recovery to the phone i made a mistake i wrote :
fastboot flash boot recovery.img
instead of
fastboot flash boot recovery recovery.img
....
So my guess is that i have overwritten the boot.img of the phone with the custom recovery which is bad... now i can't use the phone...
Is there a way to flash the stock boot image back? of to restore the phone like it was brand new?
Thanks for you help
Reflash the both with the correct commands !!!
Fastboot flash recovery recovery.img
and
Fastboot flash boot boot.img
Mr Hofs said:
Reflash the both with the correct commands !!!
Fastboot flash recovery recovery.img
and
Fastboot flash boot boot.img
Click to expand...
Click to collapse
Yeah this is what i wanted to do but i couldn't find a boot.img. I did find it eventually. here it is in case anyone needs it
Straight, just saying.
The boot.img is always in the rom....Most roms contain the stock boot.img. or check my backup collection and download the stock rom. It has the stock boot.img inside
Thanks a lot.

Flashing OTA failed. I need help to restore my phone.

Hi,
My phone is rooted and the DPI was customized. I tried to manually flash the OTA but the installation got stuck so I cannot boot into Android anymore. I tried those restore tutorials but when I try to flash using fastboot I get a "FAILED (remote: Permission denied). I tried to clear the cache in the recovery and then it got also stuck and now I can't access recovery.
This is what I can read in the bootloader
---------------------------
FASTBOOT MODE
PRODUCT_NAME - Z00A
VARIANT - ASUS_Z00A
HW_VERSION -
BOOTLOADER VERSION - unknown
IFWI - 0094.0177
SERIAL NUMBER - Xxxxx....
SIGNING - ?
SECURE_BOOT - ?
continue fastboot process
-----------------------------
I just been successful in installing TWRP recovery using the toolkit.
Edit: I installed the latest CM 13 build and it can't boot to Android. It goes straight to TWRP recovery no matter how I turn on the phone. My bootloader still looks the same.
Edit: I tried flashing a prerooted .img and stock recovery and I can go back to recovery but I still can't boot into Android or factory reset or nothing.... I'm desperate!
manlord said:
I just been successful in installing TWRP recovery using the toolkit.
Edit: I installed the latest CM 13 build and it can't boot to Android. It goes straight to TWRP recovery no matter how I turn on the phone. My bootloader still looks the same.
Edit: I tried flashing a prerooted .img and stock recovery and I can go back to recovery but I still can't boot into Android or factory reset or nothing.... I'm desperate!
Click to expand...
Click to collapse
You may need to flash boot.img and droidboot.img for the same version of rom you flashed, ie. if you flashed 139 then you must flash the recovery, boot and droidboot images for 139...
As you found the pre-root rom files, download the whole file and flash these image files too making sure you use the right commands or you will brick your phone...
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash fastboot droidboot.img
fastboot flash system system.img
Just remember, flashing these partitions can, potentially, brick your phone. You do this at your own risk...
Happy flashing....
ultramag69 said:
You may need to flash boot.img and droidboot.img for the same version of rom you flashed, ie. if you flashed 139 then you must flash the recovery, boot and droidboot images for 139...
As you found the pre-root rom files, download the whole file and flash these image files too making sure you use the right commands or you will brick your phone...
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash fastboot droidboot.img
fastboot flash system system.img
Just remember, flashing these partitions can, potentially, brick your phone. You do this at your own risk...
Happy flashing....
Click to expand...
Click to collapse
Thanks for your help. I did that earlier with the latest pre-rooted OTA and now it gets stuck on the splashscreen. I tried going to recovery (stock now) and doing a factory reset after flashing system.img and it still the splashscreen after I reboot. I know the 1st boot after flahing a ROM can be long, but now it's been an hour and I'm still on the splash screen...
The only other thing I can recommend is to flash a RAW rom image. As I have never needed to do this I can't say how this works but if you do a search you should find out the procedure...
This may relock your bootloader so just be aware....

Keeps rebooting into TWRP

Hey guys I think i have a problem
I was trying to flash v4a, and realized that I needed to downgrade twrp from RC2 to RC1. My phone had been rooted by SU.
I proceeded to do the flash and then flashed the v4a mod but now my phone can't get out of TWRP. When I click reboot, it boots into the recovery mode.
Any ideas on how to solve this? I cannot use my phone now
Use fastboot to flash stock boot on both slots
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
Fastboot boot twrp.img
Then flash twrp and all should be fine
mikaole said:
Use fastboot to flash stock boot on both slots
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
Fastboot boot twrp.img
Then flash twrp and all should be fine
Click to expand...
Click to collapse
Just wanted to chime in so people in the future can see that this worked, at least for me on my Pixel 2 XL.
hey, I tried this method to boot back into system but lost TWRP recovery... any way to install TWRP without flashing boot.img again? or which boot.img should I be flashing back to slot A and B.. i extracted the boot.img from factory images but i lose TWRP recovery

in need of assistance on android 9.0 kernel & rooting issue

I flashed twrp recovery then i did not reboot i flashed a kernel witch is 9.0 compatiable then flashed magisk now I am stuck on a white screen with the Google G with a loading bar any help would be great
WoZzYDoesitbest said:
I flashed twrp recovery then i did not reboot i flashed a kernel witch is 9.0 compatiable then flashed magisk now I am stuck on a white screen with the Google G with a loading bar any help would be great
Click to expand...
Click to collapse
Just extract and fastboot flash the original boot.img from the factory image. You'll have to open the nested zipfile in the image file to get to it. Once you flash it, you should be back where you started and able to boot system. Retrace your steps and found out what you did wrong. Which kernel? As a side note, you should first fastboot boot the TWRP.img file and then while you are in TWRP, you flash the TWRP zip file. You can also use TWRP (boot) to queue up TWRP, Kernel, and Magisk and they will all flash in that sequence saving some time. There are also sticky guides on how to do this.
v12xke said:
Just extract and fastboot flash the original boot.img from the factory image. You'll have to open the nested zipfile in the image file to get to it. Once you flash it, you should be back where you started and able to boot system. Retrace your steps and found out what you did wrong. Which kernel? As a side note, you should first fastboot boot the TWRP.img file and then while you are in TWRP, you flash the TWRP zip file. You can also use TWRP (boot) to queue up TWRP, Kernel, and Magisk and they will all flash in that sequence saving some time. There are also sticky guides on how to do this.
Click to expand...
Click to collapse
Yeah appreciate it i figured it out last night this phone drives me nuts

Recovery is not working and even after twrp or stock recovery flashing

I have an iball slide snap 4g2 and i have rooted it by flashing magisk boot img but it is not booting in twrp recovery.
I have flashed twrp and stock recovery several times still nothing is working.
When i was flashing twrp recovery for first time using fastboot i used fastboot erase recovery and then fastboot flash recovery recovery.img
On my device it shows file received but it is not working
Also tried flashing with sp flash tool but no luck
Plss help

Categories

Resources