Hi,
I was wondering if there is a way to access root in a sgs connected to a pc by a cable?
Just type "su" in adb prompt...
Need rooted sgs.
Sent from my GT-I9000 using Tapatalk
Thanks for quick anwser,
That's obvious but how do i explore the root directory? What are the commands? Is there an equivalent of linux "cd", "ls" and such?
Both CD and ls will work. Remember, android is based on Linux.
Sent from my GT-I9000 using XDA App
Now I can see but the command I was looking for was "adb shell"
Related
how do i use the terminal emulator app to access adb shell?
adb shell is only used when you're on a computer, like when using android sdk tools. When you use the terminal emulator you use different commands try This Link for some help using the terminal emulator, they're basically the same as linux commands.
also this should be in the Q&A section
lol the terminal is the 'shell'
if you're running a terminal right on the phone, then consider yourself already @root when you're typing in commands.
foil said:
lol the terminal is the 'shell'
if you're running a terminal right on the phone, then consider yourself already @root when you're typing in commands.
Click to expand...
Click to collapse
Sort of. You are a user, but not "root". To become superuser you have to use the SU command.
/ $ su
~ # |
Click to expand...
Click to collapse
I'm sorry if I'm nitpicking here. Your original point remains true. You don't have to use ADB at that point to run commands. You run the command without ADB right in the terminal.
subcypher said:
Sort of. You are a user, but not "root". To become superuser you have to use the SU command.
I'm sorry if I'm nitpicking here. Your original point remains true. You don't have to use ADB at that point to run commands. You run the command without ADB right in the terminal.
Click to expand...
Click to collapse
No, you're fine. I was just assuming that he was already rooted, but you're right - it's a regular user account unless you change to superuser.
in order to do what you probably want you will have to type su. It should then ask for SU permission and then you should gey
Code:
#
.
hello everyone, idk if im in the wrong place, but im trying to connect my non rooted phone to my rooted tablet with terminal emulator.Is there a way for me to use adb because it worked with my previous phone...its not working and isn't showing any device when i input "adb devices"...Can anyone help me please, help would be greatly appreciated ?(btw usb debugging is enabled on my phone)
I'm trying to use ADB shell, but it's not working on Virtuous 2.2, s-off. I'm using terminal emulator, usb debugging, phone plugged into computer.
It starts with:
$
and I enter:
"Adb shell"
I then get the message: "Adb: Permission denied"
I definitely have root, so what's the issue here?
You've mounted /system right?
Sent from my HTC Incredible
RMarkwald said:
You've mounted /system right?
Sent from my HTC Incredible
Click to expand...
Click to collapse
Don't know what that means. How do I do that?
I think you need to type su, hit enter, then adb shell. Not exactly sure, I'm not too familiar with adb but I think that's how it goes
Sent from my [mute] Droid Incredible running Myn's Warm Two Point Two RLS5.3.
Stockmoose16 said:
Don't know what that means. How do I do that?
Click to expand...
Click to collapse
In recovery, go to Mounts and Storage, and select Mount /system.
Sent from my HTC Incredible using XDA App
Just wondering if I have installed adb correctly I can open my command prompt using windows vista and type adb devices and I get my serial number displayed as a connected device does this confirm and is working? Thanks for your help! Completely new to this.
Beamer9408 said:
Just wondering if I have installed adb correctly I can open my command prompt using windows vista and type adb devices and I get my serial number displayed as a connected device does this confirm and is working? Thanks for your help! Completely new to this.
Click to expand...
Click to collapse
As far as I know that does mean you have it installed and running correctly.
I agree, that would tell me it's installed correctly. Shell into your phone. If you can do that, you should be all set. Directions for shelling into your phone can be found in the forums. If you can't find them, let me know and I'll help you out. We all have to start somewhere. Lol!
Sent from my VS910 4G using XDA Premium App
Are you rooted? Meant to ask that.
Sent from my VS910 4G using XDA Premium App
thermal_tim said:
Are you rooted? Meant to ask that.
Sent from my VS910 4G using XDA Premium App
Click to expand...
Click to collapse
Oh sorry I thought I mentioned that in my earlier post I am rooted running decrap..and the other mods that are on this forum
Ok so this is what is going on I go into command prompt type in CD then to the tools directory and hit enter then type adb devicesand hit enter serial number comes up so I type adb shell and I get $ ok so I read somewhere if you get that prompt type aubri hit enter ok so I do that superuser permission is asked on my phone so I said allow it. Retyped adb shell and it isn't recognizing what adb is? Not sure what is going on here thanks to anyone who helps explain if I'm doing something wrong.
Beamer9408 said:
Ok so this is what is going on I go into command prompt type in CD then to the tools directory and hit enter then type adb devicesand hit enter serial number comes up so I type adb shell and I get $ ok so I read somewhere if you get that prompt type su hit enter ok so I do that superuser permission is asked on my phone so I said allow it. Retyped adb shell and it isn't recognizing what adb is? Not sure what is going on here thanks to anyone who helps explain if I'm doing something wrong.
Click to expand...
Click to collapse
Once you
$adb shell
$su
#
You shouldn't need to type adb shell again bc ur already in it...
it would also help us to help you to know what you are trying to do with ADB shell... being that you are rooted, what else do you need to do with it?
Sent from my VS910 4G using Tapatalk
S.Meezy said:
Once you
$adb shell
$su
#
You shouldn't need to type adb shell again bc ur already in it...
it would also help us to help you to know what you are trying to do with ADB shell... being that you are rooted, what else do you need to do with it?
Sent from my VS910 4G using Tapatalk
Click to expand...
Click to collapse
Thanks honestly I'm not trying to do anything with it just trying to seeif I have it installed correctly someone suggested to see if I could go into shell so I tried and that was my results.
Beamer9408 said:
Thanks honestly I'm not trying to do anything with it just trying to seeif I have it installed correctly someone suggested to see if I could go into shell so I tried and that was my results.
Click to expand...
Click to collapse
assuming your screen looked like this...
$adb shell
$su
#
...and changed from $ to # when you did it, you're good. also, it showing as a device was a good indicator too.
ok i go into cmd and type adb devices, and it tells me that
adb is not recognize as an internal or external command,operable program or batch files
what am i doing wrong NEED HELP
Are you running windows
Sent from my LG-P925 using xda premium
If so try typing cd c:/android-sdk-windows/platform-tools
Sent from my LG-P925 using xda premium
Then type adb devices
Sent from my LG-P925 using xda premium
hoskopico said:
Then type adb devices
Sent from my LG-P925 using xda premium
Click to expand...
Click to collapse
Yes i am on windows,ok after i type adb devices it says
* dameon not running. staring it now on port 5037*
* dameon started successfully*
List of devices attached
Is it supposed to show devices cuzz it dont show non,also in my device manager it has android phone with little yellow circle and exlamation point
This is kind of difficult for me cuzz i came from the samsung infuse and it was easier to add a rom thru rom manager,so if yall can please help me out
It should put a number after if not do you have the drivers installed
Sent from my LG-P925 using xda premium
ok it gave me 16 digits and says device
I would really apreciate if you can help me
Open command prompt and type:
adb shell
su (click allow on phone if prompted)
chmod 777 /data
ls -l (then look at the data directory and it's permissions should now be drwxrwxrwx)
Each line is a new comand so adb shell then enter then su etc...
Then fallow the steps by designgear
Sent from my LG-P925 using xda premium
You gotta use the directory change i gave you earlier then type the adb commands
Sent from my LG-P925 using xda premium
Did ya get it to work?
Sent from my LG-P925 using xda premium
ok i typed adb shell and it has a
$ symbol?
Now type su then enter and u should be good to go.. to go about finishing the install commands that is
Sent from my LG Thrill 4G...
so how would i install cwm?
I sent ya a pm on it man this thread needs to be deleted by mods for it is not a development thread but a q/a thread
Sent from my LG-P925 using xda premium
it says adb not found
ssfirme said:
it says adb not found
Click to expand...
Click to collapse
Do youreself a favor and search the adb howto in the Thrill general section. It will tell you how to make an adb shortcut. Save you some headaches.
Also after you adb shell you can no longer use the adb command until you 'exit' the shell. Trying to do so will result in adb not found.
Sent from my LG-P925 using Tapatalk
what do you mean exit the shell
ssfirme said:
what do you mean exit the shell
Click to expand...
Click to collapse
Adb commands are run from the computer. When you type adb shell all commands from that point on are from the phone, so you can no longer use the adb command when in shell. Typing 'exit' will exit the shell and return you to being able to use adb commands.
Sent from my LG-P925 using Tapatalk
What is it ? ADB Shell . is it CMD command on Windows or what ?
muslimbaha said:
What is it ? ADB Shell . is it CMD command on Windows or what ?
Click to expand...
Click to collapse
https://developer.android.com/tools/help/adb.html
It's Android Debug Bridge. Basically, it's a command line interface from your PC to your phone. Think of a terminal emulator that you run on the phone itself. ADB is pretty much the same, but from a PC. It is part of Android SDK. You can also find it included in many installation packages posted here on XDA, e.g. CWM recovery. There is an executable and a couple of DLLs.
P.S.: TrymHansen beat me to it...
kt-Froggy said:
It's Android Debug Bridge. Basically, it's a command line interface from your PC to your phone. Think of a terminal emulator that you run on the phone itself. ADB is pretty much the same, but from a PC. It is part of Android SDK. You can also find it included in many installation packages posted here on XDA, e.g. CWM recovery. There is an executable and a couple of DLLs.
P.S.: TrymHansen beat me to it...
Click to expand...
Click to collapse
Sorry, but i know what it is now, how do i run it though? im trying to follow the htc desire hd guide to root my phone, which everything is done up until the point i have to test that i have root in debug mode. Not sure how to do this? run abd.exe? it just showed me a cmd window which runs and then dissapears.
If you got your phone rooted or want to test it run adb.exe shell the type su and hit enter. If the prompt change from $ to # you have root access
Sent from my LG-P990 using xda app-developers app
bitdomo said:
If you got your phone rooted or want to test it run adb.exe shell the type su and hit enter. If the prompt change from $ to # you have root access
Sent from my LG-P990 using xda app-developers app
Click to expand...
Click to collapse
What is likely to be the problem if it says SU permission denied?
If you are on stock, that means that you have no root access. If you have cm10 or cm10.1 you have to enable adb root access somewhere in the settings. I am sorry but I can not tell you at the moment where to enable it because I am on stock right now.
Sent from my LG-P990 using xda app-developers app
kt-Froggy said:
It's Android Debug Bridge. Basically, it's a command line interface from your PC to your phone. Think of a terminal emulator that you run on the phone itself. ADB is pretty much the same, but from a PC. It is part of Android SDK. You can also find it included in many installation packages posted here on XDA, e.g. CWM recovery. There is an executable and a couple of DLLs.
P.S.: TrymHansen beat me to it...
Click to expand...
Click to collapse
Thanks Bro for this information