ADB Terminal for Galaxy Nexus? - Samsung Galaxy Nexus

Is there an app I can use as an ADB terminal on galaxy nexus so i could use ADB commands in the terminal, sent to another device..??
I know i've seen it before, just can't track it down again.

UKROB86 said:
Is there an app I can use as an ADB terminal on galaxy nexus so i could use ADB commands in the terminal, sent to another device..??
I know i've seen it before, just can't track it down again.
Click to expand...
Click to collapse
uuh... terminal emulator for example? adb binary is already built in.

wow and it was that simple lol..

please edit thread title to include [SOLVED] at the beggining.

Related

ADB Question

So I 'm getting brave and decided I want to learn more about modding so that means I need to know at least the most basic of ADB commands.
Well I set up the Android SDK several weeks ago and to my best knowledge it was/is working i.e. from the command window (I'm using Win 7 so I use Shift-Right click to access in the Android sdk tools folder) I can type
adb devices
and my phone shows up.
From there I can type
adb shell
Now here is where it gets wonky
I can't use any adb commands or else I'll get an
"adb: not found" error
I can use the -ls command and a2sdcheck commands without any issues. I can even use the reboot and reboot recovery commands ONCE I don't use ADB in front of it.
So simple commands such as adb push/pull is off limits.
I have also tried in recovery mode but the same thing happens.
I'm sure I'm just missing something small but this is turning out to be really frustrating
And yes I do connect with Charge Only and USB debugging is checked.
Thanks in advance for any help
Sent from my PC36100 using XDA App
I could be wrong, but once you type adb shell I think you have to grant it Super user permission from the phone.
I just read the the SU log and didn't see a request resembling anything from adb or my computer. I also didn't notice a prompt to do so but wasn't really paying attention. I need to check on that but if someone else can clarify or tell me how to grant access that would be great. Thx for the response
Sent from my PC36100 using XDA App
Reconnected my phone and typed adb shell and there was no prompt for SU permissions. I'm thinking this may not be applicable or else you wouldn't be able to connect adb in recovery mode right?
Sent from my PC36100 using XDA App
Here is a tut on using adb. ADB Basics
I clicked on your link and it's taking me to a scanning app. Is that correct?
Nvm got it now
Sent from my PC36100 using XDA App
No it should take you to a thread here in XDA about ADB basics. That's where it takes me. Here try this: http://forum.xda-developers.com/showthread.php?t=694250
I found it in the development section in one of the stickies called
HTC EVO helpful/popular threads (Look here First!)
Babysitting my daughter right now so can't really read that link. I'm pretty sure I've read it before though.
Sent from my PC36100 using XDA App
Ok sorry I couldn't be more help. I am sure you are missing something very small because it sounds to me like it should be working. Make sure you have the right adb driver installed.
Moved to Q&A. This isn't development
Thx pulsar for the move. Sorry about that.
Housry thx for all your input.
I did read that link before and there was a link that confirmed that my ADB is set up correctly.
At the very first cmd prompt I can do adb devices and see my phone.
Then I can type adb shell and I get the # prompt
From there I can't issue anymore adb commands or else I get "adb: not found" error
I can issue reboot or reboot recovery commands BUT without adb in front of it and my phone will respond accordingly.
I can use the ls commands and search the subdirectories. Pushboot even works when I need to change my bootanimations. All this leads me to believe that adb is indeed set up correctly including the drivers so why doesn't the other adb commands work?!
This is really frustrating because I can't even begin to experiment with ADB if I can't get the most basic commands to function.
I know it's probably something small I'm missing and I hope someone will be able to point me in the right directions. Thanks again
Who knows, maybe this is a good thing. I might be able to get in all kind of trouble with my phone otherwise.
Wow on a whim I switched out the USB cable and now everything is working great. Geez.
Sent from my PC36100 using XDA App
ok, you are making a simple yet solvable mistake:
once you type adb shell, you are inside the phone's linux terminal. of course, your phone doesnt have adb in it. a shell is a great tool, and is used very, very often to diagnose problems, make stuff, incorperate stuff, test stuff. if you are in a shell, just type
exit
to get back out. then your adb commands should work.

[Q] before I begin rooting, one question...

So I just set up ADB (I THINK) can someone tell me if I did it correctly or not? When I typed in "adb devices" on the cmd thing a bunch of stuff popped up. After watching a video the guy said type "adb shell" for to test to see if it works and I got a msg saying "adb server is out of date. killing... *daemon started successfully"
So is my ADB set up properly so I can now begin rooting??
I dont recommend ADB try using this method.
http://forum.xda-developers.com/showthread.php?t=928160
Sent from my HTC Vision using XDA Premium App
what's wrong with ADB??
I would at least have it set up in case you need it before you root. It might save you from bricking (it has for me).
It doesn't sound set up correctly. When I run adb devices, it says the serial number, nothing else.
Sinistah_ said:
what's wrong with ADB??
Click to expand...
Click to collapse
ADB isn't required to root, and if you're having troubles and have no other need for the SDK or ADB, it can be a lot of unnecessary work.
for awhile it said it was incorrect or sumthin when I'd type "adb devices" into the cmd. Then when I messed with the path a bit and when I typed "adb devices" again, all this stuff popped up. Then I did the "adb shell" and that last thing popped up. What should I do??
martonikaj said:
ADB isn't required to root, and if you're having troubles and have no other need for the SDK or ADB, it can be a lot of unnecessary work.
Click to expand...
Click to collapse
so with this said, can I still use the method shown on wiki to root or do I have to do it the way with Visionary/Gfree??
Sinistah_ said:
so with this said, can I still use the method shown on wiki to root or do I have to do it the way with Visionary/Gfree??
Click to expand...
Click to collapse
I rooted my MyTouch4G with visionary/gfree/terminal emulator. No adb required but its a lifesaver if your phone can't boot!
well now I'm confused on what to do... Do I continue trying to fix this ADB problem or do I just do this other method everyones mentioning.
Sinistah_ said:
well now I'm confused on what to do... Do I continue trying to fix this ADB problem or do I just do this other method everyones mentioning.
Click to expand...
Click to collapse
They really aren't as separate of methods as you think. Every command you enter in ADB can be done by manually moving files into the proper locations, and executing commands via the Terminal Emulator app in the Market instead of the command window (via ADB) on your computer.
So when using the wiki instructions, instead of using cmd commands I use terminal emulator instead??
Sent from my T-Mobile G2 using XDA App
How am I supposed to do the first step on the wiki guide without abd??? I don't get it.
Sent from my T-Mobile G2 using XDA App

[Q] ADB dont has permission ?

Im using linux and im trying to install Galaxy S II theme that posted at themes and apps forum
that what im doing
[email protected]:~$ adb devices
List of devices attached
43423541314434573458 device
[email protected]:~$ cd /home/aviv/GTHEME
[email protected]:~/GTHEME$ adb push android.policy.jar /sdcard/
failed to copy 'android.policy.jar' to '/sdcard//android.policy.jar': Permission denied
Click to expand...
Click to collapse
need help :|
Locked Bootloader with root
adb on linux - ubuntu 11.04
LightingZ said:
Im using linux and im trying to install Galaxy S II theme that posted at themes and apps forum
that what im doing
need help :|
Locked Bootloader with root
adb on linux - ubuntu 11.04
Click to expand...
Click to collapse
What Rom / kernel are you running?
Sent from my R800x using xda premium
Orginal kernel and SE World Generic 2.3.3
adb typically needs to be run as root.
zerojay said:
adb typically needs to be run as root.
Click to expand...
Click to collapse
How do i run it with root?
if i write sudo adb <command> (example)
it's says sudo: adb no such command
Run the command su first, it'll ask you for your root password (if you set it up) and root persists until you exit
Sent from my R800x using XDA App
su + adb command (su adb push)
not works :|
ok
i got SUPERUSER PERMISSION
i type
adb shell
then
su
and then it asked for allow or deny i press allow
no effects yet
Just double checking, are you running as root on ubuntu?
Sent from my R800x using XDA App
just type su on it's own and hit enter, then adb commands on a separate line (after entering linux root password, obviously)
also (i'm not sure how much this will affect it) try running chmod on adb...
Happened to me, make sure your SD card isn't mounted while your using adb
Sent from my R800i using XDA App

[Q] Rooting on mac: Device Offline?

I am running tests on my new mac to see if i can root my galaxy nexus to install the tablet mod. Anyway, when i type adb devices or anything of the sort it tells me my device is offline. I have googled it with no results of how to make device online.
So my question is how do I make my device online so i can execute commands?
I have usb debugging on.
Phone is offline when booted, but also did not work in recovery mode which is what i want.
I'm on Android 4.0.4 if that matters.
Any other questions please ask!
Thank you amazing brainiacs of XDA!
So you have terminal pointed to the folder where you have ADB at, and you're using the command:
Code:
./adb devices
Right?
I had to do nothing special. Download ADB, plug in phone + turn on USB debugging, and I was good to go.
I did it with mine using the method I sis with my old nexus s 4g. Here's a video I made.
https://www.youtube.com/watch?v=sP9ZDWmbLVM&feature=youtube_gdata_player just follow the instructions but make sure u use a galaxy nexus recovery.img and not the nexus s 4g.
Sent from my Galaxy Nexus using xda premium
Yes I type that command and it comes back with (my device id) : offline
Could it be my usb cable?
Sent from my Galaxy Nexus using Tapatalk
I'm gong to explain this once more because realized I missed saying something. When I type a command in terminal it works. I can type ./adb devices and it will show my device. The problem comes when I type say ./adb pull. Instead of pulling what I asked, it says "error device offline." Has anyone experienced this?
Sent from my Galaxy Nexus using Tapatalk
patalo said:
I'm gong to explain this once more because realized I missed saying something. When I type a command in terminal it works. I can type ./adb devices and it will show my device. The problem comes when I type say ./adb pull. Instead of pulling what I asked, it says "error device offline." Has anyone experienced this?
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
OK so what exactly are you trying to pull? I thought u said u wanted to rooted so u can then install the tablet mod?
Sent from my Galaxy Nexus using xda premium
I'm going to root and pull framework-res.apk so I can edit books.XML to rid of the nav bar. I like to do things myself if I can figure them out haha. But I'm stumped :/
Sent from my Galaxy Nexus using Tapatalk
Anyone have more ideas or questions?
Sent from my Galaxy Nexus using Tapatalk
patalo said:
Phone is offline when booted, but also did not work in recovery mode which is what i want.
Click to expand...
Click to collapse
ADB won't work in recovery...can you see it in recovery with Fastboot?
Yes, the device is recognized In recovery, fastboot, and regularly booted. I just cannot issue a command. Anything I type for example ( ./adb pull /system/framework/framework-res.apk) it tells me cannot issue command, device offline. Hopefully that makes sense!
Sent from my Galaxy Nexus using Tapatalk
You can't/don't have to be in recovery to use ADB... you need your phone on! Fast boot commands = recovery, ADB commands = phone in android.
Sent from my Galaxy Nexus using Tapatalk
I know this. I'm saying any command, adb or fastboot. Returns the same response "phone offline" in every state. Last night when I used adb my phone was on in android, but returned the same error "phone offline, cannot execute command.) even when I type adb devices it shows my phone as plugged in but next to it it shows my phone is offline. How do I make the phone online? The phone was on the homescreen with adb debugging on. I cannot issue any other command when my phone is offline.
Sent from my Galaxy Nexus using Tapatalk
I want everyone reading this to know that I know when to use adb and fastboot. My problem is I cannot use them because my Mac terminal says my device is offline. I read on Google it should be online, but have yet to find a way to make it online. That is my question
Sent from my Galaxy Nexus using Tapatalk
That sounds like a driver issue...I'm horribly unfamiliar with Macs, but you can try uninstall and re-install of the drivers?
This help?
http://www.droidrzr.com/index.php/t...s-my-device-is-either-not-connect-or-offline/
Okay well I thought that worked but I have a galxy nexus so I don't have safestrap
Sent from my Galaxy Nexus using Tapatalk
I used this tutorial to get adb and fastboot working on my Mac and everything works fine for me. Hopefully it helps you out.
http://blog.wapnet.nl/2011/05/setup-adb-and-fastboot-with-android-sdk-on-mac-osx/
anton2009 said:
You can't/don't have to be in recovery to use ADB... you need your phone on! Fast boot commands = recovery, ADB commands = phone in android.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
Please don't post wrong information. You can use adb in either recovery or in the OS. Fastboot commands can only be used when booted into fastboot mode (i.e., the bootloader), not in recovery.
Sent from my Galaxy Nexus using Tapatalk
And now for some reason it is working. thank you to everyone that helped! Love ya XDA

Side loading apps.

Since we cannot get to other sources to install an app on firetv I've been using adb and my win7 pc.
I think I saw another method posted, installing apks already on tablet. I could not find it, and I don't think it used this method. My apologies for not crediting someone else if that's what I'm doing.
I installed "AnySend" and "Terminal Emulator" using adb and pc.
I sent app via any send to firetv.
Ran terminal keyboard very helpful if not needed
Used ls and cd to navigate to Any Send dir.
adb kill-server
adb start-server
"daemon started"
adb install "side loaded apk name"
If installed "success"
ls list directory contents
cd "name" changes directory
Woody
Sent from my SM-P600 using Tapatalk
woodsonmh said:
Since we cannot get to other sources to install an app on firetv I've been using adb and my win7 pc.
I think I saw another method posted, installing apks already on tablet. I could not find it, and I don't think it used this method. My apologies for not crediting someone else if that's what I'm doing.
I installed "AnySend" and "Terminal Emulator" using adb and pc.
I sent app via any send to firetv.
Ran terminal keyboard very helpful if not needed
Used ls and cd to navigate to Any Send dir.
adb kill-server
adb start-server
"daemon started"
adb install "side loaded apk name"
If installed "success"
ls list directory contents
cd "name" changes directory
Woody
Sent from my SM-P600 using Tapatalk
Click to expand...
Click to collapse
Here is how I am doing it and I learned it from here: http://www.xbmchub.com/forums/threa...Using-Nothing-But-Your-Android-Phone-Or-Table
byrdcfmma said:
Here is how I am doing it and I learned it from here: http://www.xbmchub.com/forums/threa...Using-Nothing-But-Your-Android-Phone-Or-Table
Click to expand...
Click to collapse
better yet you can try the app I created
http://forum.xda-developers.com/showthread.php?t=2736774
imtiajmeah said:
better yet you can try the app I created
http://forum.xda-developers.com/showthread.php?t=2736774
Click to expand...
Click to collapse
Yeah, I saw that, but with my way I don't need a computer, just my rooted nexus 5. I thought the OP was looking for a way to do this without a computer.
Thanks for replies. I'm lazy. I see an app I want to install. I send file from my tablet to fire tv using any send. Many other programs will work I just like this one. open terminal, navigate to install directory, use adb to install. Seems pretty simple.
Woody
Sent from my SM-P600 using Tapatalk

Categories

Resources