Required Help with connecting phone to PC in order to root - One (M7) Q&A, Help & Troubleshooting

I am trying to root my device, to the final goal of installing a Nougat build on it. Been browsing through lots of guides, including this one which looks rather friendly:
https://www.idroidspace.com/how-to-root-htc-one-m7/
The problem is that the software did not recognize my phone.
I have enabled USB debugging. the PC detects the phone, I also have HTC Driver installed (downloaded HTC Sync Manager).
I also unlocked the boot-loader in the past, with success to the best of my knowledge (anyway I can confirm?).
Another problem I got that may come from the same source is that when opening command prompt and putting ADB Devices it wouldn't detect anything.
I have already old version of TWRP installed but I cannot flash the nougat from it, and in order to update the TWRP I wanted to root the device.
Am pretty much a beginner but can follow orders.

Droriley said:
I am trying to root my device, to the final goal of installing a Nougat build on it.
Click to expand...
Click to collapse
It's a waste of time to root if you're planning to flash a Nougat rom. It's a well spread misconception when ppl say "I want to root my phone" cause you're not rooting the phone, you're rooting the operating system on it (the rom). Most custom roms are pre-rooted so when flashing it on your phone you'll already have root. If you flash a non-rooted rom over your already rooted rom, you'll loose root hence why it's a waste of time to do it now. The only thing needed to flash a custom rom is a unlocked bootloader and a custom recovery.
Been browsing through lots of guides, including this one which looks rather friendly:
https://www.idroidspace.com/how-to-root-htc-one-m7/
The problem is that the software did not recognize my phone.
Click to expand...
Click to collapse
Outdated guide and tools
I also unlocked the boot-loader in the past, with success to the best of my knowledge (anyway I can confirm?).
Click to expand...
Click to collapse
Reboot in bootloader mode and check the first line of text it will either be ***LOCKED*** ***UNLOCKED*** or ***RELOCKED***
Another problem I got that may come from the same source is that when opening command prompt and putting ADB Devices it wouldn't detect anything.
Click to expand...
Click to collapse
Make sure you have the latest drivers version. ADB commands are only usable when booted in the OS with usb debugging turned on and you also need to unlock your screen once after connecting the phone to your PC. ADB commands will also work when booted in TWRP recovery. WIll not work in bootloader mode where you have to use FASTBOOT commands.
I have already old version of TWRP installed but I cannot flash the nougat from it
Click to expand...
Click to collapse
What is your twrp version and what rom do you want to flash? What is your "fastboot getvar all" ?
and in order to update the TWRP I wanted to root the device.
Click to expand...
Click to collapse
You don't need root to update TWRP, just flash the latest version using fastboot in bootloader mode:
Code:
fastboot flash recovery file_name.img
fastboot erase cache
fastboot reboot-bootloader

Alray, thanks for your thorough reply. I'd appreciate further help.
Reboot in bootloader mode and check the first line of text it will either be ***LOCKED*** ***UNLOCKED*** or ***RELOCKED***
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
https://www.dropbox.com/s/iyxepbaiu4x1uva/2017-06-12 00.23.29.jpg?dl=0
I believe the Bootloader is indeed unlocked.
Make sure you have the latest drivers version. ADB commands are only usable when booted in the OS with usb debugging turned on and you also need to unlock your screen once after connecting the phone to your PC. ADB commands will also work when booted in TWRP recovery. WIll not work in bootloader mode where you have to use FASTBOOT commands.
Click to expand...
Click to collapse
I don't know where from do I get the latest ADB drivers. As said, I downloaded HTC Sync Manager.
USB Debugging is turned on.
I tried in TWRP Recovery - still with no success.
What is your twrp version and what rom do you want to flash? What is your "fastboot getvar all" ?
Click to expand...
Click to collapse
https://www.dropbox.com/s/n8gojoe3jgv8wzm/2017-06-12 00.24.19.jpg?dl=0
You don't need root to update TWRP, just flash the latest version using fastboot in bootloader mode:
Click to expand...
Click to collapse
Much like trying to flash the below rom - I was not able to flash the newer TWRP.
https://www.dropbox.com/s/l2wvgrhjgifjlcp/2017-06-12 00.24.51.jpg?dl=0
https://www.dropbox.com/sh/jhmyj852saithxa/AABalcp37aOSFrI2FTarRTUoa?dl=0
Code:
fastboot flash recovery file_name.img
fastboot erase cache
fastboot reboot-bootloader
Click to expand...
Click to collapse
Need assistance with the step before.

Droriley said:
Alray, thanks for your thorough reply. I'd appreciate further help.
https://www.dropbox.com/s/iyxepbaiu4x1uva/2017-06-12 00.23.29.jpg?dl=0
I believe the Bootloader is indeed unlocked.
I don't know where from do I get the latest ADB drivers. As said, I downloaded HTC Sync Manager.
USB Debugging is turned on.
I tried in TWRP Recovery - still with no success.
https://www.dropbox.com/s/n8gojoe3jgv8wzm/2017-06-12 00.24.19.jpg?dl=0
Much like trying to flash the below rom - I was not able to flash the newer TWRP.
https://www.dropbox.com/s/l2wvgrhjgifjlcp/2017-06-12 00.24.51.jpg?dl=0
https://www.dropbox.com/sh/jhmyj852saithxa/AABalcp37aOSFrI2FTarRTUoa?dl=0
Need assistance with the step before.
Click to expand...
Click to collapse
TWRP 2.6.3.0 is really outdated. This version does not have the required kernel to support the fstab file system used by recent roms. You need at least twrp 2.7.1.1, or the latest version: 3.1.N0.0
Are you using the original usb cable that came with the phone? If no you might want to double check if your usb cable is capable of data transfer (there are usb cables that only have the +5v and ground connections for charging but not the data+ and data- connections). Try another usb ports/cable.

alray said:
TWRP 2.6.3.0 is really outdated. This version does not have the required kernel to support the fstab file system used by recent roms. You need at least twrp 2.7.1.1, or the latest version: 3.1.N0.0
Are you using the original usb cable that came with the phone? If no you might want to double check if your usb cable is capable of data transfer (there are usb cables that only have the +5v and ground connections for charging but not the data+ and data- connections). Try another usb ports/cable.
Click to expand...
Click to collapse
This one ain't good? https://twrp.me/site/update/2017/05/19/twrp-3.1.1-0-released.html
any other way I can sort it out? I cannot manage to connect to my phone via command promp - I tried both in Fast boot and in Recovery.
PC feels the phone though - when on normal landing page I can see the phone content on explorer + it generates HTC Sync Manager.
Any way I can flash the updated TWRP from phone itself?

Droriley said:
PC feels the phone though - when on normal landing page I can see the phone content on explorer + it generates HTC Sync Manager.
Click to expand...
Click to collapse
You need to uninstall HTC sync manager, otherwise it will not work.
Or eaven better way is to install just naked drivers instead of sync manager.

Tarx100 said:
You need to uninstall HTC sync manager, otherwise it will not work.
Or eaven better way is to install just naked drivers instead of sync manager.
Click to expand...
Click to collapse
Where from?
Sent from my SM-G920F using Tapatalk

Related

[Q] Soft Bricked my m7, adb and fastboot not working

I created a backup using twrp 2.6 , and just to be sure I tried restoring it, however it failed to restore and now i cant boot. I've bootloader and recovery working, however neither fastboot or adb sideloading is working so that i can flash another rom.
Please Help :crying:
akshat10 said:
I created a backup using twrp 2.6 , and just to be sure I tried restoring it, however it failed to restore and now i cant boot. I've bootloader and recovery working, however neither fastboot or adb sideloading is working so that i can flash another rom.
Please Help :crying:
Click to expand...
Click to collapse
sorry to answer you with more questions, but.....
what is the complete version of your recovery? 2.6.0.0? 2.6.3.3?
Why does it failed? any error message? What partitions did you backed-up and restored?
What is your adb version? you need 1.0.29 and above to use sideload
Code:
adb version
do you have installed your drivers to use fastboot and adb? What does it say in windows device manager when your phone is in bootloader? and in recovery?
What is your computer OS?
What is your bootloader version?
alray said:
sorry to answer you with more questions, but.....
what is the complete version of your recovery? 2.6.0.0? 2.6.3.3?
Why does it failed? any error message? What partitions did you backed-up and restored?
What is your adb version? you need 1.0.29 and above to use sideload
Code:
adb version
do you have installed your drivers to use fastboot and adb? What does it say in windows device manager when your phone is in bootloader? and in recovery?
What is your computer OS?
What is your bootloader version?
Click to expand...
Click to collapse
Hi, thanks for the help,
1. Version of recovery 2.6.3.0
2. The backup was successfully created, i still have it, but when im trying to recover it it does not give any error message the log I get above is:
akshat10 said:
Hi, thanks for the help,
1. Version of recovery 2.6.3.0
Click to expand...
Click to collapse
2.6.3.0 is outdated. Latest version is 2.7.1.1 but we recommend using 2.6.3.3 or 2.6.3.4
2. The backup was successfully created, i still have it, but when im trying to recover it it does not give any error message the log I get above is:
Click to expand...
Click to collapse
is ?
waiting for 3-4-5-6
Hi, thanks for the help,
1. Version of recovery 2.6.3.0
2. The backup was successfully created, i still have it, but when im trying to recover it it does not give any error message the log I get above is:
[RESTORE STARTED]
It restores the boot, and data.
then, I see:
Wiping System
Formatting System using make_ext4fs function.
Restoring System...
and then I see a message Failed flashed at the top of the scree.
3. adb version is 1.0.31
4. My drivers worked perfectly tomorrow, thats when I rooted my m7,so today I thought of flashing a custom rom, I took a backup using twrp and just to be sure it was all backed up, I tried restoring it, however it failed with the same message,also today the drivers dont seem to be working after the failed restoration, the device manager shows it as a portable device today when connected in recovery, whereas was showing it as an android device yesterday.
When in fastboot mode, a message showing installing android 1.0 is flashed and the phone also shows connected to FASTBOOT USB, but the fastboot devices command returns nothing and so does the adb devices command.
5. I have a windows 8.1 system.
6.Bootloader Details are:
M7_U PVT SHIP S-ON RH
HBOOT-1.57.0000
RADIO-4T.27.3218.14
OPEN-DSP- v32.120.274.0909
OS-5.12.707.104
Sorry, I'm completely new to this, thanks for your help !
akshat10 said:
4. My drivers worked perfectly tomorrow
Click to expand...
Click to collapse
well wait for tomorrow yeah i know, you meant yesterday...
First you will need to fix your drivers issue.
try this fix:
originally from @nkk71: [GUIDE] [02-MAR-2014] nkk71's SuperGUIDE to returning 100% back to stock
2) Q: I'm using Windows 7 what should I worry about
A: when you issue the command "fastboot boot CWM.img" (now only in CWM/TWRP restore method) there's a high chance drivers won't correctly install
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
follow the below instructions to fix
Open "Device Manager" -> select the unknown "One" -> right-click -> "Update Driver Software ..." -> "Browse my computer" -> "Let me pick" -> "Android USB Devices" -> select "My HTC ..." -> install that
just in case, HTC Drivers can be found here: [Drivers] HTC Drivers for Windows - Several Versions (credits to @mdmower)
though you should already have them since you have been using your phone anyways​
for those who like a visual guide:
okay so I did a fastboot boot command, and as you can see it didnt install correct driver
Open "Device Manager"
there's the culprit
right click and Update Driver Software
select Browse my computer for driver software
select Let me pick from a list of device drivers on my computer
select Android USB Devices
select My HTC ... (if you have more than one version, choose the latest)
warning, select Yes
successful installation
now it looks better
and can confirm:
Code:
C:\ADB3>[B]adb devices[/B]
List of devices attached
HTxxxxxxxxxx recovery
-------------------------------------------------------------------------------------------------------------------------------------------
if it doesn't works, try different usb ports, different cables even another computer (best would be a win 7 computer, not 8.1). make sure you are not using any usb hub, connect phone dirrectly to computer, usb 2.0 ports preferred.
then when your drivers will be fixed. flash twrp 2.6.3.3 (anyway almost all newer rom required at least 2.6.3.3), clear cache and boot in recovery. try to restore the backup again. if it still fail, you'll be able to push and flash a rom to your phone.
also post the output of ''fastboot getvar all'' except imei and serialno when your drivers issues are fixed.
---------- Post added at 09:21 AM ---------- Previous post was at 09:16 AM ----------
im out for today, but im sure other members will comes here to assist. ill be back tomorrow
good luck
Got it working, turns out the drivers were fine, you have to switch the HTC Sync Manager once and the drivers start working properly.
Thanks for your help.
Would be grateful if you can give a guide to choosing a rom to flash ( odexed or de-odexed)
Thanks !
akshat10 said:
Got it working, turns out the drivers were fine, you have to switch the HTC Sync Manager once and the drivers start working properly.
Thanks for your help.
Would be grateful if you can give a guide to choosing a rom to flash ( odexed or de-odexed)
Thanks !
Click to expand...
Click to collapse
There is no guide for choosing a rom here, because rom comparison threads aren't allowed. Rom preferences are always subjective, you will need to find one that fits what you need.
http://forum.xda-developers.com/htc-one#romList
always read the rom OP carefully before flashing. Some roms have specific requirements. (i.e using a specific recovery, or s-off requirement for GPE roms)

[Q] TWRP 2.5.0.0 Unresponsive

Hello,
I while ago I decided to root my HTC to get some extra stuff. I used a guide on youtube that seemed to be reasonably well made and followed everystep of the process. But before I could root it I had to unlock the bootloader and install TWRP recovery. I got the latest version and proceeded to the next step, where I encountered my problem. After flashing the recovery everything seemed to be well except that my phone wasn't actually rooted. I decided to redo some of the last steps. This is where things get a bit tricky. I have done this quite a while ago (maybe 3-4 months) and don't exactly remember the steps that I repeated but I think I've also flashed TWRP a second time, as well as some other steps. And when it came to the part where I needed to use the recovery I found out that the recovery doesn't work. I can't press anything on the screen, I can however press the lock button and lock the device but when the *slide to unlock* appears it stops working again. I was running out of time and decided to leave it for another time but time has passed and I never really got the time to tinker with it any more since university started and I'm more busy then ever. This has left me with no ability to root or even update my phone.
This brings me to today, when I restored my phone completely forgetting what has happened. It got back to Android 4.1 and I can't do anything about it.
I hope to sort this out and finally root the phone. But even getting rid of TWRP to the original recovery so I could just update my phone would be very helpfull.
Thank you very much.
aleks945 said:
Hello,
I while ago I decided to root my HTC to get some extra stuff. I used a guide on youtube that seemed to be reasonably well made and followed everystep of the process. But before I could root it I had to unlock the bootloader and install TWRP recovery. I got the latest version and proceeded to the next step, where I encountered my problem. After flashing the recovery everything seemed to be well except that my phone wasn't actually rooted. I decided to redo some of the last steps. This is where things get a bit tricky. I have done this quite a while ago (maybe 3-4 months) and don't exactly remember the steps that I repeated but I think I've also flashed TWRP a second time, as well as some other steps. And when it came to the part where I needed to use the recovery I found out that the recovery doesn't work. I can't press anything on the screen, I can however press the lock button and lock the device but when the *slide to unlock* appears it stops working again. I was running out of time and decided to leave it for another time but time has passed and I never really got the time to tinker with it any more since university started and I'm more busy then ever. This has left me with no ability to root or even update my phone.
This brings me to today, when I restored my phone completely forgetting what has happened. It got back to Android 4.1 and I can't do anything about it.
I hope to sort this out and finally root the phone. But even getting rid of TWRP to the original recovery so I could just update my phone would be very helpfull.
Thank you very much.
Click to expand...
Click to collapse
The background information is helpful but you have given us nothing to go on.
Post a fastboot getvar all except remove the imei and serialno?
What are you trying to accomplish? Return to Stock? S-OFF?
majmoz said:
The background information is helpful but you have given us nothing to go on.
Post a fastboot getvar all except remove the imei and serialno?
What are you trying to accomplish? Return to Stock? S-OFF?
Click to expand...
Click to collapse
Tell me what background information do you need and I'll get everything.
The goal is to get a working recovery, which ever one it would be I don't really care. I just want to be able to update the firmware.
reboot into the bootloader. flash the latest twrp for your device using fastboot flash recovery recoverynamehere.zip
profit
jdgreat4 said:
reboot into the bootloader. flash the latest twrp for your device using fastboot flash recovery recoverynamehere.zip
profit
Click to expand...
Click to collapse
If you could give me a more detailed guide I would toatally do that, because I'm pretty noobish when it comes to this kind of stuff.
aleks945 said:
Tell me what background information do you need and I'll get everything.
The goal is to get a working recovery, which ever one it would be I don't really care. I just want to be able to update the firmware.
Click to expand...
Click to collapse
like he said before, post the output of "fastboot getvar all" except your IMEI and SERIALNO
---------- Post added at 11:06 AM ---------- Previous post was at 11:05 AM ----------
aleks945 said:
If you could give me a more detailed guide I would toatally do that, because I'm pretty noobish when it comes to this kind of stuff.
Click to expand...
Click to collapse
do you have adb and fastboot on your computer?
Do you have HTC drivers installed?
alray said:
like he said before, post the output of "fastboot getvar all" except your IMEI and SERIALNO
---------- Post added at 11:06 AM ---------- Previous post was at 11:05 AM ----------
do you have adb and fastboot on your computer?
Do you have HTC drivers installed?
Click to expand...
Click to collapse
I don't know what adb is, sorry. And no I don't, I had to do everything on my friend's laptop because it didn't seem to work on my machine (W8.1 compared to his W7).
Edit. But I do have acces to it pretty much all the time.
aleks945 said:
I don't know what adb is, sorry. And no I don't, I had to do everything on my friend's laptop because it didn't seem to work on my machine (W8.1 compared to his W7).
Click to expand...
Click to collapse
yes better to use windows 7
go ahead and download adb and fastboot from here: http://forum.xda-developers.com/showthread.php?t=2317790
download and install HTC sync from here: http://www.htc.com/us/support/software/htc-sync-manager.aspx
Once installed, uninstall HTC sync but keep the drivers installed
post back when done
alray said:
yes better to use windows 7
go ahead and download adb and fastboot from here: http://forum.xda-developers.com/showthread.php?t=2317790
download and install HTC sync from here: http://www.htc.com/us/support/software/htc-sync-manager.aspx
Once installed, uninstall HTC sync but keep the drivers installed
post back when done
Click to expand...
Click to collapse
The downloads are complete, just waiting on the instalation. The computer is quite old and slow unfortunatelly.
Thank you again
EDIT. Everything is done.
aleks945 said:
The downloads are complete, just waiting on the instalation. The computer is quite old and slow unfortunatelly.
Thank you again
EDIT. Everything is done.
Click to expand...
Click to collapse
ok so connect your phone with he usb cable to the computer, reboot it in bootloader mode (hold power and vol -). in bootloader select "fastboot"
then lauch the adb command prompt and type "fastboot getvar all". post the output here but edit out the imei and serialno before.
alray said:
ok so connect your phone with he usb cable to the computer, reboot it in bootloader mode (hold power and vol -). in bootloader select "fastboot"
then lauch the adb command prompt and type "fastboot getvar all". post the output here but edit out the imei and serialno before.
Click to expand...
Click to collapse
Here it is.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Link since image seems to be really tiny.
http://i.imgur.com/9cZZRA9.jpg
aleks945 said:
Here it is.
Link since image seems to be really tiny.
http://i.imgur.com/9cZZRA9.jpg
Click to expand...
Click to collapse
you can flash twrp 2.6.3.3
download the file and save it in the same folder where you have installed minimal adb and fastboot
then open the command prompt and with the phone in bootloader/fastboot mode enter these commands:
Code:
fastboot flash recovery openrecovery-twrp-2.6.3.3-m7.img
fastboot erase cache
fastboot reboot-bootloader
What do you want to achieve then? Custom rooted rom? stock rooted rom (latest version)? or you simply what to root the rom you currently have?
alray said:
you can flash twrp 2.6.3.3
download the file and save it in the same folder where you have installed minimal adb and fastboot
then open the command prompt and with the phone in bootloader/fastboot mode enter these commands:
Code:
fastboot flash recovery openrecovery-twrp-2.6.3.3-m7.img
fastboot erase cache
fastboot reboot-bootloader
What do you want to achieve then? Custom rooted rom? stock rooted rom (latest version)? or you simply what to root the rom you currently have?
Click to expand...
Click to collapse
Latest stock rooted ram would be the final goal.
aleks945 said:
Latest stock rooted ram would be the final goal.
Click to expand...
Click to collapse
you can flash this rom: http://www.androidrevolution.org/downloader/download.php?file=One_6.09.401.5_odexed.zip
its the stock rom for 6.09.401.5
alray said:
you can flash this rom: http://www.androidrevolution.org/downloader/download.php?file=One_6.09.401.5_odexed.zip
its the stock rom for 6.09.401.5
Click to expand...
Click to collapse
Doesn't my phone have to be rooted to be able to instal another rom?
aleks945 said:
Doesn't my phone have to be rooted to be able to instal another rom?
Click to expand...
Click to collapse
no just flash the rom from twrp recovery then you can root it if you want.

Help - cannot enter system after clean installation of Android Revolution

So aftter downloading the Android Revolution and wiping the data, I tried installing the ROM.
However it keeps booting into recovery mode. I have no idea how to fix this.
The phone tries to boot up normally, but fails to do so. It restarts and boots into recovery. (TWRP 2.5.0.0)
I have tried deleting installing a few times. Where I cleared both the cache and dalvik cache.
Still nothing. Is there any way to get another ROM onto my phone now? My computer doesn't recognize the device anymore.
After the installation it says complete, but shows an error: "set_metadata_recursive: some changes failed"
after this it says: "installation was succesful!" and tells me to do 1 full system boot before flashing mods.:crying::crying:
"Update, I found out I used a rom designed for M8 and not M7.
If anyone could help me getting ADB to work and a rom I can flash and pretty much a tutorial. I would be super grateful
So I found a m7 rom. But when trying to push it using ADB it takes a really long time and ends in protocol error.
Aisu64 said:
boots into recovery. (TWRP 2.5.0.0)
Click to expand...
Click to collapse
Here is one problem. You won't be able to flash any recent roms using twrp 2.5.0.0. Update your recovery first: https://dl.twrp.me/m7/
Code:
fastboot flash recovery name_of_file.img
fastboot erase cache
fastboot reboot-bootloader
make sure you have the latest adb version (1.0.32) using the command:
Code:
adb version
If not update your android sdk-tools: https://developer.android.com/sdk/index.html#Other
Also make sure you have the latest htc drivers installed on your computer
With the latest twrp and drivers you'll be able to transfer a rom to your phone using MTP protocol when booted in twrp main menu (simply drag and drop your file from your computer to your phone storage).
If using newer roms (android 5.0.2) your phone must have a 7.xx.xxx.x firmware installed on it. Older firmware running new roms cam have issues. To determine your firmware version, use the command "fastboot getvar version-main" or "fastboot getvar all"
Finally pushed the files to the phone.
But after installing my phone still keeps entering recovery mode (twrp).
Aisu64 said:
Finally pushed the files to the phone.
But after installing my phone still keeps entering recovery mode (twrp).
Click to expand...
Click to collapse
Did you updated your twrp recovery?
alray said:
Here is one problem. You won't be able to flash any recent roms using twrp 2.5.0.0. Update your recovery first: https://dl.twrp.me/m7/
Code:
fastboot flash recovery name_of_file.img
fastboot erase cache
fastboot reboot-bootloader
Can you help me a little bit? I can't see the device connected unless I'm in recovery. Can I flash a recovery in recovery?
Click to expand...
Click to collapse
Aisu64 said:
Here is one problem. You won't be able to flash any recent roms using twrp 2.5.0.0. Update your recovery first: https://dl.twrp.me/m7/
Code:
fastboot flash recovery name_of_file.img
fastboot erase cache
fastboot reboot-bootloader
Can you help me a little bit? I can't see the device connected unless I'm in recovery. Can I flash a recovery in recovery?
Click to expand...
Click to collapse
afaik, not with 2.5.0.0. If you can't see the device when in bootloader / fastboot usb mode then you have drivers issues. make sur eyou have latest htc drivers installed. If needed download htc sync. This will install htc sync and the latest drivers. Then uninstall htc sync (but don't uninstall the drivers). You don't want HTC sync on your computer because it will interfere with fastboot / adb connectivity.
alray said:
Aisu64 said:
afaik, not with 2.5.0.0. If you can't see the device when in bootloader / fastboot usb mode then you have drivers issues. make sur eyou have latest htc drivers installed. If needed download htc sync. This will install htc sync and the latest drivers. Then uninstall htc sync (but don't uninstall the drivers). You don't want HTC sync on your computer because it will interfere with fastboot / adb connectivity.
Click to expand...
Click to collapse
I have tried deleting, restarting and reinstalling the drivers. But my phone wont show up under devices anymore. I really appreciate your help, but I really have to go to bed as I have a long day at work tomorrow.
Click to expand...
Click to collapse
Aisu64 said:
I have tried deleting, restarting and reinstalling the drivers. But my phone wont show up under devices anymore. I really appreciate your help, but I really have to go to bed as I have a long day at work tomorrow.
Click to expand...
Click to collapse
No problem, go take some rest and I'll help you later :good:
alray said:
No problem, go take some rest and I'll help you later :good:
Click to expand...
Click to collapse
So I've been playing around installing and reinstalling and deleting and restarting my computer.
My computer can see the device only in recovery. Everytime I'm in the bootloader/fastboot menu it dissapears from the device list in ADB.
Is it possible to flash the phone while in recovery?
Aisu64 said:
So I've been playing around installing and reinstalling and deleting and restarting my computer.
My computer can see the device only in recovery. Everytime I'm in the bootloader/fastboot menu it dissapears from the device list in ADB.
Click to expand...
Click to collapse
you won't get any adb connectivity when booted in bootloader / fastboot usb mode. ADB only works from a booted rom with usb debug turned on or from a custom recovery. In bootloader you must use fastboot commands. To see if your phone is detected by your computer when in bootlaoder / fastboot usb mode, use the command "fastboot devices"
If your phone isn't listed with this command, please post a screenshot of your Windows devices manager with the phone connected and booted in bootloader / fastboot usb mode. Also need to know what is your bootloader version? 1.44/1.54/1.55/1.56/1.57 or 1.61 ? You can see this info when booted in bootloader mode
Is it possible to flash the phone while in recovery?
Click to expand...
Click to collapse
You might want to read what I said again:
You won't be able to flash any recent rom using twrp 2.5.0.0
You can't flash a new recovery using twrp 2.5.0.0, you must use fastboot
:good:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It says Hboot - 1.44
atm I can't even get it to show up in recovery.
Screenshot: http://imgur.com/So88OLm
Aisu64 said:
It says Hboot - 1.44
atm I can't even get it to show up in recovery.
Screenshot: http://imgur.com/So88OLm
Click to expand...
Click to collapse
ok hboot 1.44 is the oldest one and have compatibility issues with windows 8 and 10. Do you have access to a windows 7 computer?
alray said:
ok hboot 1.44 is the oldest one and have compatibility issues with windows 8 and 10. Do you have access to a windows 7 computer?
Click to expand...
Click to collapse
Yes I do. A super ancient one.
Also this is how it looks like when I'm in recovery: http://imgur.com/SxW9p66
Aisu64 said:
Yes I do. A super ancient one.
Click to expand...
Click to collapse
Please setup everything on this computer (HTC drivers + Android sdk tools (adb and fastboot), this will be much easier to work with Win7 because of your 1.44 hboot. Later, once your hboot will be updated, you'll be able to use your Win10 computer without any problem but for now better to work with Win7. Once you got everything installed on your win7 computer, boot the phone in bootloader / fastboot usb mode and use the command "fastboot devices" to see if your phone is detected. If yes then use "fastboot getvar all" command. take a screenshot of this command output and post it here (censor the IMEI number and the SERIALNO number before uploading your picture). Don't update the recovery for now.
Also this is how it looks like when I'm in recovery: http://imgur.com/SxW9p66
Click to expand...
Click to collapse
Everything is fine here.
alray said:
Please setup everything on this computer (HTC drivers + Android sdk tools (adb and fastboot), this will be much easier to work with Win7 because of your 1.44 hboot. Later, once your hboot will be updated, you'll be able to use your Win10 computer without any problem but for now better to work with Win7. Once you got everything installed on your win7 computer, boot the phone in bootloader / fastboot usb mode and use the command "fastboot devices" to see if your phone is detected. If yes then use "fastboot getvar all" command. take a screenshot of this command output and post it here (censor the IMEI number and the SERIALNO number before uploading your picture). Don't update the recovery for now.
Everything is fine here.
Click to expand...
Click to collapse
You might aswell type the next part. Cuz this will be taking a few hours ^^
Aisu64 said:
You might aswell type the next part. Cuz this will be taking a few hours ^^
Click to expand...
Click to collapse
well I need to see your "fastboot getvar all" before i can tell anything more.
alray said:
well I need to see your "fastboot getvar all" before i can tell anything more.
Click to expand...
Click to collapse
My windows 7 computer keeps asking for a "android 1.0" driver, even though I installed the HTC one m7 driver package downloaded from HTC. I also tried installing HTC Sync, but it doesn't seem to help. Also it only shows "Android 1.0" while in fastboot so I assume this is the fastboot driver?
one more thing. I can't get it to show it's connected to ADB while in recovery.
Aisu64 said:
My windows 7 computer keeps asking for a "android 1.0" driver, even though I installed the HTC one m7 driver package downloaded from HTC. I also tried installing HTC Sync, but it doesn't seem to help. Also it only shows "Android 1.0" while in fastboot so I assume this is the fastboot driver?
one more thing. I can't get it to show it's connected to ADB while in recovery.
Click to expand...
Click to collapse
Strange, it should be easy to make it work on win7. You might want to try this drivers: http://forum.xda-developers.com/goo...nt/adb-fb-apx-driver-universal-naked-t2513339
alray said:
Strange, it should be easy to make it work on win7. You might want to try this drivers: http://forum.xda-developers.com/goo...nt/adb-fb-apx-driver-universal-naked-t2513339
Click to expand...
Click to collapse
I borrowed a friends win7 computer and fastboot works! After installing the drivers you linked me to. Here is a screenshot! http://imgur.com/CN0uLu6

my problem

hi
my problem is
I tried to downgrade my phone
android 6 to 5
My phone was incomplete downgrade
And now when turned off and turned on
Stuck on the
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Please tell me what is the alternative
No option is not enabled
no recovery
no Emergency Updates
only fastboot mod
the fastboot mode is worked
rezaghaedamini said:
the fastboot mode is worked
Click to expand...
Click to collapse
Take it to Huawei customer service center. I lost one of my phones coz it had the same problem. Tried everything but couldn't revive it.
Took it to a shop to repair and he messed it up.
Connect to pc or laptop and open command prompt to adb folder and type fastboot devices if devices detected then we proceed http://forum.xda-developers.com/general/general/guide-flash-variant-version-firmware-t3506404.
Krish93 said:
Connect to pc or laptop and open command prompt to adb folder and type fastboot devices if devices detected then we proceed http://forum.xda-developers.com/general/general/guide-flash-variant-version-firmware-t3506404.
Click to expand...
Click to collapse
My bad, should have asked him to do this first. Mine was error 3 and wasn't revivable.
This error is different. Thanks for the help.
You need to unlock your device.
https://www.gizdev.com/install-twrp-3-0-root-honor-4x-emui-4-0/
1-unlock your device
2-run bootloader
3-install twrp
4-extract the honor firmware
http://forum.xda-developers.com/honor-4x/how-to/roll-to-emui-cm13-honor-4x-che1-l04-t3507998
5-follow the instructions as above link.
Krish93 said:
Connect to pc or laptop and open command prompt to adb folder and type fastboot devices if devices detected then we proceed http://forum.xda-developers.com/general/general/guide-flash-variant-version-firmware-t3506404.
Click to expand...
Click to collapse
i did
My phone did not change
dopserver said:
You need to unlock your device.
https://www.gizdev.com/install-twrp-3-0-root-honor-4x-emui-4-0/
1-unlock your device
2-run bootloader
3-install twrp
4-extract the honor firmware
http://forum.xda-developers.com/honor-4x/how-to/roll-to-emui-cm13-honor-4x-che1-l04-t3507998
5-follow the instructions as above link.
Click to expand...
Click to collapse
my phone is unlocked
and All these things did
Did not alter
rezaghaedamini said:
my phone is unlocked
and All these things did
Did not alter
Click to expand...
Click to collapse
Connect your phone to PC and keep device manager opened and see if device manager registers your phone.
Report back please...
muradulislam said:
Connect your phone to PC and keep device manager opened and see if device manager registers your phone.
Report back please...
Click to expand...
Click to collapse
MY English is not good please tell me What do you mean
device manager to phone
or to pc
rezaghaedamini said:
MY English is not good please tell me What do you mean
device manager to phone
or to pc
Click to expand...
Click to collapse
Keep your PC device manager open and connect your phone to PC, does it register as a new device...
not big deal ,
Do The following
Install Fastboot files .
Download TWRP .
Connect Ur Device with Fastboot ,
Flash Ur TWRP Throw Fastboot .
Boot To TWRP
FLASH STOCK img Files One By one
This Step Not Recommended but also :
Throw Fast-boot Flash UR Stock .img files .
Romiui said:
not big deal ,
Do The following
Install Fastboot files .
Download TWRP .
Connect Ur Device with Fastboot ,
Flash Ur TWRP Throw Fastboot .
Boot To TWRP
FLASH STOCK img Files One By one
This Step Not Recommended but also :
Throw Fast-boot Flash UR Stock .img files .
Click to expand...
Click to collapse
tnk not work
rezaghaedamini said:
tnk not work
Click to expand...
Click to collapse
it should otherwise there is an wrong step u did ! .
rezaghaedamini said:
tnk not work
Click to expand...
Click to collapse
If your PC does not make a sound when you connect your phone to it then you have to first install drivers.
I am sure that is the case here, your PC is not recognizing your phone.
muradulislam said:
If your PC does not make a sound when you connect your phone to it then you have to first install drivers.
I am sure that is the case here, your PC is not recognizing your phone.
Click to expand...
Click to collapse
I have installed drivers
And when I connect the phone to the sound system
Only through the Fast Boot
rezaghaedamini said:
I have installed drivers
And when I connect the phone to the sound system
Only through the Fast Boot
Click to expand...
Click to collapse
So fastboot is working... Do you have an unlocked bootloader?
Fastboot screen is simple or with red error message?
muradulislam said:
So fastboot is working... Do you have an unlocked bootloader?
Fastboot screen is simple or with red error message?
Click to expand...
Click to collapse
yes i am bootloader unlocked
Both options
Red and simple
i can Write files via Fast Boot
and write android 4 5 6
5 file
boot
system
recovery
cust
userdata
and not work
and write twrp recovery
and not work
rezaghaedamini said:
yes i am bootloader unlocked
Both options
Red and simple
i can Write files via Fast Boot
and write android 4 5 6
5 file
boot
system
recovery
cust
userdata
and not work
and write twrp recovery
and not work
Click to expand...
Click to collapse
Make a dload folder in SD card And copy update.app of the latest firmware to it.
Then, flash only recovery and boot of the latest firmware for your phone. (Extracted from update.app which you copied to SD)
After flashing above image files, type
Fastboot reboot
Quickly disconnect from pc and press and hold power + vol up + vol down until screen turns on. Let go of power but keep other two pressed for five, six sec more.
Lemme know how it works.
if stock wont work then try custom rom , install custom recovery and install custom rom .

Sony Xperia XA2 - Flashing TWRP stuck on "waiting for any device"

HELP!
I installed platform-tools_r33.0.2-windows and UniversalAdbDriverSetup, now i'm trying to flash TWRP on the XA2 Phone by using this cmd command:
adb devices
- daemon not running, starting now at xxx
adb flash recovery twrp.img
- waiting for any device
What am i doing wrong?? Please help!!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Boot phone in fastboot mode
Execute "fastboot flash recovery twrp.img"
LR7875 said:
Boot phone in fastboot mode
Execute "fastboot flash recovery twrp.img"
Click to expand...
Click to collapse
How? Im pressing volume up and then connecting the phone to the pc, then i see a blue light. Is this fastboot mode? Thats what im already doing for 3 hours...
Yeah just did it again... volumeup+connect phone to pc, blue light appears on phone (fastboot mode i asume).
on pc in cmd i type adb devices, it starts the daemon.
then i type "fasboot flash recovery twrp.img"
result in cmd: "waiting for any device"
Wtf?
I swear this is so cancer can't handle this ****, the F is wrong with sony? This phone is buggy AF im trying to insall TWRP for like 4 hours now, this is a ****ing joke. What a waste of time.
Try the 15 seconds adb and fastboot driver if you haven't already
LR7875 said:
Try the 15 seconds adb and fastboot driver if you haven't already
Click to expand...
Click to collapse
This? https://forum.xda-developers.com/t/...vers-15-seconds-adb-installer-v1-4-3.2588979/
I doubt it will be any different from the platformtools adb? How could this help?
LR7875 said:
Try the 15 seconds adb and fastboot driver if you haven't already
Click to expand...
Click to collapse
You mean minimal adb ? or can you provide a link?
Connect the phone in fastboot mode (LED = blue) and open the device manager. Do you see the phone under "Other Devices" or "Android" with an exclamation mark? Then you need an ADB/bootloader interface driver. Get this for example:
https://developer.sony.com/file/download/xperia-xz2-driver/
(Yes, XZ2! There is no official XA2 driver)
Unzip it somewhere and force install the driver:
Right click on the device manager entry from above, "Update driver", "Browse my computer...", "Let me pick...", "List/show all...", "Have disk...", browse to the folder from above, open the selected .inf file and install.
Fastboot should work now. At least that's how I got it to work on a new PC.
BTW, just use "fastboot devices" to check whether it works. If your device doesn't appear, you don't need to try other fastboot commands - it won't work.
I have this problem, when installing twrp to my Sony Xperia XA2 (H3123), I am trying to install several versions of Twrp, for example: twrp-3.2.2-0-pioneer.img, twrp-3.7.0_9-0 -pioneer.img, my Sony is on Android 9
Carljaynp03 said:
I have this problem, when installing twrp to my Sony Xperia XA2 (H3123), I am trying to install several versions of Twrp, for example: twrp-3.2.2-0-pioneer.img, twrp-3.7.0_9-0 -pioneer.img, my Sony is on Android 9
Click to expand...
Click to collapse
Did you unlock the bootloader ?
Carljaynp03 said:
View attachment 5734133
Click to expand...
Click to collapse
I agree with faraway, if i remember correctly when i had this issue i didn't unlock the bootloader.
I typed a specific number in the phone dial app and it said that the bootloader is unlocked, however there is another step you need to take that i had overlooked, you need a bootloader unlock code.
The code is free, not like with chinese spyware huawai they want your money for the code...
Unlock Bootloader - Open Devices - Sony Developer World
developer.sony.com
https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/how-to-unlock-bootloader/#tutorial-step-4
and use one of these commands in cmd/adb
fastboot flashing unlock
fastboot oem unlock
Carljaynp03 said:
View attachment 5734133
Click to expand...
Click to collapse
What is your end goal? To flash a custom ROM like LineageOS? Then you can temporarily flash a recovery image to the boot partition:
fastboot flash boot <recovery_filename>.img
You don't really need TWRP for this, just use the latest official LOS Recovery:
https://download.lineageos.org/pioneer
Also see: https://wiki.lineageos.org/devices/pioneer/install
Or do you want to "permanently" install TWRP on an existing system? Then you need to directly boot into TWRP and install it from its GUI:
fastboot boot <twrp_filename>.img
See: https://twrp.me/sony/sonyxperiaxa2.html
I haven't tried the latter on the XA2 yet though and don't know how permanent that installation really is. It maybe gone after an OTA update.
irgendwer2 said:
What is your end goal? To flash a custom ROM like LineageOS? Then you can temporarily flash a recovery image to the boot partition:
fastboot flash boot <recovery_filename>.img
You don't really need TWRP for this, just use the latest official LOS Recovery:
https://download.lineageos.org/pioneer
Also see: https://wiki.lineageos.org/devices/pioneer/install
Or do you want to "permanently" install TWRP on an existing system? Then you need to directly boot into TWRP and install it from its GUI:
fastboot boot <twrp_filename>.img
See: https://twrp.me/sony/sonyxperiaxa2.html
I haven't tried the latter on the XA2 yet though and don't know how permanent that installation really is. It maybe gone after an OTA update.
Click to expand...
Click to collapse
Booting a temprary image did not work when i tried it, most likely because the bootloader wasn't unlock.
Privacydroid said:
Booting a temprary image did not work when i tried it, most likely because the bootloader wasn't unlock.
Click to expand...
Click to collapse
Independent from the bootloader status: you can't flash an image directly to the recovery partition on the XA2/Pioneer (like he tried, see screenshot) because such a dedicated partition doesn't exist on this and other A/B devices. Instead the recovery is built into the boot image.
That's why you have to use fastboot flash boot instead of recovery.
irgendwer2 said:
Independent from the bootloader status: you can't flash an image directly to the recovery partition on the XA2/Pioneer (like he tried, see screenshot) because such a dedicated partition doesn't exist on this and other A/B devices. Instead the recovery is built into the boot image.
That's why you have to use fastboot flash boot instead of recovery.
Click to expand...
Click to collapse
follow the next steps you mentioned use: fastboot flash boot recovery from LineageOS, and my phone went into a constant boot shutdown and restart, then this message appeared
and the bootloader is open
Shutdown the phone after flashing the recovery image (it doesn't seem like you did that). Then hold Volume Down + Power to boot into recovery.
irgendwer2 said:
Independent from the bootloader status: you can't flash an image directly to the recovery partition on the XA2/Pioneer (like he tried, see screenshot) because such a dedicated partition doesn't exist on this and other A/B devices. Instead the recovery is built into the boot image.
That's why you have to use fastboot flash boot instead of recovery.
Click to expand...
Click to collapse
I get that the recovery is only for a temporary boot, when i tried it, it didn't work but i can't remember what the error was.

Categories

Resources