How to get adb work in TWRP?

KlaxMaster

Member
Feb 1, 2013
6
0
0
Similar prob with no definitive answer...

I have the KF2 10.2.6

I used 1 click TWRP, flashed CM10, but flashed the wrong Gapps, wiped it all to do it again... too late I realized I had removed the CM10 ROM from the device.

I managed to figure out ADB crap (been rooting for years.. but never ADB) So I can "adb sideload" the rom back on...

I Have the latest Kindle USB drives installed through SDK, I have the ADB CMD prompt working... but It WILL NOT list the Kinde in when I 'adb devices' It simply just doesn't list a device.

My device manager displays that they are not installed correctly. I have tried every method I can think of of un/re imstalling them. no avail.

PLEASE HELP
Win7/64bit
KF2 10.2.6
(No fastboot)
 

Alin1997

Senior Member
Sep 22, 2012
92
5
0
Torino
I have the KF2 10.2.6

I used 1 click TWRP, flashed CM10, but flashed the wrong Gapps, wiped it all to do it again... too late I realized I had removed the CM10 ROM from the device.

I managed to figure out ADB crap (been rooting for years.. but never ADB) So I can "adb sideload" the rom back on...

I Have the latest Kindle USB drives installed through SDK, I have the ADB CMD prompt working... but It WILL NOT list the Kinde in when I 'adb devices' It simply just doesn't list a device.

My device manager displays that they are not installed correctly. I have tried every method I can think of of un/re imstalling them. no avail.

PLEASE HELP
Win7/64bit
KF2 10.2.6
(No fastboot)
You should read this thread at 2 page
 

Alin1997

Senior Member
Sep 22, 2012
92
5
0
Torino
I did Download the latest drivers and install them using the utility, which is the only significant thing I see in page 2.
screw adb in twrp, we'll use twrp's terminal emulator to go to fastboot with the command idme bootmode 4
In twrp, go to advanced. then go to terminal command. then press the select folder button.
type idme bootmode 4
reboot and you're in fastboot.
to get out of fastboot mode now, you have to type fastboot -i0x1949 oem idme bootmode 1
then just reboot it.
 

KlaxMaster

Member
Feb 1, 2013
6
0
0
screw adb in twrp, we'll use twrp's terminal emulator to go to fastboot with the command idme bootmode 4
In twrp, go to advanced. then go to terminal command. then press the select folder button.
type idme bootmode 4
reboot and you're in fastboot.
to get out of fastboot mode now, you have to type fastboot -i0x1949 oem idme bootmode 1
then just reboot it.

PLEASE HELP
Win7/64bit
KF2 10.2.6
(No fastboot) <--------
 

fmkilo

Senior Member
Oct 8, 2012
289
189
0
Cedar Rapids, IA,USA
I do not own a fastboot cable, which to my understanding is required for fastboot. It is not my kindle, so I will not be purchasing one either.
The whole point of reading through this thread is you do not need a fastboot cable to get to fastboot, you use the terminal emulator to get to fastboot. Fastboot is a mode on the device, you do NOT need a cable, but it is highly recommended that you have one.
 

chronicfathead

Senior Member
Mar 23, 2008
741
225
73
Sleaford, Lincs
I do not own a fastboot cable, which to my understanding is required for fastboot. It is not my kindle, so I will not be purchasing one either.
Did you read the post above yours, where Alin1997 advises you of a method that uses TWRP to get into fast boot mode on the Kindle?

Or do you mean you don't have the fastboot command on your PC?

Sent from my Amazon Kindle Fire2 using Tapatalk HD
 

KlaxMaster

Member
Feb 1, 2013
6
0
0
Did you read the post above yours, where Alin1997 advises you of a method that uses TWRP to get into fast boot mode on the Kindle?

Or do you mean you don't have the fastboot command on your PC?
As far as I know I have the fastboot command on my PC, I have downloaded all drivers and successfully done everything up to this point. Unless the specific command comes from some where not metioned in the 1click twrp post (fastboot is hardly mentioned at all, hence my confusion)

The whole point of reading through this thread is you do not need a fastboot cable to get to fastboot, you use the terminal emulator to get to fastboot. Fastboot is a mode on the device, you do NOT need a cable, but it is highly recommended that you have one.
And my problem lies in the actual transfer of a file once I reach fastboot, still need to connect to get the file from my PC HDD to the KF SD WHILE in fastboot.
It is my understanding that a stock USB cable wont suffice. Or is my comprehension of what a fastboot cable is for, faulted?

Could anyone tell me what the [Hardware] difference between the Fastboot and normal usb is?
i.e. normal USB has 2 data, 1 live and 1 ground for connections.
Seeing as a USB port only HAS 4 pins, I don't see what the physical difference could be
 

KlaxMaster

Member
Feb 1, 2013
6
0
0
Tried fastboot....okay....

I'm in it, successfully got out of it... Trial went good.
went back in... now what? how do i get the file here? The utility doesn't seem to have anything for cm10.zip
 
Last edited:

fmkilo

Senior Member
Oct 8, 2012
289
189
0
Cedar Rapids, IA,USA
As far as I know I have the fastboot command on my PC, I have downloaded all drivers and successfully done everything up to this point. Unless the specific command comes from some where not metioned in the 1click twrp post (fastboot is hardly mentioned at all, hence my confusion)



And my problem lies in the actual transfer of a file once I reach fastboot, still need to connect to get the file from my PC HDD to the KF SD WHILE in fastboot.
It is my understanding that a stock USB cable wont suffice. Or is my comprehension of what a fastboot cable is for, faulted?

Could anyone tell me what the [Hardware] difference between the Fastboot and normal usb is?
i.e. normal USB has 2 data, 1 live and 1 ground for connections.
Seeing as a USB port only HAS 4 pins, I don't see what the physical difference could be
The usb micro b cable has 5 pins on the micro b side. the 4th is tied into the 5th for otg, and tied into the 1st for fastboot.
once you are in fastboot, you need to flash the files to the device. Flashing is done via the fastboot flash command. You can read up on fastboot yourself, as I did not write the binary or the tut for using it.
 

yudanjah

Member
Apr 2, 2011
27
2
0
LA
Run adb
Plug in your device (in TWRP recovery)
type adb devices
Is your device listed?

If it is not listed, unplug the USB, make sure it is in TWRP, run the following code:
Code:
adb kill-server
adb start-server
PLUG IN DEVICE IN TWRP (recovery)
Code:
adb devices
List of devices attached
0123456789ABCDEF recovery
Then you can sideload the rom from ADB


Code:
Code:
adb sideload ROM_FILE_NAME.zip
You will see status of copying.

Install the zip from the menu
***Sideload and flash Gapps zip file, too!***
 
Last edited:

melvsmeister

Senior Member
Oct 10, 2010
124
10
0
I deleted my data and so I can't install my ROM, my device read as Amazon Kindle Fire2 and I can't sideload via TWRP since my device is not detected in adb, I can boot in fastboot, can I push the zip file from there? or any steps on how adb can recognize my device? I tried installing driver from KFU and updated my android SDK tools but still no devices found. I also tried to kill and restart.

I'm using Windows 7 and I don't know why my devices is not recognize. I remember before I install CM10 I was able to install the this driver and my device read as KINDLE but now I can't is it because my device read as Amazon Kindle Fire2?

Thanks for your help.
 
Last edited:

melvsmeister

Senior Member
Oct 10, 2010
124
10
0
I can now detect my adb by letting it boot to blue kindle fire logo, pc will now detect it as android device. I tried to push ROM to /sdcard but it says "/sdcard': No such file or directory", if I try /data/media it says "No space left on device" for 150mb rom???

I can push gapps but when I browse to file manager via TWRP I can't find the gapps file in /data/media or even in /sdcard...

any help guys?

Thanks!
 

melvsmeister

Senior Member
Oct 10, 2010
124
10
0
Patience. And not reposting the same question over and over.

--
Sent from my Kindle Fire 2, CM 10.1
Hey man would you mind sharing some inputs? I can push the ROM to dev/block folder but I can't locate it once I get back to TWRP. It says successfully push 150mb but when I go to twrp it's not there even if I use terminal emulator using find / -name *.zip nothing...:(
 

mindmajick

Senior Member
Nov 26, 2010
3,993
3,032
253
Cape Coral, FL
Sure. Try adb sideload from within twrp. Its under one of the menu options. I think advanced.

If that doesn't work for you.. I would restore to stock in fastboot mode and start over.

--
Sent from my Kindle Fire 2, CM 10.1
 
Last edited:

melvsmeister

Senior Member
Oct 10, 2010
124
10
0
Sure. Try adb sideload from within twrp. Its under one of the menu options. I think advanced.

--
Sent from my Kindle Fire 2, CM 10.1
Thanks man, I tried to use restore and i was able to restore system and use adb shell. I tried to push rom to different directory and use adb shell to check if push was good and i can see the file in that directory but when i try to reboot file cannot be found. I can boot in fastboot and in adb if i let it boot to blue kindle fire boot screen but in twrp adb is not detected so i can't use adb sideload. Any help? Thanks again!
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone