Restore Xperia Z2 - Only Have Fastboot - Xperia Z2 Q&A, Help & Troubleshooting

Hello, I tried to install the latest paranoid android but now have a system that only freezes on boot or turns on into fastboot mode. The following is what I have done:
unlock bootloader
(system 23.1.A.1.28)
root using exploit for 5.0.2 with super su
installed recovery apk which installed some NDR tool as well to switch between recoveries
some phills touch ui was the default and teamwin only worked if selected from the NDR app and rebooted
booted into teamwin, did a full wipe
mtp wasn't working to copy ROM so did a reboot, also tried to sideload before reboot but the stupid twrp said the device was 'leo' instead of D6503 or whatever so it didn't want to work
phone stuck so tried to use fastboot to flash system pa-sirrius-rom.zip
also tried to flash system backup from twrp but it's a win.000 and win.001 file and not sure how to join them to get a working system.img??
why won't recovery boot and how do i get a working system again. how do i convert a twrp backup to one that fastboot recognises and isn't split in 2?

If you have an unlocked bootloader just download a kernel with recovery built in. Flash the kernel 'fastboot flash boot boot.img'. Your phones not booting anyway so it really doesn't matter what kernel, as long as it has built in recovery. Boot into TWRP and recovery your backup.
Edit:
I'd you have an unlocked bootloader, don't wast your time with apks that install recovery. I'm my experience they're always hacky. Just get a recovery for fota partition or a boot image with one built in.
Sent from my D6503 using Tapatalk

Thanks for the reply.
I finally found a boot.img with TWRP built in (from the cyanogen project). I also found out that I had to flash it (fastboot boot command doesn't seem to work).
I can boot the recovery just fine but it will not mount any partitions and the only thing listed in the wipe menu is "Dalavik Cache".
I have attached a screenshot of the TWRP log.
It won't let me post links because my experience is low.
i.imgur dot com cXBv1Y8.png
Edit:
I can format the system partition and even mount it from the command line, it just doesn't appear in the TWRP UI.
In the mount menu, it has a checkbox which I cannot uncheck that says "Only mount system read-only".
Edit:
Booted from the cyanogen recovery image which had its own adb sideload which I used to load cyanogen and now it's working!

Related

Ido bootloop with custom rom

Hey,
whatever custom rom I try, I end up with bootloop - phone is restarting after It finishes optimizing apps. I've tried Collapseromer - CM13-6.6.28, ResurrectionRemix - v5.6.8 and some cm-13.0-RC2.0 from here. I'm flashing stuff from MIUI 8 Developer ROM.
Phone is Redmi 3 - ido (not pro version).
I've unlocked phones bootloader with app from Mi, found here. Checked if phone is unlocked with:
Code:
fastboot oem device-info
After that I followed instructions for installing TWRP here.
Code:
adb root
adb disable-verity
adb reboot bootloader
Code:
fastboot flash recovery twrp-3.0.2-0-ido.img
fastboot boot twrp-3.0.2-0-ido.img
In TWRP slected Advanced wipe -> wiped all partitions.
Next I've used adb sideload to flash the device. In case of RR rom used:
Code:
adb sideload ResurrectionRemix-M-v5.6.8-ido.zip
Restarted and after app optimization rom restarts.
Any suggestions are welcome and will be appreciated.
Here's how I have done 3 different Redmi 3 non-pro versions of the phone.
Unlocked the bootloader using a developer rom.
Copied the rom from here, to the internal storage.
Downloaded ARM64/5.1/Pico or Mini from here & copied to the same folder on the internal storage.
Downloaded TWRP 3.0.2.0 from here.
Power down the phone. Hold volume Down + Power and you will be in fastboot.
rename your twrp file to recovery.img & then use the following commands.
fastboot flash recovery recovery.img
fastboot boot recovery.img.
In TWRP swipe to modify the system partition. Select wipe & swipe to complete. Don't reboot.
Go back to the main menu and install ZIP files. Add the Rom in the 1st link & then add more zips, then add the gapps.
Once complete wipe dalvik/cache & again don't reboot but go back and wipe again.
Reboot and away you go. Not had an issue on any of the phones using that method.
Would also high recommend the ROM i've posted, been using it as a daily driver and it's been virtually flawless.
Additional wipes and your rom worked like a charm. Thanks.
Stuck in boot loop
Bro done all those thing.
Do everything you told.
But after last step its stuck in boot loop. What can i do now?
shakil Ahommed Himu said:
Bro done all those thing.
Do everything you told.
But after last step its stuck in boot loop. What can i do now?
Click to expand...
Click to collapse
First of all consider looking at the date of post.. it's from 2016 - obviously nobody's gonna provide you with any support in this one.
Second of all get yourself a newer rom - something reliable such as LineageOS for IDO and just adb sideload it from recovery or push it to internal storage and install with GUI.

[Q] Problem with flashing twrp on Snapdragon RM3

I downloaded the twrp .img from the official website and flashed it using 'fastboot flash recovery twrp.img' and everything was shown Okay in cmd. Then I did 'fastboot reboot' and then after phone rebooted I went to recovery mode using volume up and power button but there was no TWRP there, only stock recovery was there. What went wrong? I flashed many times but same result
I had the same result like yours several weeks ago. And finally choose another method to install TWRP. Try below thread , it is easier.
http://en.miui.com/thread-296053-1-1.html
Your stock rom is replacing stock recovery every time you boot it.
TWRP needs a modified boot image flashed to make it permanent when used with official roms.
http://forum.xda-developers.com/red...official-twrp-3-0-2-0-recovery-redmi-t3352966
If you don't have the modified boot, make sure to boot into TWRP first after flashing it.
Handy way to get TWRP booted is to temporarily boot it using "fastboot boot <name of twrp.img>"
Once booted this way, use it to flash the TWRP image, then reboot into TWRP recovery you just flashed.
Once I had that done, after making a backup, I flashed a custom rom (xiaomi.eu) and TWRP remained permanent for me.
If your wanting to stay on an official rom, see this thread which has an Universal Boot Img Patcher.
Is Your Bootloader Unlocked? Cant flash on a locked BL buddy...
To unlock, follow the Guide y Nivu
http://en.miui.com/forum.php?mod=viewthread&tid=280561&extra=&highlight=no%2Bmore%2Bverify%2Bdevice&page=41
also read reply no. 408
2. DO NOT install the official, unmodified TWRP...
select a TWRP from here
http://forum.xda-developers.com/redmi-note-3/how-to/guide-redmi-note-3-available-twrps-t3406708
I Used the cofface TWRP
3. COPY Twrp.img to internal storage.....
fastboot boot TWRP.img
4. TWRP boots automatically... Press the button on Right to change device language....
Swipe right to allow modifications
5. Go to install... > flash Image. select TWRP.img
tap on reboot.... somewhere there, you will be asked to
1. install SuperSU
2. prevent phone from reverting to original recovery...
Swipe right on both.
Cheers!
When you do the "fastboot reboot" command, you should right away , press the volume + and power buttons together, so the phone boots into TWRP and not into the system. If you just execute the command and let it go , the stock recovery overwrites TWRP.
after entering "fastboot flash recovery twrp.IMG" don't reboot and don't entre "fastboot reboot"....you have to directly press power + vol up...you will able to boot into twrp

[Help] Bootloop on Xiaomir Redmi Note 4X

Hello, I'm kind of new at this (this is my first post) so be gentle
So, the last few days I've been trying to install a new rom on my phone (Redmi Note 4X) and the problems started with the model. I only seem to find Redmi Note 4 roms, and as I've come to find, mine is supposed to be the mido one (correct me if I'm wrong though). I have unlocked the bootloader, I have installed and enabled the fastboot on my phone, so the next step was to install the latest TWRP.
There came more problems; I tried doing this through the app and it just wouln't flash it. So I found a guide on how to root my phone and install a new recovery through adb and I followed it. It didn't work. I couldn't find the right twrp version for my phone. When I finally did realise my phone needed mido, I found the latest from the TWRP website. It wouldn't load through adb again. I found a thread about a fixed mido version, which finally worked for me. But my brother who was helping me, and isn't as much of a noob as I am (he has flashed rom and recoveries many times on his Nexus 5X), decided that I necessarily need the latest twrp if I'm going to flash a new rom, so he flashed the new twrp through the old one, and soft bricked my phone (I think). So I'm searching for a guide to unbrick it. (Which I can't seem to find to work at least).
To conclude;
I have unlocked my bootloader
I have access to the fastboot
I tried to flash a recovery
I failed many times, but I managed it
I flashed the latest twrp and bricked my phone
I don't have access to the recovery
My phone is still on a bootloop
I am not sure about which phone model I have
Help!
Thanks in advance.
1. Just check your phone model on its box. If its Snapdragon version (Mido), then just install it via fastboot. (code: fastboot flash recovery twrp-midoxx.img). If you are success, then try to reboot to recovery (fastboot boot twrpmido-xx.img). After booted, then you just manage to rom.zip you want to install. If you don't have it, then download it before from your PC and push it to your phone. Or just enable Mtp checklis from TWRP n copy that file to your internal phone/sdcard. Wipe all/factory reset except internal storage. Then you dan install rom.zip normally. N reboot. (Note: if you are on MIUI and wanted to always stay on it, just flash the file called lazyflasher.zip. n' wipe cache n art cache only then reboot). Flashing custom recovery on stock MIUI Will manage the device Going to bootloop)
2. If you have mediatek version (nikel), searching the fastboot Rom from miui website and flash it normally via fastboot. (SP Flash tool)
Warning: flash the wrong rom file into wrong phone Will make your device brick. So becarefull n knowing what model/code name you have.
Dyt199412syam said:
1. Just check your phone model on its box. If its Snapdragon version (Mido), then just install it via fastboot. (code: fastboot flash recovery twrp-midoxx.img). If you are success, then try to reboot to recovery (fastboot boot twrpmido-xx.img). After booted, then you just manage to rom.zip you want to install. If you don't have it, then download it before from your PC and push it to your phone. Or just enable Mtp checklis from TWRP n copy that file to your internal phone/sdcard. Wipe all/factory reset except internal storage. Then you dan install rom.zip normally. N reboot. (Note: if you are on MIUI and wanted to always stay on it, just flash the file called lazyflasher.zip. n' wipe cache n art cache only then reboot). Flashing custom recovery on stock MIUI Will manage the device Going to bootloop)
2. If you have mediatek version (nikel), searching the fastboot Rom from miui website and flash it normally via fastboot. (SP Flash tool)
Warning: flash the wrong rom file into wrong phone Will make your device brick. So becarefull n knowing what model/code name you have.
Click to expand...
Click to collapse
Hello and thanks for the reply. I have the snapdragon version, but all I'm asking is how am I supposed to flash the lazyflasher without accessing the recovery? Through adb?
fionik said:
Hello and thanks for the reply. I have the snapdragon version, but all I'm asking is how am I supposed to flash the lazyflasher without accessing the recovery? Through adb?
Click to expand...
Click to collapse
Firstly, enter fastboot mode on your device. Connecting to pc and flashing the twrp for mido. "fastboot flash recovery twrp-mido.img". Then boot to it using " fastboot boot twrp-mido.img". Then you will enter the recovery (twrp) in a second. Copy the lazyflasher into your phone (enable mtp first in Mount option in twrp) that you downloaded from pc. Just flash the lazyflasher.zip and reboot.
And why you don't want to flash lazyflasher when it very easy to flash it using recovery twrp? adb? You mean android debugging? Actually, you cant flash a .zip file into your system partition except through fastboot mode. However, fastboot mode (in cmd) only recognize a .img file. I just try to tell you the easier method to make your device boot up.
Dyt199412syam said:
Firstly, enter fastboot mode on your device. Connecting to pc and flashing the twrp for mido. "fastboot flash recovery twrp-mido.img". Then boot to it using " fastboot boot twrp-mido.img". Then you will enter the recovery (twrp) in a second. Copy the lazyflasher into your phone (enable mtp first in Mount option in twrp) that you downloaded from pc. Just flash the lazyflasher.zip and reboot.
And why you don't want to flash lazyflasher when it very easy to flash it using recovery twrp? adb? You mean android debugging? Actually, you cant flash a .zip file into your system partition except through fastboot mode. However, fastboot mode (in cmd) only recognize a .img file. I just try to tell you the easier method to make your device boot up.
Click to expand...
Click to collapse
As I said above, I can only access the fastboot, and I get errors in the adb when I try to flash the twrp image.
fionik said:
As I said above, I can only access the fastboot, and I get errors in the adb when I try to flash the twrp image.
Click to expand...
Click to collapse
Share your error please.
Try fastboot boot twrp.img

How to go back to stock and install the latest update

Hi, I'm having some issues trying to install the newest update of A10.
I was on A9 with unlocked bootloader, root and twrp of recovery.
I first tried to install the .rar image via recovery but I couldn't find in the memory, but I already wiped system vendor and data.
So when I rebooted to try if the file was there or not, there was no recovery anymore.
Now I'm trying to flash the newest rom via fastboot but through the flash_all.bat it gives me fastboot tz_a error, so I'm trying to install a recovery through fastboot using this guide https://forum.xda-developers.com/mi-a3/how-to/basic-guide-to-flash-recovery-rom-via-t3989603 but of course it doesn't work and when I reboot it doesn't enter the recovery but always in fastboot (even tho I press the + button).
What should I do now? Is there anyway to erase everything and install a clean OS from 0 just from fastboot? (Without the flash_all or miflash because it doesn't work)
P.S. I don't care about the data, I've done a backup of all my important files before
Thanks for the help
Sapper Morton said:
First, you have to understand what you did. You wiped your system and vendor image, and didn't installed a newer one afterwards, you didn't wiped your recovery (it's inside boot partition).
Further, .rar files will not be flashed through TWRP, .zip must be used instead, with proper format, there must be a compatible flash script inside.
You can't access your recovery, just because you wiped system; inside your bootloader there's a component responsible to manage the slots, bootctl and by default if it detects a corrupted or invalid system partition, it will always boot onto bootloader mode.
As for the tz_a error, you must unlock critical partitions flashing, just because, tz is a critical partition, thus, run in Fastboot:
Code:
fastboot flashing unlock_critical
If you want to know your current state, use:
Code:
fastboot oem device-info
Your current slot is blocked by bootctl, but this doesn't mean your inactive is too, so, use:
Code:
fastboot set_active other
And reboot into TWRP again, that is, if you do have it installed in your inactive slot.
Fastboot/ADB and other tools, you will find it in here:
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
If you want to restore using recovery firmware, please do the favor, and read the post below:
https://forum.xda-developers.com/showpost.php?p=82595733&postcount=379
Click to expand...
Click to collapse
Thanks for the help but I managed to get into the recovery and install the rom via fastboot, the thing I was missing was a recovery working for Android10 (even though I remember recovery doesn't have nothing to do witg the installed OS), so I managed to install the recovery and root, and everything went fine after a few tries between various guides. Probably my partitions now are all messed up, but if I boot normally it goes into system (slot A), if I boot into recovery it goes into twrp and also works fastboot. Probably I also installed the OS on slot b, but I don't care as long the first partition works well

touches not working in recovery

My TWRP was not loading (just a logo) and I forgot to root my device. I tried other versions and OrangeFox instead, and then "swipe to unlock" appeared, but touches are not working at all. Only side buttons are working.
*Everything works fine in MIUI
Twrp recovery works without root. That's why you can install magisc to root your phone using twrp. Try more twrp project and try to enter multiple times to recovery. I had the same problem and after 2-3 attempts it works. I'm using pitch black recovery And I recommend it with confidence
You can find this recovery here :
https://forum.xda-developers.com/t/...crypted_data-v2-9-0-base-twrp-v3-3-1.4000857/
As I tryed a loot of twrp project this was the most stable for me. Just flash it using fast boot. Or you can boot it Instead of flashing.
Code for boot : fastboot boot twrp.img
You can use this if you have problems on flashing the recovery.. So after you boot on it you can flash the zip file using twrp if it won't flash using your pc / cmd.
INFO:
If you want root and you got boot loop after flashing Magisk with TWRP(Phone stuck at boot process up to 2-3minutes ) boot twrp and format your DATA. DON'T WIPE! FORMAT!
**WIPE/FORMAT DATA**
*Restart your phone and be patient the boot may take some time after perform data format*
Now you should have the Magisk installed! (The data format does not wipe Magisk Manager from the system (!). It will be there.)
-------------
(!) If something goes wrong you can flash again the stock rom downloaded and repeat the process (!)
------------------

Categories

Resources