Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,742 Members 37,631 Now Online
XDA Developers Android and Mobile Development Forum

[q] twrp usb-otg to flash custom rom?

Tip us?
 
PhysiologyExpert
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Dec 2013
Unhappy [q] twrp usb-otg to flash custom rom?

Hello everybody; I did try to search if a similar thread had been posted and wasn't successful; so I'll try to explain my situation concisely. First time I rooted my HTC One I got a boot lop; but right before this I had done a factory reset using TWRP, and I think that means USB-debugging is off; I tried unrooting with an RUU file but couldn't find my specific one and tried others and they didn't work. So basically, I have access to the boot loader and TWRP, but I CAN'T use ADB commands since usb debugging is off; the device isn't detected and I've updated all my drivers and it detected the phone just fine when USB debugging was off (So drivers aren't the issue here)

So my question is this; can I save the CUSTOMROM.zip file to a USB flash drive, and then use a USB OTG and TWRP to flash it from there? If so, how? Otherwise I really see no choice but to sell the device as "semi-bricked" (?). Thanks in advance, any other piece of advice is greatly appreciated. Please Help!
 
alray
Old
#2  
alray's Avatar
Senior Member
Thanks Meter 953
Posts: 2,464
Join Date: May 2012
Location: Montreal

 
DONATE TO ME
Quote:
Originally Posted by PhysiologyExpert View Post
Hello everybody; I did try to search if a similar thread had been posted and wasn't successful; so I'll try to explain my situation concisely. First time I rooted my HTC One I got a boot lop
Have you tried to fastboot erase cache and reboot?

Quote:
but right before this I had done a factory reset using TWRP, and I think that means USB-debugging is off
Usb debugging only enable adb connection when phone is booted in the OS. You can still use ADB from custom recovery even if USB debugging is OFF.

Quote:
I tried unrooting with an RUU file but couldn't find my specific one and tried others and they didn't work.
Which ones? Also post a ''fastboot getvar all'' except imei and sn

Quote:
So basically, I have access to the boot loader and TWRP,
If you have access to bootloader and recovery then there is many solutions

Quote:
but I CAN'T use ADB commands since usb debugging is off
False, you can use adb from twrp recovery

Quote:
the device isn't detected and I've updated all my drivers and it detected the phone just fine when USB debugging was off (So drivers aren't the issue here)
Not sure what you are saying here. If your drivers are correctly installed, then your phone, when booted in twrp, should be detected as ADB interface in windows devices manager. So you can use adb to push or sideload a rom to your phone and then install it using twrp.

Quote:
can I save the CUSTOMROM.zip file to a USB flash drive, and then use a USB OTG and TWRP to flash it from there? If so, how?
Yes this is also a good option. make sure your usb drive is formatted to fat32, copy your rom.zip on it, connect it to the phone using a otg cable,. boot in twrp, select ''install'', click on ''storage: Internal Storage (X MB)'' then select ''USB OTG (X MB)'' and finally select the rom.zip

Quote:
Otherwise I really see no choice but to sell the device as "semi-bricked" (?)
no need to sell your phone!
If I've helped you, please hit the ''tanks'' button
If you want a reply, quote or mention me using @alray

Useful links for the HTC One:
nkk71's SuperGUIDE to returning 100% back to stock
Flashing requirements chart by nkk71
HTC1Guru.com by crushalot
The Following 2 Users Say Thank You to alray For This Useful Post: [ Click to Expand ]
 
PhysiologyExpert
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Dec 2013
Quote:
Originally Posted by alray View Post
Have you tried to fastboot erase cache and reboot?


Usb debugging only enable adb connection when phone is booted in the OS. You can still use ADB from custom recovery even if USB debugging is OFF.


Which ones? Also post a ''fastboot getvar all'' except imei and sn


If you have access to bootloader and recovery then there is many solutions


False, you can use adb from twrp recovery


Not sure what you are saying here. If your drivers are correctly installed, then your phone, when booted in twrp, should be detected as ADB interface in windows devices manager. So you can use adb to push or sideload a rom to your phone and then install it using twrp.


Yes this is also a good option. make sure your usb drive is formatted to fat32, copy your rom.zip on it, connect it to the phone using a otg cable,. boot in twrp, select ''install'', click on ''storage: Internal Storage (X MB)'' then select ''USB OTG (X MB)'' and finally select the rom.zip


no need to sell your phone!
Oh god. I didn't know TWRP would allow me to use dab despite USB debugging being off. Thank you SO MUCH. I just flashed a custom ROM and everything's working just fine.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes