How to Flash TWRP and ROOT in Lineage OS 14.1 [Nighties] - Xperia Z Q&A, Help & Troubleshooting

Hi i just want to ask how can i do it without using ADB thru PC my usb port is broken.
i can only do thru recovery. but the recovery built in Lineage always stuck when i flashing root
and can't find a way to install TWRP from recovery
any solution?

darknessemo05 said:
Hi i just want to ask how can i do it without using ADB thru PC my usb port is broken.
i can only do thru recovery. but the recovery built in Lineage always stuck when i flashing root
and can't find a way to install TWRP from recovery
any solution?
Click to expand...
Click to collapse
nvm i solved it

...So could u tell how did you solve the problem...?

yyy134341 said:
...So could u tell how did you solve the problem...?
Click to expand...
Click to collapse
I had twrp installed previously. But after installing lineage os 14.1(yuga) TWRP got replaced by some weird recovery. I've done it in this way, but it needs a pc, just ask a friend, it doesn't take much time.
1. install required fastboot drivers in pc.
2. boot the device into fastboot mode , pressing vol- down button and connect it to usb port of PC. the red led will turn into blue. It means the phone is in fastboot mode.
3. Open cmd in the directory where twrp-2.87+ is. boot temporarily in the recovery issuing command-
Code:
fastboot boot twrp-2.87.img
4. the phone will boot into twrp recovery.
5. Extract boot.img from your ROM's zip(lineage os in this case) and place it in internal storage
6. Place twrp-2.87[recovery] you want to install in internal storage as well
7. from recovery select install->install images
8. select boot.img and select *boot partition in the following screen.
9. similarly select recovery.img and select *recovery partition.
Follow the steps 8,9 sequentially otherwise it may cause problem.

Ok thank u. Your instructions helped me a lot. Thanks for sharing.

Related

need help, mucked up during installing cm11

I have a Sony Xperia Z1 and I have had cyanogenmod12.1 on my device for a little while now, but there are a couple of bugs and I wanted to go back to cyanogenmod11, so I downloaded the cm11 zip file onto my device and copyed it to the sd card,I then downloaded TWRP manager because the cyanogenmod recvoary does not have a zip file or flash part in the recovary, so I followed the procedures and then I flashed TWRP recovary. Once I got into the TWRP recovary I found the zip file for cm11 I then clicked flash. Not long later it said succesfull and then i had to reboot, i clicked reboot and this is where it whet wrong. My device then went into a bootloop because I left my device for 10mins. I then tried to access the custom recovary but it just came up with the sony logo and no custom recovary has come up since.
Jack Neilson said:
I ave a Sony Xperia Z1 and I have had cyanogenmod12.1 on my device for a little while now, but there are a couple of bugs and I wanted to go back to cyanogenmod11, so I downloaded the cm11 zip file onto my device and copyed it to the sd card,I then downloaded TWRP manager because the cyanogenmod recvoary does not have a zip file or flash part in the recovary, so I followed the procedures and then I flashed TWRP recovary. Once I got into the TWRP recovary I found the zip file for cm11 I then clicked flash. Not long later it said succesfull and then i had to reboot, i clicked reboot and this is where it whet wrong. My device then went into a bootloop because I left my device for 10mins. I then tried to access the custom recovary but it just came up with the sony logo and no custom recovary has come up since. Please help
-Jack
Click to expand...
Click to collapse
Hello,
I have reported this thread to be moved to the right Q&A so that experts there maybe able to help.
-Vatsal
If you made a backup, flash dual recovery then restore the backup?
Otherwise flash stock and start again
The only solution is to flash your firmware and start from zero point
Since you said there is bootloop and no recovery
Or you can flash twrp img file through fastboot mode
But for safety flash is best
You do not need to do a fresh flash. Doing so without deselected some things might wipe data like photos.
1. If you don't already have the fastboot and ADB drivers, get them here
2. Download a kernel with recovery and extract the boot.img
3. Open up command prompt in the folder the boot.img is in
4. Make sure your device is turned off completely
5. Hold volume down while attaching it to your computer
6a. If you just want to have temporary acces to recovery type in this code:
Code:
fastboot boot boot.img
6b. If you want to keep acces and use the recovery after rebooting type in this code:
Code:
fastboot flash boot boot.img
7. Enter recovery the way you would normally do, backup your important files and/or flash the new rom and kernel you would like to use

[NEED HELP] I need help. and will deletehis asap

i have a symphony roar a50 (Bangladesh). it was running everything stock and updated with twrp 2.8.7.0 without root. bootloader was unlocked.
i was trying to root the device with the AIO from this thread:
http://forum.xda-developers.com/cro.../android-one-toolkit-unlocks-relocks-t3294448
the phone suddenly rebooted in the middle of the process and was stuck in a bootloop. i tried to factory reset it but it still didn't work. was still on boot loop.
then i tried to flash the appropriate stock firmware but that didn't help it wont boot. stuck on the boot logo for 1.5 hrs. then tried CM13 nightlies and the cyanpop roms. still nothing.
i am currently in a state of shock as this is a fairly a new phone and i am to travel to Chittagong in ~11 hours.
please help
don't you take a backup ?
and don't you wipe every thing before flashing the cm13 ?
mithun mpk said:
don't you take a backup ?
and don't you wipe every thing before flashing the cm13 ?
Click to expand...
Click to collapse
yes i had a nandroid backup. but twrp says it is corrupt or some reason. and yes i wiped everything before cm13
downgrade twrp2.8.7 to 2.8.4.... 2.8.7 has problem with backup and recovery
https://www.androidfilehost.com/?fid=24389512218018336 twrp 2.8.8.x beta 3
btw this thread is wrong section
I too Had the same Problem once as I Tried Rooting My Android One through the same method as u did, So for fixing it I prefer that U FLASH The Stock MM ROM for Ur Device through STOCK Recovery ( Remember to Wipe Cache and Data b4 Flashing ) AND then ur Device mst be Fixed ( This method worked for me ) And Dude if u want to root Ur Device Follow This Method : -
1) FLASH TWRP RECOVERY
2) Reboot into Recovery and FLASH Thunderzap 5.1 Kernel through Recovery
3) Then FLASH SUPERSU ZIP from Recovery
4) Reboot And Done ! Ur Device is Rooted ! ?
@RoxAndroid how did you fallback to stock recovery from twrp? I'm stuck.
Tanzim Abir said:
@RoxAndroid how did you fallback to stock recovery from twrp? I'm stuck.
Click to expand...
Click to collapse
So......to do that Follow these Steps :-
Download Stock Recovery from here http://forum.xda-developers.com/crossdevice-dev/android-one-general/stockrecoveryandroid-one-t2917457
1) Make sure u have Installed ADB drivers ( If Already did, Skip Step 2)
2) To install ADB drivers first Unable USB debugging From the developer Options in the Setting ( If there is No Developer Options Goto-Setting-About Phone-Tap Build Number 7 Times and go back to settings and Open Developer Options and Unable USB debugging) And then Connect Your Phone to PC and Open ADB DRIVER executable File And Install Drivers.
3) Once Drivers are installed Download ADB AND FASTBOOT from here http://drive.google.com/file/d/0B1nu6Ydzrmi-dWdmS00tWjE1WHM
4)Extract the zip and open the folder and then HOLD SHIFT+Right Click and then click on Open Command Window here
5)And then boot your phone to Fastboot Mode, To do that Power Off the Device and HOLD POWER AND VOLUME UP key at the same time and then navigate to the Fastboot Mode by Volume UP button and and Click Volume Down button to select. Once you are in Fastboot Mode connect your Device to PC and go back to PC
6)Once Command Window is opened type following Command :-
Code:
fastboot devices
Code:
fastboot oem unlock
Code:
fastboot format userdata
Code:
fastboot flash recovery <Name of the Recovery in ur PC>
Code:
fastboot boot <Name of the Recovery in ur PC>
6) DONE ! STOCK RECOVERY IS FLASHED and Remember to keep Stock Recovery img file in the ADB AND FASTBOOT FOLDER
Thanks I'll try this asap currently on a train..
Okay.. I've shipped it to the customer care. They said I'll have to wait 3 days for it to get back. I'll report back then.
Thank you everyone for your input.
Closed as this has run its course.

Unable to boot into TWRP, need to flash Gapps. no recoveries are working. help!

so i unlocked bootloader and unlocked my phone, also installed TWRP on my phone but then i wanted to install CM, i installed CM 13 but somehow GApps didn't went through now i'm with CM13 with no Gapps BUT TWRP is also not working anymore! i tried booting into TWRP, doesnt work. tried flashing TWRP, Nope. is there some other way of flashing Gapps? or making TWRP work again? any help will be greatly appreciated.
TechnoManiac98 said:
so i unlocked bootloader and unlocked my phone, also installed TWRP on my phone but then i wanted to install CM, i installed CM 13 but somehow GApps didn't went through now i'm with CM13 with no Gapps BUT TWRP is also not working anymore! i tried booting into TWRP, doesnt work. tried flashing TWRP, Nope. is there some other way of flashing Gapps? or making TWRP work again? any help will be greatly appreciated.
Click to expand...
Click to collapse
Hi,
you can try this:
Copy the downloaded recovery image (.img file) to the folder where you have placed your ADB and Fastboot.
Launch terminal (or command prompt on Windows).
Navigate to the directory where you have placed the ADB, Fastboot and .img file together.
Shut down your phone and reboot into boot loader. For nexus devices, simply hold volume down + power to start up the phone.
Connect your phone to your computer.
On terminal (or command prompt) window, write fastboot boot <img file name>, e.g. fastboot boot twrp.img.
Your phone will restart and will boot into the recovery mode.
Hint:
use adb reboot bootloader in CM13 to reboot into fastboot bootloader

HELP ! Phone won't boot after rooting

Hey guys so I'm panicking right now, so I just unlocked the bootloader, flashed TWRP and rooted my phone but now the phone won't boot it's just stuck at the boot icon with the two circles chasing each other, am I screwed and is my phone useless now ?
Don't worry, this is a common problem that occurs when you use an older version of SuperSU.
Flash SuperSU v2.79 to root. You won't even have to reflash the OS. Your phone should reboot once during the booting process.
Alternatively, you can reflash the stock OS and root with Magisk v11.1, which will also root your phone.
Anova's Origin said:
Don't worry, this is a common problem that occurs when you use an older version of SuperSU.
Flash SuperSU v2.79 to root. You won't even have to reflash the OS. You phone should reboot once during the booting process.
Alternatively, you can reflash the stock OS and root with Magisk v11.1, which will also root your phone.
Click to expand...
Click to collapse
Okay so can you tell me how to remove 2.78 before I flash 2.79 ? thanks
You don't need to remove it. Flashing the newer one should replace the older one. I had the same problem when I first rooted following a slightly outdated guide. Flashing the newest version fixed it without a problem.
Anova's Origin said:
You don't need to remove it. Flashing the newer one should replace the older one. I had the same problem when I first rooted following a slightly outdated guide. Flashing the newest version fixed it without a problem.
Click to expand...
Click to collapse
My phone isn't showing up on my pc as a removable storage and when I type adb devices my phone isn't showing up either
If you have a usb-C OTG adapter, the easiest way is to copy it onto a flash drive and flash from the drive in TWRP.
TWRP should also have a way of mounting your phone to your PC, though I've personally never managed to get it to work.
Also, I believe adb works while you're in recovery mode. You can use adb to push the superSU zip to your phone's internal storage. If you aren't sure how to use adb, the toolkit consolidates all of the useful commands together.
Anova's Origin said:
If you have a usb-C OTG adapter, the easiest way is to copy it onto a flash drive and flash from the drive in TWRP.
TWRP should also have a way of mounting your phone to your PC, though I've personally never managed to get it to work.
Also, I believe adb works while you're in recovery mode. You can use adb to push the superSU zip to your phone's internal storage. If you aren't sure how to use adb, the toolkit consolidates all of the useful commands together.
Click to expand...
Click to collapse
I managed to flash 2.79 but I don't think it worked, still stuck booting, will leave it for a few minutes though to see if anything changes, any suggestions if that wasn't the issue ?
Dirty flash whatever version of OOS you're on, wipe delvic/cache, then immediately flash SuperSU without rebooting recovery.
Anova's Origin said:
Dirty flash whatever version of OOS you're on, wipe delvic/cache, then immediately flash SuperSU without rebooting recovery.
Click to expand...
Click to collapse
I have no idea how to do any of that, I'm a beginner could you explain to me please ?
stefinho said:
I have no idea how to do any of that, I'm a beginner could you explain to me please ?
Click to expand...
Click to collapse
1) Download the full ROM of OOS from OnePlus (ignore their instructions, they are assuming that you have the stock recovery installed).
2) Transfer the full zip onto your phone.
3) Boot into TWRP
4) Find where you've put the full ROM on your internal storage and flash it
5) Once TWRP finishes flashing it, tap the "wipe dalvik/cache" button, DO NOT REBOOT (if you reboot at this point, your TWRP will be replaced with stock recovery)
6) Press back on TWRP, find your SuperSU.zip and flash that
7) Reboot
This process replaces any non-user files that may have been damaged. You won't lose any data or the apps that you have downloaded. This will replace the recovery with stock if you do not root immediately before rebooting.
Anova's Origin said:
1) Download the full ROM of OOS from OnePlus.
2) Transfer the full zip onto your phone.
3) Boot into TWRP
4) Find where you've put the full ROM on your internal storage and flash it
5) Once TWRP finishes flashing it, tap the "wipe dalvik/cache" button, DO NOT REBOOT (if you reboot at this point, your TWRP will be replaced with stock recovery)
6) Press back on TWRP, find your SuperSU.zip and flash that
7) Reboot
Click to expand...
Click to collapse
Thanks, will try that now.
Anova's Origin said:
1) Download the full ROM of OOS from OnePlus (ignore their instructions, they are assuming that you have the stock recovery installed).
2) Transfer the full zip onto your phone.
3) Boot into TWRP
4) Find where you've put the full ROM on your internal storage and flash it
5) Once TWRP finishes flashing it, tap the "wipe dalvik/cache" button, DO NOT REBOOT (if you reboot at this point, your TWRP will be replaced with stock recovery)
6) Press back on TWRP, find your SuperSU.zip and flash that
7) Reboot
This process replaces any non-user files that may have been damaged. You won't lose any data or the apps that you have downloaded. This will replace the recovery with stock if you do not root immediately before rebooting.
Click to expand...
Click to collapse
DUDE, it worked thank you so much man really appreciate the help

Redmi 4X bootloop after installing TWRP?

Hi,
I'm having a bit of trouble. I had a brand new Redmi 4X, and I was advised to install TWRP, root it, and install the Xiaomi.eu rom until LineageOS is released. I unlocked the bootloader, flashed TWRP, managed to get into it once and now I can't do it again. When TWRP loaded it asked me for a password for decryption but it let me just skip it it seems (not sure if that is the problem) but now I can't boot normally, I can't boot into recovery, but fastboot seems to work okay. How do I go about fixing this?
I've tried reflashing TWRP but I still can't get to it, and I don't really know enough about this stuff to know where I've gone wrong.
UPDATE - I think this is to do with dm-verity and having the stock kernel installed. Now it's too late to undo what I've already done, so I hope to god that someone knows how to fix this.
UPDATE - Right, the problem is solved I think. I had to do an awful lot of googling, and I'm not entirely sure what it was specifically that fixed it. But I found a guide that taught me the fastboot command "fastboot boot twrp.img" which saved the day. Even when my phone wouldn't let me into recovery, it allowed me to flash a no-verity.zip which i think is what allowed me to boot, and it allowed me to flash superSU.zip and then the ROM I was aiming for. And now I've booted into the ROM successfully and hopefully I am rooted and all is well. Plus I can access TWRP as normal now.
Any help would be greatly appreciated
Can you boot into TWRP by pressing the buttons so that you boot directly to TWRP??
Have you tried Command Prompt to boot with commands in to recovery??
And if you get into TWRP you should have everything on the SDCard and then just
format all things except SDCard and then flash from SDCard everything
That is what I would try..and yes it ask for a password but just skip it to get to it
If you can get into TWRP to flash from SDCard then you good to go..if not
Google all the commands for CMD..and plug your phone to the PC and flash everything with the
commands.....
Let us know what is working and what not and what steps exectly you are doing
EDIT
Turn off your device > Press and hold “Power” and “Volume +” buttons at the same time.
After short vibration signal release the power button and wait for TWRP to start.
To boot in stock recovery open “Update” app.
In the setting select “Boot in recovery”.
brljak83 said:
Can you boot into TWRP by pressing the buttons so that you boot directly to TWRP??
Have you tried Command Prompt to boot with commands in to recovery??
And if you get into TWRP you should have everything on the SDCard and then just
format all things except SDCard and then flash from SDCard everything
That is what I would try..and yes it ask for a password but just skip it to get to it
If you can get into TWRP to flash from SDCard then you good to go..if not
Google all the commands for CMD..and plug your phone to the PC and flash everything with the
commands.....
Let us know what is working and what not and what steps exectly you are doing
EDIT
Turn off your device > Press and hold “Power” and “Volume +” buttons at the same time.
After short vibration signal release the power button and wait for TWRP to start.
To boot in stock recovery open “Update” app.
In the setting select “Boot in recovery”.
Click to expand...
Click to collapse
Thanks for the reply. I can't get into TWRP. Even if I could get into TWRP how would I get files on the phone to flash them?
Is it possible to flash any rom from the pc directly and if it is will this possibly help? I think it's not booting because the kernel is still stock.
I'm not sure what you mean in the edit, how do I boot into stock recovery without being able to boot the phone (and when I have already flashed TWRP)?
brokemyG2 said:
Thanks for the reply. I can't get into TWRP. Even if I could get into TWRP how would I get files on the phone to flash them?
Is it possible to flash any rom from the pc directly and if it is will this possibly help? I think it's not booting because the kernel is still stock.
I'm not sure what you mean in the edit, how do I boot into stock recovery without being able to boot the phone (and when I have already flashed TWRP)?
Click to expand...
Click to collapse
Hii
I just have been reading about this bootloop
Go over here and read all of the 6 pages..will not take much time but could help you out much
https://forum.xda-developers.com/xiaomi-redmi-4x/development/official-twrp-3-2-1-0-xiaomi-redmi-4x-t3718217
Hey, I have exactly the same problem. Latest stock rom, flashed twrp in fastboot and got into the boot loop. Nothing works. I can only enter fastboot. What exactly did you do then? What is this no-verity.zip? I can't find anything about it.
I had a problem
I unlocked bootloader then installed redwolf recovery and took a nandroid backup. After that i rebooted to system but stuck into bootloop, could not boot to recovery, could not boot into system, So the only thing worked was that i flashed fastboot rom with mi flasher. And syccessfully rebooted to system with bootloader locked and stock recovery. So, if anyone have same problem you can do the same. How do i install recovery safely again? Should i use TWRP only? Should i flash v3.1.0 with lazy flasher or v3.2 directly without lazy flasher? I don't want to stuck into bootloader again, have to get all data deleted.

Categories

Resources