Shell Command App? - General Questions and Answers

Hi,
I was just wondering if anyone knew of a Shell Command app. I am trying to find an app that would run a shell command upon phone boot.

ditoh1 said:
Hi,
I was just wondering if anyone knew of a Shell Command app. I am trying to find an app that would run a shell command upon phone boot.
Click to expand...
Click to collapse
this app will fulfill your requirement
http://www.google.com/url?q=https:/...sQFjAA&usg=AFQjCNHSYH2hDWk2yFumiN7rILzT5XURvg
press thanks if I helped you.

Related

ADB app

I just would like to know whats the best android application alternative for an ADB shell? something like an ADB shell on the go. something that can do everything an ADB shell can without issues.
Try terminal emulator

ADB

Hello, I have a problem. I'm trying to do some things from my pc in the phone with the ADB Shell and not let me.
My problem is that I put adb: not found.
I do this:
img204.imageshack.us/img204/1832/adbshell.jpg
Worth up here all right but when I have root permissions and everything working I put the commands and none let me get adb remount such or adb pull and nothing makes me adb: not found.
Thank you.
Xele said:
Hello, I have a problem. I'm trying to do some things from my pc in the phone with the ADB Shell and not let me.
My problem is that I put adb: not found.
I do this:
img204.imageshack.us/img204/1832/adbshell.jpg
Worth up here all right but when I have root permissions and everything working I put the commands and none let me get adb remount such or adb pull and nothing makes me adb: not found.
Thank you.
Click to expand...
Click to collapse
if everything is installed correctly then just make sure you are in the platform-tools dierectory eg.
c:\android-sdk\platform-tools\
yes, all is succesfully installed. I started adb shell with cmd of directory platform-tools\adb but when I put code adb remount or other command I appear me adb: not found
AlOpen task manager and see if any adb process is running. If there are kill them and try again :
Also verify that adb. .exe is in the platform -tools folder. Actually it might be in the tools folder if so try running adb from there...
Sent from my Nexus One using xda premium
Xele said:
yes, all is succesfully installed. I started adb shell with cmd of directory platform-tools\adb but when I put code adb remount or other command I appear me adb: not found
Click to expand...
Click to collapse
That's not the way to use adb, so you're not following the guide you're reading correctly.
Usually the guide won't tell you to go to the shell directly, but instead typing something like: adb shell mount -o rw,remount ...
Once you type adb shell you're INSIDE the shell you don't need to call the debugger (adb) anymore...
You shouldn't follow guides without reading them completely and fully understanding them before trying anything.
And by the way you opened two threads with the same question.
Xele said:
Hello, I have a problem. I'm trying to do some things from my pc in the phone with the ADB Shell and not let me.
My problem is that I put adb: not found.
I do this:
img204.imageshack.us/img204/1832/adbshell.jpg
Worth up here all right but when I have root permissions and everything working I put the commands and none let me get adb remount such or adb pull and nothing makes me adb: not found.
Thank you.
Click to expand...
Click to collapse
This is your second warning about creating multiple threads on the same topic. The next incident will result in infractions being issued. Thread closed.

[Q] .bat file to open adb shell?

I thought it would be nice to have a quick way to open adb shell, so I tried to make a .bat file to do so.
This is the code I put in the .bat file.
cd..
cd..
cd..
cd adt-bundle-windows-x86_64
cd sdk
cd platform-tools
adb
When I run the program, it runs through and closes.
Does anyone know what I did wrong?
moose392 said:
I thought it would be nice to have a quick way to open adb shell, so I tried to make a .bat file to do so.
This is the code I put in the .bat file.
cd..
cd..
cd..
cd adt-bundle-windows-x86_64
cd sdk
cd platform-tools
adb
When I run the program, it runs through and closes.
Does anyone know what I did wrong?
Click to expand...
Click to collapse
to open a adb shell the command is "adb shell"
EDIT
Oh and why not put all your cd commands into one command? ie.
cd ..................\adt-bundle-windows-x86_64\sdk\platform-tools
zacthespack said:
to open a adb shell the command is "adb shell"
EDIT
Oh and why not put all your cd commands into one command? ie.
cd ..................\adt-bundle-windows-x86_64\sdk\platform-tools
Click to expand...
Click to collapse
Sorry, I think I asked the wrong question. Im not trying to open adb shell but just adb.exe from the sdk.
The program I made seems to do the same thing as just double clicking on the adb.exe, but it is supposed to work correctly through cmd.
Maybe it is not running through cmd correctly?
moose392 said:
Sorry, I think I asked the wrong question. Im not trying to open adb shell but just adb.exe from the sdk.
The program I made seems to do the same thing as just double clicking on the adb.exe, but it is supposed to work correctly through cmd.
Maybe it is not running through cmd correctly?
Click to expand...
Click to collapse
When running via the command line you have to issue an argument to adb, e.g adb shell or adb devices etc etc
zacthespack said:
When running via the command line you have to issue an argument to adb, e.g adb shell or adb devices etc etc
Click to expand...
Click to collapse
Ok I replaced adb with adb devices, but cmd still closes itself.
moose392 said:
Ok I replaced adb with adb devices, but cmd still closes itself.
Click to expand...
Click to collapse
Yep, that's right. It would stay if you enter something like adb shell. A simple adb devices lists all the recognized devices via adb and the command is done.
Why are you trying to start adb? The cd to your adb folder should be enough to type commands or open the adb shell.
-star- said:
Yep, that's right. It would stay if you enter something like adb shell. A simple adb devices lists all the recognized devices via adb and the command is done.
Why are you trying to start adb? The cd to your adb folder should be enough to type commands or open the adb shell.
Click to expand...
Click to collapse
Ok thanks I figured things out.

Terminal emulator command

I installed a tempered glass screen protector on my S4 and it messes with the proximity sensor. I contacted the manufacturer and this is what they told me to do:
Thanks for reaching out to us! Any issues with the S4 proximity sensor can be fixed by recalibrating the proximity sensor by issuing the following command:
echo 1 > /sys/devices/virtual/sensors/proximity_sensor/prox_cal
I entered that command in my TE and I keep getting an error. I can't really tell where there are spaces, where there are possible spaces, etc. Can anyone look at that command and break it down for me? Like:
echo (space)1(space)>(space)/sys/devices/virtual/sensors/proximity_sensor/prox_cal
That is what I tried and no go.
golfinglenn said:
I installed a tempered glass screen protector on my S4 and it messes with the proximity sensor. I contacted the manufacturer and this is what they told me to do:
Thanks for reaching out to us! Any issues with the S4 proximity sensor can be fixed by recalibrating the proximity sensor by issuing the following command:
echo 1 > /sys/devices/virtual/sensors/proximity_sensor/prox_cal
I entered that command in my TE and I keep getting an error. I can't really tell where there are spaces, where there are possible spaces, etc. Can anyone look at that command and break it down for me? Like:
echo (space)1(space)>(space)/sys/devices/virtual/sensors/proximity_sensor/prox_cal
That is what I tried and no go.
Click to expand...
Click to collapse
What is the error you are receiving in terminal emulator when entering the command? Also you could try entering the command from adb shell. Let me know if you still have questions.
Sent from my SCH-I535 using xda premium
shimp208 said:
What is the error you are receiving in terminal emulator when entering the command? Also you could try entering the command from adb shell. Let me know if you still have questions.
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
/system/bin/sh; can't create /sys/devices/virtual..........prox_cal: Permission denied
golfinglenn said:
/system/bin/sh; can't create /sys/devices/virtual..........prox_cal: Permission denied
Click to expand...
Click to collapse
Is your device rooted? Try running the command as the root user which should fix the error.
Sent from my SCH-I535 using xda premium
shimp208 said:
Is your device rooted? Try running the command as the root user which should fix the error.
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
Thanks for your help. This may be a stupid question, but how do I run the command as the root user? My device is rooted, confirmed with tibu. When I open TE I get the $ sign in the command prompt. Do I need to get that to #, and if so how. I tried to do the same process when I rooted but still didn't work.
Thanks,
Glenn
golfinglenn said:
Thanks for your help. This may be a stupid question, but how do I run the command as the root user? My device is rooted, confirmed with tibu. When I open TE I get the $ sign in the command prompt. Do I need to get that to #, and if so how. I tried to do the same process when I rooted but still didn't work.
Thanks,
Glenn
Click to expand...
Click to collapse
To run the command as root in terminal emulator type the following (Don't actually input the $ and # symbols):
Code:
$ su
#
Entering "su" gives you a root shell from which to run commands from. After you have a root shell in terminal emulator try running the original command you were given.
Sent from my SCH-I535 using xda premium
Okay, I typed su, got the # sign and entered the original code I was given. Hit return and this is what I got:
[email protected]:/ #
How do I know if it calibrated? I broke the tempered glass protector lol trying to "fix" it another way so waiting for another one.
Thanks,
Glenn
golfinglenn said:
Okay, I typed su, got the # sign and entered the original code I was given. Hit return and this is what I got:
[email protected]:/ #
How do I know if it calibrated? I broke the tempered glass protector lol trying to "fix" it another way so waiting for another one.
Thanks,
Glenn
Click to expand...
Click to collapse
If your get a root prompt in terminal after entering the command and not an error message the command was executed successfully and your display should now be calibrated.
Sent from my SCH-I535 using xda premium
Awesome, thank you!!!
Glenn

ADB shell responds differently in terminal emulator

I tried to execute the following through adb on windows, and it works fine.
.\adb.exe shell cmd overlay enable com.android.internal.systemui.navbar.gestural
However, when I tried this:
cmd overlay enable com.android.internal.systemui.navbar.gestural
, via terminal emulator, it throws an error saying:
cmd: Can't find service: overlay
Click to expand...
Click to collapse
Why is it that it works, through adb from windows, and not through terminal emulator?
Don't both of them interact with the same shell environment?
Are there some sort of permission differences between the two, causing such discrepancies?
manish_s said:
...
cmd overlay enable com.android.internal.systemui.navbar.gestural
, via terminal emulator, it throws an error ...
Click to expand...
Click to collapse
If you are rooted (Magisk su#), you can launch any shell command, on-the-fly, with ADBungFu https://forum.xda-developers.com/t/...pops-manager-adb-simulator-su-magisk.4104149/
oF2pks said:
If you are rooted (Magisk su#), you can launch any shell command, on-the-fly, with ADBungFu https://forum.xda-developers.com/t/...pops-manager-adb-simulator-su-magisk.4104149/
Click to expand...
Click to collapse
Not rooted. Is it expected to work otherwise too, right?

Categories

Resources