ADB shell - Hero CDMA Q&A, Help & Troubleshooting

So I go into cmd and into the sdk/tools directory and typed in adb devices. It shows my phone HT03xxxxxx offline. Am I missing something here?
I just wanted to reboot in recovery through there and its telling me that the device is offline.
I flashed fresh 2.1.2 and the su fix update if that means anything.
Edit--
I did a nandroid and flashed back to 2.1.1
Went into cmd and ran adb shell with no problem...
I just did a wipe and will reflash 2.1.2 and try it again

Dave2582 said:
So I go into cmd and into the sdk/tools directory and typed in adb devices. It shows my phone HT03xxxxxx offline. Am I missing something here?
I just wanted to reboot in recovery through there and its telling me that the device is offline.
I flashed fresh 2.1.2 and the su fix update if that means anything.
Click to expand...
Click to collapse
Are you using Windows or Linux? Either way; you should kill the adb server and try again. In Linux to do this:
sudo su ./adb kill-server
sudo su ./adb start-server
Then try running your adb commands again. (e.g. adb devices, adb shell)
To kill the server in windows:
adb kill-server
Click to expand...
Click to collapse
Then unplug your phone and plug it back in and see if that changes anything.
The Windows command to reboot into recovery via adb is:
adb reboot recovery
Click to expand...
Click to collapse

pseudoremora said:
Are you using Windows or Linux? Either way; you should kill the adb server and try again. In Linux to do this:
sudo su ./adb kill-server
sudo su ./adb start-server
Then try running your adb commands again. (e.g. adb devices, adb shell)
To kill the server in windows:
Then unplug your phone and plug it back in and see if that changes anything.
The Windows command to reboot into recovery via adb is:
Click to expand...
Click to collapse
I had 2.1.1, and flashed 2.1.2 with no wipe. I didn't reboot, but flashed the su fix zip file, and then I rebooted. Maybe that's why I didn't achieve any adb commands.
I did a data/factory wipe, then flashed 2.1.2. I rebooted and set my google account up. After it was up and running, I booted in recovery manually. I flashed the su fix and rebooted. Now I'm all set. I went into cmd and got my shell back. Now I'm all set. Just a pain in the ass and redownload all my apps again.
Thanks for your help though.

Related

HELP adb not found

Hey guys im new here and new to android too. my android sdk doesnt seem to work anymore. when i typed adb shell, it will show daemon starts successfully. it worked flawlessly previously. however when i tried using adb command like adb devices all these, it will shows "adb not found" what does this mean? i open the command prompt at the tools folder and have tried to reinstall my samsung I9000 driver but still it doesnt work. Is it cos of the path i set is wrong or wad? Im using window 7 and the folder name of tat android sdk is called "android" on my desktop. can anyone help me with this??? thanks. i need the adb to work in order to install some game and root. thanks in advance
Reinstall SDK
i tried reinstalling driver and sdk and the result is still the same. any other suggestion?
Not sure if it helps, but I had problems installing i9000 drivers until I installed Kies. Kies installed all the drivers perfectly.
you have to restart the adb daemon as root, eg:
sudo ./adb kill-server
sudo ./adb start-server
edit: just read that you are using windows ... so run the command without he "sudo" but under the admin-user ...

Problems installing clockworkmod recovery with adb

Hi i want to install clockworkmod recovery in my is from adb but when i type in cmd the commands fast boot etc it says that this commands are not valid...The other adb commands such as adb device works perfectly .Why this happens?please heelpp
Anoubis282 said:
Hi i want to install clockworkmod recovery in my is from adb but when i type in cmd the commands fast boot etc it says that this commands are not valid...The other adb commands such as adb device works perfectly .Why this happens?please heelpp
Click to expand...
Click to collapse
Do you have the fastboot.exe in the same directory as adb.exe?

Manually Push CWM to Zv8 With Cmd Prompt.

I realize that these threads are every where but re posting in hopes of helping someone out. Every bit of mt's AIO worked for me, but AIO 2 for Zv8 would not.
You could always do this manually using adb. Here's how.
Push CWM Recovery image to your phone manually once in rooted zv8.
1. Open the ZV8CWMRecovery folder on your PC.
2. Double click the 'Files' folder to go into that directory.
3. Highlight/select and copy the address of your current folder location on your PC. It will look something like this:
Code:
C:\Documents and Settings\username\My Documents\Downloads\ZV8CWMRecovery\Files
4. Click Start>Run>type 'cmd' and hit enter/return to open your command prompt.
5. Type 'cd', hit your spacebar, then paste your address which you copied in step 3 into your command prompt, hit enter/return.
6. You should now be positioned in the folder containing the adb and CWMRecovery files.
7. Type the following to copy the CWMRecovery image to your phone:
Code:
adb devices
adb remount
adb push cwmrecovery.img /data/local/tmp/cwmrecovery.img
adb shell dd if=/data/local/tmp/cwmrecovery.img of=/dev/block/mmcblk0p14 bs=4096
adb shell "rm /data/local/tmp/* 2>/dev/null"
adb shell rm /system/etc/install-recovery.sh
adb shell rm /system/recovery-from-boot.p
adb shell rm /data/local.prop
adb reboot
Phone should reboot. Try and boot into CWMRecovery after it reboots.
you can do that by typing: adb reboot recovery
all thanks go to brad 6360 for lending a hand and general lack of DoucheBaggery!
You're welcome. Glad I could help.
I'm stuck on adb remount cmd. Here's the output I get:
adb remount
remount failed: Operation not permitted
Any ideas? This is the same place I had issues running the AIO .bat file. Any help would be greatly appreciated!
JMink said:
I'm stuck on adb remount cmd. Here's the output I get:
adb remount
remount failed: Operation not permitted
Any ideas? This is the same place I had issues running the AIO .bat file. Any help would be greatly appreciated!
Click to expand...
Click to collapse
Make sure you have internet connection and usb debugging enabled.
JMink said:
I'm stuck on adb remount cmd. Here's the output I get:
adb remount
remount failed: Operation not permitted
Any ideas? This is the same place I had issues running the AIO .bat file. Any help would be greatly appreciated!
Click to expand...
Click to collapse
I was having the same problems. No matter what I tried, AIO, this method, etc, nothing worked when I was using my computer to get CWM back after ZV8. I found this thread that uses terminal emulator on the phone and it worked perfectly.
http://forum.xda-developers.com/showthread.php?t=1594885
I never could get cwm working but a friend recommended QuickBoot, gives you the boot into recovery mode. Works great.
Sent from my VS910 4G using xda premium
This is the same thing as terminal emulater on your phone
with this you can open a shell inside your phone running on your pc
Same commands
Thanks for the suggestions. I ended up getting it to work. I just skipped the adb remount cmd and started with pushing the img. Then I used the su cmd in shell to get a # prompt and ran the rest of the cmds as written including reboot recovery. CWM popped up on boot!
Sent from my Revo 4g using XDA Premium App
Hoping someone can help
Hey all. Last night I was helping a friend keep root through the V8 update. Everything went fine until I thought that I had manually pushed clockwork, but when I tried to reboot into recovery I got stuck on the LG logo forever. How I'm having trouble getting the phone to do anything. When in emergency mode it won't connect to the computer and it's not even my phone so I feel like a real #$%^^. Any advice would be appreciated.
Edit: http://forum.xda-developers.com/showthread.php?t=1564941 allow me to answer my own question

Trying to flash roms to 7" KFHD, no dice so far

Note: I would have posted this in the developement forum as I've tried following both threads. (These: http://forum.xda-developers.com/showthread.php?t=2271909 and http://forum.xda-developers.com/showthread.php?t=2128848). Everything works okay as far as CMD entries etc, and it boots up in fastboot, at which point KF First Aide says <waiting for device>, and the Kindle is just sitting on the fastboot logo. No errors or anything, it just sits there.
Holding power on the Kindle shuts it down, and it will boot up normally. But it doesn't look like flashing back to 7.2.3 is working, because it stills shows up as 7.4.6. (It is already rooted as well.)
Not really sure how to proceed from here, I'm trying to install CM10.2 on it ultimately.
Edit: Also, I did already make backups.
Sounds like the fastboot drivers aren't installing, once you see the fastboot logo, check the device manager for a device with a yellow triangle, if there is one its probably called tate-pvt or something like jem or otter2 then use the drivers in my signature by right clicking the device, hitting update drivers, and pointing it to where you extracted my drivers and once the the device is I stalled it should continue.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
stunts513 said:
Sounds like the fastboot drivers aren't installing, once you see the fastboot logo, check the device manager for a device with a yellow triangle, if there is one its probably called tate-pvt or something like jem or otter2 then use the drivers in my signature by right clicking the device, hitting update drivers, and pointing it to where you extracted my drivers and once the the device is I stalled it should continue.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
Click to expand...
Click to collapse
Looks like that was it, it's working now. Now to install PAC Man ROM.
Thanks!
Okay new problem.
"6. Wiped /sdcard, can't reboot from recovery: You thought you had the ROM file on the sdcard, but you didn't, and wiped everything, so without a ROM image, you can't boot into system.
Solution: Put the ROM file where your ADB binary is (usually inside platform-tools folder in Android SDK directory) and rename it rom.zip. On the device, boot into TWRP, select Advanced, then ADB Sideload. Connect device to PC. From here, run "adb" and hit Enter to check for your binary version, if it's anything lower than 1.0.3.0, you need to update the binaries by re-installing the latest Android SDK. Once the device is in sideloading mode and is connected to the PC, type "adb sideload rom.zip" and hit Enter. Now you'll find the ROM on the sdcard, flash, and you're done."
I'm at this issue, and when I run adb it opens a cmd window which does something(lots of text scrolls), and then goes away(cmd then closes.). So I can't type the command in. Any ideas?
Well adb is a command line tool, so if you want to use it you need to run it from a command prompt...
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app
Halo_003 said:
Okay new problem.
"6. Wiped /sdcard, can't reboot from recovery: You thought you had the ROM file on the sdcard, but you didn't, and wiped everything, so without a ROM image, you can't boot into system.
Solution: Put the ROM file where your ADB binary is (usually inside platform-tools folder in Android SDK directory) and rename it rom.zip. On the device, boot into TWRP, select Advanced, then ADB Sideload. Connect device to PC. From here, run "adb" and hit Enter to check for your binary version, if it's anything lower than 1.0.3.0, you need to update the binaries by re-installing the latest Android SDK. Once the device is in sideloading mode and is connected to the PC, type "adb sideload rom.zip" and hit Enter. Now you'll find the ROM on the sdcard, flash, and you're done."
I'm at this issue, and when I run adb it opens a cmd window which does something(lots of text scrolls), and then goes away(cmd then closes.). So I can't type the command in. Any ideas?
Click to expand...
Click to collapse
You need to actually type command in your run box to open a dos prompt. THEN you can do the adb commands. Don't just try an adb command from your windows run box. It will run adb without modifiers, give you the help screen and then quit because windows thinks the program ran and completed.
NapalmDawn said:
You need to actually type command in your run box to open a dos prompt. THEN you can do the adb commands. Don't just try an adb command from your windows run box. It will run adb without modifiers, give you the help screen and then quit because windows thinks the program ran and completed.
Click to expand...
Click to collapse
Okay so here's what I didreplace *'s with h.)
*ttp://i979.photobucket.com/albums/ae277/Halo_003/Desktop_2013_11_15_14_36_38_376_zps0b71405b.jpg
Once in cmd, type adb and hit enter. Binary version looks good.
*ttp://i979.photobucket.com/albums/ae277/Halo_003/Desktop_2013_11_15_14_36_49_904_zps374e53f3.jpg
*ttp://i979.photobucket.com/albums/ae277/Halo_003/Desktop_2013_11_15_14_36_46_102_zpsaa0f7ff7.jpg
But then when trying sideload it doesn't work.
*ttp://i979.photobucket.com/albums/ae277/Halo_003/Desktop_2013_11_15_14_38_20_363_zps989da0dd.jpg
Am I doing it wrong?
Any ideas on how to get it working?
Halo_003 said:
Any ideas on how to get it working?
Click to expand...
Click to collapse
Stunts write up should get you there http://forum.xda-developers.com/showthread.php?t=2459498
Sent from my Amazon Kindle Fire HD running CM 10.2 using xda app-developers
Halo_003 said:
Any ideas on how to get it working?
Click to expand...
Click to collapse
I got the chance to check out your DOS screenies.
There is no such command called sideload in some ADB versions. Here are the basic ADB commands.
3. Basic ADB commands
ADB push (sends files to your phone) -- adb push c:\example.apk /sdcard/example.apk
ADB pull (Receives files from your phone) -- adb pull /system/app/example.apk c:\example.apk
ADB install (installs application) -- adb install c:\example.apk
adb shell (Begins shell connection with phone)
adb reboot (reboots phone)
adb reboot recovery (reboots phone into recovery)
adb reboot bootloader (reboots the phone into bootloader/the white screen)
adb remount (remounts the system)
4. Commands to run while in ADB Shell
cd (changes directories) -- cd /system/app
ls (lists all files in the directory) -- cd /system/app
rm (removes files) -- rm /system/app/example.apk
cp (copies files) similar to cat -- cp /system/app/example.apk /sdcard/example.apk
cat (copies files) -- cat /system/app/example.apk > /sdcard/example.apk
exit (exits shell) -- exit
Click to expand...
Click to collapse
You have to make sure the ADB you have knows what the sideload command is.
Yep thank you guys! I got it working with that like LE gave me. Much appreciated!
LinearEquation said:
Stunts write up should get you there http://forum.xda-developers.com/showthread.php?t=2459498
Sent from my Amazon Kindle Fire HD running CM 10.2 using xda app-developers
Click to expand...
Click to collapse
Ah yes! That was it! I wasn't doing the cd command so that's the issue I was having. Thank you!

[Q] S-Off 1.56 Help Please

I have been trying to do this at work and cannot figure it out at all. I have unlocked my bootloader and it is rooted and installed custom Twerp recovery. I have downloaded firewater but then am stuck. I have opened up CMD and typed in adp reboot but nothing happens. in the instructions it says I need to do this:
Push, Prepare, and Execute firewater:
adb reboot <–important!!!!
adb wait-for-device push firewater /data/local/tmp
adb shell
su
chmod 755 /data/local/tmp/firewater
/data/local/tmp/firewater
Question is how do I push, Prepare etc? Sorry I have read so many posts this afternoon I am starting to go stir crazy. I have moded loads of samsung phones but this really is starting to go over my head. Any help would be wonderfull
Spendy said:
I have been trying to do this at work and cannot figure it out at all. I have unlocked my bootloader and it is rooted and installed custom Twerp recovery. I have downloaded firewater but then am stuck. I have opened up CMD and typed in adp reboot but nothing happens. in the instructions it says I need to do this:
Push, Prepare, and Execute firewater:
adb reboot <–important!!!!
adb wait-for-device push firewater /data/local/tmp
adb shell
su
chmod 755 /data/local/tmp/firewater
/data/local/tmp/firewater
Question is how do I push, Prepare etc? Sorry I have read so many posts this afternoon I am starting to go stir crazy. I have moded loads of samsung phones but this really is starting to go over my head. Any help would be wonderfull
Click to expand...
Click to collapse
do you have adb and fastboot installed on your computer?
if yes have you opened your cmd prompt from adb/fastboot folder?
is you rphone drivers correctly installed on the computer?
alray said:
do you have adb and fastboot installed on your computer?
if yes have you opened your cmd prompt from adb/fastboot folder?
is you rphone drivers correctly installed on the computer?
Click to expand...
Click to collapse
[*]do you have adb and fastboot installed on your computer? Yes
[*]if yes have you opened your cmd prompt from adb/fastboot folder? Yes
[*]is you rphone drivers correctly installed on the computer? Yes
Error says adb is not recognised as an internal or external command, operable program or batch file
Will try and watch a youtube video tonight. Spent way to much time on this today
Spendy said:
Error says adb is not recognised as an internal or external command, operable program or batch file
Click to expand...
Click to collapse
That mean your cmd prompt doesn't find ADB.exe either because you don't have it or because you did not started the command prompt from adb.exe folder.

Categories

Resources