Problems with ADB and Terminal on Macbook. - G2 Q&A, Help & Troubleshooting

Hi guys I followed the instructions to root the Verizon G2 on my Mac. I installed adb and have an android folder but when I access terminal and type ./adb devices it detects the phone but says device offline. I'm wondering how to fix this? I feel like I've done every step right up to this point if I can get it to recognize adb commands I'm just stuck. Thanks for the help.
Sent from my VS980 4G using XDA Premium 4 mobile app

Related

Nothing working

Well I try to root my phone i installed sdk and I did the adb but the cmd on my pc dose not see my phone all am trying to do is downgrade my phone so I can root how do I get the pc to see my phone it told me it hass adb but when I run cmd it dose not know its there plz help I really want this phone root it I been at this for the last 2 weeks
Sent from my T-Mobile G2 using xda premium
explain what you did and what you do exactly. Based on which instruction.
you're computer is a Windows VP / Vista / 7?
did you reboot afgter installing?
And post the command line you have.
We will without question need to know what you tried before anyone here can help.
Also, check to see if you phone was in USB debug mode. If it was not, no matter what you try it will not work.
I try to to downgrade my phone useing cm fourm on how to doundgrade a g2 well I use the coustom usb and I put it in the sdk folder were it was suppost to go well I try to run cmd and it tells me no such thing sorry not exacly what it says but close to what it dose tell me so now what do I do I really want a rom on this
Sent from my T-Mobile G2 using xda premium
First off, not to knock you, and I apologize if English isn't your first language, but you're posts are very hard to follow. Some punctuation and spelling would help immensely.
Second, you need to give us more detail. Step by step, as to what you are doing (commands entered, what error messages actually say, etc).
Third, some simple instructions are below, see if it helps:
1) Go to Start > Run (or hold the Windows Key and press R) to give you the run prompt.
See picture #1
2) At the command prompt, type in (without quotes) "cd\program files\android\android-sdk\platform-tools" NOTE: This is the path for default install for the google SDK installer with Windows 32bit. If you are running Windows 64bit I believe it is "cd\program files (x86)\android\android-sdk\platform-tools"
See picture #2
3) type in "adb" (again, minus quotes) to see the list of adb commands.
See picture #3
Hopefully you can take it from there.
Ok I have windows 7 well I download the sdk ok I was doing every thing from the cm forms well I all so did the thing with adb were on the cm forms it ask me to download the usb thing in place it in the folder were in extras sorry if miss spell I rann cumman prompt cmd it dose not see my phone that it it says here go this this in the forms look for need help that's my post to
Sent from my T-Mobile G2 using xda premium
Hey mate, I'd be willing to help you if you took your time (slowed down) and worked on your posts a bit. I tried really hard to understand what you're trying to tell us and I just can't get it.
Sent from my HTC Vision using XDA App
Can any one call me in help 614 962 1447
Sent from my T-Mobile G2 using xda premium
I tried to install sdk. Cm told me in their forums to install an adb in usb custom. The cmd does not recognize my phone.
Sent from my T-Mobile G2 using xda premium
Ok, so we will assume the SDK is installed properly. Then you open a command prompt and change the directory to the directory you installed the SDK using the "cd" command. From there you type "adb devices" and what is displayed on the command prompt?
We need to take this one step at a time. Everyone wants to help, but we need to be able to understand what is going on.
Can some one call me and help me plz 614 962 1447
Sent from my T-Mobile G2 using xda premium
Ok now the pc that my phone adb ok but when I put in adb divice cmd dose not see it and what's with this run thing all I do in my pc is run search for cmd
Sent from my T-Mobile G2 using xda premium
I think I understand what you are saying. So, you search for cmd in windows and then click on it to open. Once you do that you enter "adb devices" correct? Do you enter any other commands before "adb devices?" Also, have you gone to settings/apps/development and clicked Enable USB Debug on your phone?
I doubt you will find anyone willing to call you, but if you can clearly tell us what is going on; you will find help here.
Yes you are right I did adb devices but no other commainds but it tells me no external devices and some other stuff it says
Sent from my T-Mobile G2 using xda premium
And debuging good on my phone and sdk is on windows and under device manger it tells me my phone adb
Sent from my T-Mobile G2 using xda premium
This could be your problem. Before you enter "adb devices" you need to change the directory to where you installed the SDK. So, open a command prompt, enter "cd [directory where you installed the SDK]." Once the directory is changed enter "adb devices."
As for the location of the SDK, if you installed it to the hard drive it would be: C:\android-sdk\platform-tools. So you would enter "cd c:\android-sdk\platform-tools."
Try that and let us know what happens.
when I put this in cmd c:\program files (x86)\android\android-sdk\platform-tools it tells me file name derectory name or volume label syntax is incorrect
Sent from my T-Mobile G2 using xda premium
When I run cmd in put adb devices it tells me the system can not find the path specified
Sent from my T-Mobile G2 using xda premium
Can I plz get help
Sent from my T-Mobile G2 using xda premium
ok, these are not the recommended ways of gaining root, but your knowledge seems to be not good enough for the usual guides... (you are sure you want to root?)
here is one tool:
http://forum.xda-developers.com/showthread.php?t=1097977
or contact this guy:
http://forum.xda-developers.com/showthread.php?t=1500370
good luck (or ask for a remote session - i dont have time for this right now)

Need a root guru!

My phone is by far a simple let alone one single phone. I cannot link it to a computer or Samsung Kies in any way. I need to root via adb, terminal emulator. I'm not tech savvy enough to do it alone. Will someone step to the plate?
Sent from my GT-I9505 using xda app-developers app
Ravenstears said:
My phone is by far a simple let alone one single phone. I cannot link it to a computer or Samsung Kies in any way. I need to root via adb, terminal emulator. I'm not tech savvy enough to do it alone. Will someone step to the plate?
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
To get adb you need:
androidsdk
For linux you would:
tar xfv androidsdk.tar.gz
cd android-sdk/platform-tools
./adb shell
Once in shell just type su to gain root access on android, su app might appear on phone so you can grant access.
Sent from my GT-I9505 using xda app-developers app
Ravenstears said:
Need a root guru
Click to expand...
Click to collapse
no complaints yet, however, ask away I will help any way I can.
Here's a small tip, to raise command prompt in a directory that uses adb or fastboot. Hold down Shift key, right click and "open command here".
Hope that helps
Regards
JustSueMe said:
To get adb you need:
androidsdk
For linux you would:
tar xfv androidsdk.tar.gz
cd android-sdk/platform-tools
./adb shell
Once in shell just type su to gain root access on android, su app might appear on phone so you can grant access.
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
From what I understand he wants to root from the device using a terminal emulator, not from a computer. "su" will do nothing in this case. Not an expert by far but I am pretty sure that except for the exploit/vulnerability discovered in S3 some time ago, you can't root the device that easily. You need to flash (rewrite) something before ...
rsndetre said:
From what I understand he wants to root from the device using a terminal emulator, not from a computer. "su" will do nothing in this case. Not an expert by far but I am pretty sure that except for the exploit/vulnerability discovered in S3 some time ago, you can't root the device that easily. You need to flash (rewrite) something before ...
Click to expand...
Click to collapse
You can connect to adb via terminal emulation if:
Adb start-server
Adb connect to localhostort
But unfortunately even though it connects its useless.
I know an exploit , I made a script to run the exploit over usb from another phone via adb. But again that wont work as it was patched by ICS.
Sent from my GT-I9505 using xda app-developers app
---------- Post added at 01:19 PM ---------- Previous post was at 01:16 PM ----------
Ravenstears said:
My phone is by far a simple let alone one single phone. I cannot link it to a computer or Samsung Kies in any way. I need to root via adb, terminal emulator. I'm not tech savvy enough to do it alone. Will someone step to the plate?
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
How about getting a .zip of a rooted rom and .img of twrp from xda forums.
Then hit the playstore there's an app called SGS4Flasher.
Use that to flash the .img then boot into recovery backup phone and then flash the .zip. reboot into your rooted rom
Sent from my GT-I9505 using xda app-developers app
I appreciate the replies but to be a bit more direct I have a cline s4 with am Imei number of s3. Linked to a pc it shows up as HTC dream interface. Ergo, the rooting is mot simple. This is my first unlocked phone and I have absolutely no clue what to do, to spare the stress let's say I'm am a dummy. I need step by step laid out so your grandma can do it... No I'm not old lol. But I am new to this. Oh and I'm a girl
Sent from my GT-I9505 using xda app-developers app
Ravenstears said:
I appreciate the replies but to be a bit more direct I have a cline s4 with am Imei number of s3. Linked to a pc it shows up as HTC dream interface. Ergo, the rooting is mot simple. This is my first unlocked phone and I have absolutely no clue what to do, to spare the stress let's say I'm am a dummy. I need step by step laid out so your grandma can do it... No I'm not old lol. But I am new to this. Oh and I'm a girl
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
Ok, if you can connect your phone to a computer, this is what you have to do:
1. Get the USB driver from here and install it.
2. Follow the instructions:
- for I9500 from here.
- for I9505 from here.
To find out what version you have head to Settings -> ... More (tab ) -> About device -> look under Model number
What ever program is launched when you connect your phone to the pc, close it. Use that I have linked above.
That's part of the problem, I can't hook it to a pc. The root needs to be done by manually entering commands into a terminal emulator via the device.
Sent from my GT-I9505 using xda app-developers app
Ravenstears said:
That's part of the problem, I can't hook it to a pc. The root needs to be done by manually entering commands into a terminal emulator via the device.
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
Well I don't think adb will allow u to send commands.
A connection can be made to localhost but thats about it.
U could try adb over otg from another.device or wireless adb ?
Sent from my GT-I9505 using xda app-developers app
Try activate USB debugging option in the "Developers Option" section...
Goto settings - About Device -
Under About device keep tapping on (I think) either baseband or kernel version several times... Once u do it, u will see Developers Option under the "settings" which initially was not there...
Once u have the Developers Options, click on it and u will see USB debugging section.... Check on it and then connect your phone to your computer using the USB cable... Your computer will detect it and automatically install its driver...
Done!!!!!
Sent from my GT-I9300 (Hassan Khalid Malik) using xda premium
Only way to root it is to have it connected to a computer. There's no exploit where you can root it directly from the phone
Sent from my GT-I9505 using xda app-developers app

[Q] stuck in twrp without rom

Initially, I wanted to flash cm-11, so I deleted the cm10.1.3 rom (my bad). cm-11 would not install, so I have no rom that is able to install, getting me stuck in twrp.
I looked at guides on XDA and updated the adb drivers through the Oppo website (which does not include the find 5 x909 model in the description, but this driver is the only one available) and installed the latest android SDK.
In device manager (windows 8.1), my find 5 is recognized by my computer. So I go into the android sdk=>sdk=>platform-tools and open the command prompt. I typed "adb devices" and it prints out the model number and recovery, as it is supposed to. But when I try and sideload cyanogenmod using "adb sideload cm-10.1.3-find5.zip", it prints out "error: closed". When I type in "adb push cm-10.1.3-find5.zip/sdcard/cm-10.1.3-find5zip", it prints out many lines of code but does not sideload anything onto my device. "adb usb" also does not work. I have tried restarting my computer and the phone but it has not worked.
I disassembled my phone to try and access the internal memory in the hopes that it would be a microsd card, but it is not.
I now have 2 options to fix my phone:
1) fix the command prompt error (which could be due to the wrong adb file I am using or some other problem)
2) use a mini usb to sd card adapter and try to access the rom from an external sd card.
Would option 2 even work, such that twrp would recognize an external sd card? What can I do to fix my phone through option 1? Please get back to me, as I would not appreciate using my phone as a paper weight. Thanks.
Did you activate Sideload in twrp? Look in the advanced menu.
Then try the 'adb sideload...' command again.
Sent from my Find 5 using XDA Premium 4 mobile app
AngryHapposai said:
Did you activate Sideload in twrp? Look in the advanced menu.
Then try the 'adb sideload...' command again.
Sent from my Find 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Wow, lol. Spent 2 hours looking through forums & it was right under my nose the whole time. Thanks so much!
No problem. :good:
AngryHapposai said:
Did you activate Sideload in twrp? Look in the advanced menu.
Then try the 'adb sideload...' command again.
Sent from my Find 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thanks for the hint!

ADB over Android Wear

I tried installing multiple drivers to my LG G Watch but always appears offline on ADB (cmd)
I made sure I enabled adb debugging and bluetooth and I tried both methods and I cant get it to work....
can anyone help me? I really want to install wear messenger :fingers-crossed:
Are you using adb.exe from the latest SDK?
Have you already forwareded with the adp ?
If not just type this in the console
adb forward tcp:4444 localabstract:/adb-hub
After that type this:
adb connect localhost:4444
It should work on this way to set the state to online
Sent from my SM-N9005 using XDA Free mobile app

After unlock/recovery/root, cannot use adb commands in Terminal Emulator

Hi all,
After unlocking/recovery/rooting via Heisenberg's guide, I then tried to connect to my Amazon FireTV via Terminal Emulator, but when I try any adb command from it, it says:
/system/bin/sh: adb: not found
What am I missing or forgetting to do? Thanks.
adb is computer -> phone connection. Adb cannot be used in terminal emulator.
zephiK said:
adb is computer -> phone connection. Adb cannot be used in terminal emulator.
Click to expand...
Click to collapse
I've been using the same ADB commands in Terminal Emulator on my Android phones for years...
Anyone?
Anyone? Would really like to be able to connect to all my Android devices...
Can anyone help me with this? I can't find anything online and surprised no one else is asking about the issue...
Same issue was posted here on reddit FYI: https://www.reddit.com/r/AndroidQue.../adb_tool_no_longer_available_on_marshmallow/
How can we connect to other Android devices via Android 6.0 devices if this no longer works?

Categories

Resources