What exactly is shell.... i have root permissions on my phone and every time I turn it on all the apps that need root permissions tell me with a pop up message.... then a strange app called shell pops up and starts repeting the process of asking for root permissions.... what is shell? Is it only in my phone??
Sent from my GT-S5310 using XDA Premium 4 mobile app
leodani said:
What exactly is shell.... i have root permissions on my phone and every time I turn it on all the apps that need root permissions tell me with a pop up message.... then a strange app called shell pops up and starts repeting the process of asking for root permissions.... what is shell? Is it only in my phone??
Sent from my GT-S5310 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Shell is nothing but terminal (it is Linux command prompt).
Android is built on Linux kernel. So it includes terminal thing and it is present on every android.
You can use Terminal Emulator from Play Store or "adb shell" command from adb to get access to terminal and execute commands. (Most of the Linux commands work if you have busybox).
Speaking about toast messages of root access-
If you have used any Linux then you will see in Linux you achieve "root" rights (much similar to administrator in Windows) by executing "su" command in terminal to get elevated administrative rights. Same command is executed by root apps to get root access and when they get access toast message pops up.
You can also get "root" access in terminal/adb shell by typing "su" command (required when you use "ls", "dd" and many other commands where you cannot normally access).
Sent from my GT-S5360 Gadget of Mass Destruction by xda-app
using CWM........Busybox commands........ No I use my hands
Related
hey guys i'm having problem in adb when i put the remount command
it gives this message : opreation remount not prometted
why is that??? i'm rooted on ba023 and a lot of programs that use su is working correctly
h.boushi1987 said:
hey guys i'm having problem in adb when i put the remount command
it gives this message : opreation remount not prometted
why is that??? i'm rooted on ba023 and a lot of programs that use su is working correctly
Click to expand...
Click to collapse
Try typing 'su' (without inverted commas) before that command, when using your phone, and on a PC, do 'adb shell su' or 'adb shell' then 'su'. The command should now work.
You have to do this, if you followed the 'secure root' instructions before.
thanks man it works!!!!!
Sent from my X10i using the XDA mobile application powered by Tapatalk
Since we now have more than one solution that provides full root access between reboots, I figured I'd try writing a shell script to run fre3vo. I can... and it runs... but I get the message "this device is not supported by this exploit".
So why does it run from ADB and not a script? Does the phone have more rights/access when connected via ADB? If the script would work, we could write one that could run after every reboot (using script manager) and it'd be a permanent solution.
Mike
I am trying the same thing with the easyfre3vo package...Setting the root.redo.bat to 'run as root', and executing just seems to hang...
Any ideas?
Sent from my PG86100 using XDA App
What about that app "gscript lite", or " adb wireless"?
Sent from my 3rd Dimension of Evolution
ADB has different permissions compared to a terminal on the phone. A terminal emulator on the phone and/or a tool like Gscript doesn't have the ability to do anything in the /data/local/tmp directory like ADB does.
ADB over wifi needs root, so you can't use it to run fre3vo since you don't have root - you can use it AFTER you've run fre3vo though.
I tried to perform the Windows How To in page http://forum.xda-developers.com/showthread.php?t=1158400. How do I know I have super user access?
mcabrera1965 said:
I tried to perform the Windows How To in page http://forum.xda-developers.com/showthread.php?t=1158400. How do I know I have super user access?
Click to expand...
Click to collapse
open up an app that requires SU access and it will tell you it has been granted or that you dont have root access. also in adb after running the commands you can type "adb shell" and you should see a #
steal25 said:
open up an app that requires SU access and it will tell you it has been granted or that you dont have root access. also in adb after running the commands you can type "adb shell" and you should see a #
Click to expand...
Click to collapse
Yeah. What he said.
Hello im trying to pull a file from my phone with adb but its not working (picture)
What am i doing wrong? ??
Sent from my GT-I9300 using xda app-developers app
Too many adb's.
You're already in adb shell. adb is not a comnand within adb.
What I mean is adb is a programme. You start it from a command line with "adb shell". Think of it as meaning "adb start". When you run a command from cmd, you tell it the programme and the option. So you tell it "adb shell" and it opens adb shell. You tell it adb pull and it does a pull, but this only works when you're not in the adb shell.
So if you want to run adb commands within the shell, drop the "adb". The command starts "pull" because you're already running adb. If you want to run outside the shell, you need to define the programme with "adb pull"
Personally I work this way
adb shell
mount /system
exit
adb pull /system/app/SecSettings.apk c:\users\dan\desktop
But I could also
adb shell
mount /system
pull /system/app/SecSettings.apk c:\users\dan\desktop
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
Too many adb's.
You're already in adb shell. adb is not a comnand within adb.
What I mean is adb is a programme. You start it from a command line with "adb shell". Think of it as meaning "adb start". When you run a command from cmd, you tell it the programme and the option. So you tell it "adb shell" and it opens adb shell. You tell it adb pull and it does a pull, but this only works when you're not in the adb shell.
So if you want to run adb commands within the shell, drop the "adb". The command starts "pull" because you're already running adb. If you want to run outside the shell, you need to define the programme with "adb pull"
Personally I work this way
adb shell
mount /system
exit
adb pull /system/app/SecSettings.apk c:\users\dan\desktop
But I could also
adb shell
mount /system
pull /system/app/SecSettings.apk c:\users\dan\desktop
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Thabks allot it worked!!!
Sent from my GT-I9300 using xda app-developers app
Yup. You'll pick it all up quickly enough.. loads of people can't even do this yet
Sent from my GT-I9300 using Tapatalk 2
And to push a file i presume is the same principle?
Sent from my GT-I9300 using xda app-developers app
joshua101 said:
And to push a file i presume is the same principle?
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
should be the same, its a command after all.
you could go get the list from a shady internet site with all the things you can do
Yep same principle. Obviously flip the locations around
adb push c:\blah.apk /system/app/
Sent from my GT-I9300 using Tapatalk 2
Hi all,
I'm rooted and running Cyanogenmod 10.2.0. I'm trying to access some files on my device through ADB that require root access. I can change to the directory but when I attempt to list the contents of the directory I get a "permission denied" error.
I did enable Root access for "Apps and ADB" in the developer options on the phone.
Any ideas what's going wrong or (most likely) what I'm doing wrong?
TIA!
Sailing_Nut said:
Hi all,
I'm rooted and running Cyanogenmod 10.2.0. I'm trying to access some files on my device through ADB that require root access. I can change to the directory but when I attempt to list the contents of the directory
Click to expand...
Click to collapse
Will you please provide which command did you execute in cmd?
Please write it in same syntax as in adb
Sent from my GT-S5360 Gadget of Mass Destruction using xda-app
Using CWM........Busybox Commands........No I use my hands
Here are the commands I executed
Code:
adb shell
CD data/data/com.whatabou.pixeldungeon/files/
ls
The ls is where I get the error. It does change to the directory but it won't list the files. I have verified that I can see the files with root explorer.
Sailing_Nut said:
Here are the commands I executed
Code:
adb shell
CD data/data/com.whatabou.pixeldungeon/files/
ls
The ls is where I get the error. It does change to the directory but it won't list the files. I have verified that I can see the files with root explorer.
Click to expand...
Click to collapse
I have 2 answers. First - Go to adb
Code:
adb start-server
adb devices
adb shell
su
cd data/data/com.whatabou.pixeldungeon/files/
ls
Don't forget "su" command
When you give "su" command (depending on your phone) screen shows toast message or Superuser access for shell. In latter case give access.
Second- if above doesn't help
Then this will help to pinpoint problem.
Install terminal emulator from Play Store. Open and give Superuser access.
Code:
su
cd data/ /data/com.whatabou.pixeldungeon/files/
ls
Don't forget "su" command.
If 2nd method works then there is a problem with adb. If second method doesn't work then problem in phone.
Press thanks if helped
Sent from my GT-S5360 Gadget of Mass Destruction using xda-app
Using CWM........Busybox Commands........No I use my hands
Thanks for the response.
I KNOW the problem was that I forgot the su. Stupid me! I was assuming that since I was rooted that the shell was automatically elevated.
But now I have a different problem. I'm unable to use the original PC that I was working with and I've switched to another. Now I can't seem to get ADB to connect to my device. As first it showed no devices when I did the devices command. I realized it was likley because I didn't have the Samsung drivers installed, so I installed those and now I see the phone but it shows offline.
Any ideas what might be going wrong now?
I'm going to do a bunch of Googling to try to figure it out, but if I'm not successful maybe someone here will have an answer.
Thanks tons!
OK all solved!
I'm not sure what along the way I did that fixed my device offline problem. (It may just be that I never saw the RSA fingerprint notification on the phone the first bunch of times.)
The su took care of not being able to see the files when executing ls.
Thanks @hnkotnis
Sailing_Nut said:
OK all solved!
I'm not sure what along the way I did that fixed my device offline problem. (It may just be that I never saw the RSA fingerprint notification on the phone the first bunch of times.)
The su took care of not being able to see the files when executing ls.
Thanks @hnkotnis
Click to expand...
Click to collapse
Glad to help you.
I also had the adb saying offline problem. First it wouldn't show device. Then after Computer and phone reboot, it showed offline. I reinstalled Samsung adb drivers. It said I already have drivers. I said yes still install and rebooted. Problem solved. It occurred once again, but was repaired automatically.
Sent from my GT-S5360 Gadget of Mass Destruction using xda-app
Using CWM........Busybox Commands........No I use my hands