Terminal emulator command - General Questions and Answers

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

Related

Custom Boot problem

i have a problem, i followed the steps exactly on how to change custom boot animation, but now all i got is a black screen as an animation when the phone boots up, how do i revert back to the VZW boot screen? or how do i correct this?
Well you could just do a factory reset. It will bring back every thing back to normal d will not remove root ether, or you can get the incredible rom and get the boot animation and change it with adb
Sent from my Droid Incredible
I really don't wana reset again, i wonder my boot animations are not working
Sent from my ADR6300 using XDA App
Make sure your phone is in normal boot up with development turned on.
Make sure bootanimation.zip is in your sdk/tools directory
go to cmd
change directory to sdk/tools
type in cmd > adb push bootanimation.zip /data/local
adb reboot
done.
To revert back to original boot animation
--------------------------------------
go to adb shell
type
rm /data/local/bootanimation.zip
Click to expand...
Click to collapse
That's the problem when i go go adb shell it just shows a money symbol and hangs at the command prompt and when i type rm it says permission denied
Sent from my ADR6300 using XDA App
Sko0baQueZ said:
That's the problem when i go go adb shell it just shows a money symbol and hangs at the command prompt and when i type rm it says permission denied
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Do you have root? If so, type su. Then it should come up with a # and try the same command again as posted.
I tried rooting my incredible to no success. It'll show a money symbol after i type adb shell.
Sent from my ADR6300 using XDA App
This is what it gives me.
Sent from my ADR6300 using XDA App
@Sko0baQueZ
after you get the "$" symbol, type in "su" and hit enter. you should then see a "#" symbol. that is your superuser control.
parkson said:
@Sko0baQueZ
after you get the "$" symbol, type in "su" and hit enter. you should then see a "#" symbol. that is your superuser control.
Click to expand...
Click to collapse
His phone isn't rooted, so no su.
Nvm,i got it working. Thanx for the help.
Sent from my ADR6300 using XDA App

Weird adb ls output

After installing the JH2 ROM and using unleash the beast, I'm getting weird output from the ls command in the adb shell. Apparently, I can't post links or pictures, yet. So, here's a sort of link:
picasaweb. google. com/ lh/ photo/ VQKACQqA9i7u8ZWG3OmRGQ?feat=directlink
I'm getting listings of entries like [1;34mcache [0m
and [0;0mdefault.prop [0m
before each of the square brackets, there is a left-pointing arrow.
What's causing this? It seems to be an expanded version of the directory listing. How do I turn it off?
belyle said:
After installing the JH2 ROM and using unleash the beast, I'm getting weird output from the ls command in the adb shell. Apparently, I can't post links or pictures, yet. So, here's a sort of link:
picasaweb. google. com/ lh/ photo/ VQKACQqA9i7u8ZWG3OmRGQ?feat=directlink
I'm getting listings of entries like [1;34mcache [0m
and [0;0mdefault.prop [0m
before each of the square brackets, there is a left-pointing arrow.
What's causing this? It seems to be an expanded version of the directory listing. How do I turn it off?
Click to expand...
Click to collapse
thats normal...
designgears said:
thats normal...
Click to expand...
Click to collapse
When I was using the original kernel and the one-click root, my adb shell ls was only file names, not the extra stuff. When I use the ls command in terminal emulator on the phone, it's just the file names.
Also, when I grep the output of ls, the output of grep doesn't have the info in the square brackets, just the file name(s) that meet the criterion.
Thats the ls command sending color codes. It looks nice on a terminal that supports it but weird on windows.
To temporary solve it, after adb shell do this:
alias ls='ls --color=never'
It will fix the problem until you exit adb.
Sent from my SAMSUNG-SGH-I897 using XDA App
LGSilva said:
Thats the ls command sending color codes. It looks nice on a terminal that supports it but weird on windows.
To temporary solve it, after adb shell do this:
alias ls='ls --color=never'
It will fix the problem until you exit adb.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
This was it. Thank you very much. I'm not sure why I didn't see the extra info on my other ROM, but there it is.
I don't suppose there's a different terminal/command prompt for windows that would show the colors?
ls -l
will just give you a standard list of files.
ok I have the supernoob question of the day. can you type adb commands via the terminal emulator on the phone, or do you have to be connected to a computer via usb? I downloaded adb wireless, but im thinking that i have to have the sdk set up on my comp first? Im just a little confused as you can tell
The terminal is the equivalent of doing 'adb shell'. You will have to download the android SDK to get the actual adb tool if you want to do push/pull etc. with it.
belyle said:
This was it. Thank you very much. I'm not sure why I didn't see the extra info on my other ROM, but there it is.
I don't suppose there's a different terminal/command prompt for windows that would show the colors?
Click to expand...
Click to collapse
http://code.google.com/p/puttycyg/ this does.
very old post that got bumped to the top. If you didn't try puttycyg and not interested in colors you can try this: http://forum.xda-developers.com/showpost.php?p=8036010&postcount=7
It works for me.

Unlocking Sidekick 4g

I already rooted my phone with super one click. I downloaded 010 Hex Editor from the net and terminal emulator from the market place, but once I enter the commands on terminal emulator it says "not found" can someone tell why that is? I typed cd /dev/block <enter> just like it says in the guide.
Thanks in advance!
churroinyomouf said:
I already rooted my phone with super one click. I downloaded 010 Hex Editor from the net and terminal emulator from the market place, but once I enter the commands on terminal emulator it says "not found" can someone tell why that is? I typed cd /dev/block <enter> just like it says in the guide.
Thanks in advance!
Click to expand...
Click to collapse
I have a feeling that "type su" step is missing before entering /dev/block.
Hey blagus, I shall try that. Thanks for the tip!
Sent from my SGH-T839 using xda premium

[Q] Firewater S-Off question

I cannot get the firewater file to take at all. Im getting the error in the picture and I am following the directions exactly. What am i missing?
maries-mbp:android Soundwave$ ./adb shell
126|[email protected]_m8wl:/ $ chmod 755 /data/local/tmp/firewater
[email protected]_m8wl:/ $ su
1|[email protected]_m8wl:/ $ /data/local/tmp/firewater
error, run firewater as root. su or FU!!!!!!
do you have weak and supersu installed? becus the $ should switch to # after you type su
should look like this after you type su
[email protected]_m8wl:/ #
Karl said:
do you have weak and supersu installed? becus the $ should switch to # after you type su
Click to expand...
Click to collapse
yes i have weak sauce and it reroots on boot
soundwavedj said:
yes i have weak sauce and it reroots on boot
Click to expand...
Click to collapse
do you have root checker insatlled? you should see root active pop up after bootup? and did you accept rsa key for debug?
Karl said:
do you have root checker insatlled? you should see root active pop up after bootup? and did you accept rsa key for debug?
Click to expand...
Click to collapse
I am rooted after the phone reboots but I don't know what the rsa key is...?
soundwavedj said:
I am rooted after the phone reboots but I don't know what the rsa key is...?
Click to expand...
Click to collapse
its in developer options it pops up when you plug in usb with debug active..
this might help you
https://www.youtube.com/watch?v=NV-kPOYKudc&feature=youtu.be
---------- Post added at 10:10 PM ---------- Previous post was at 10:03 PM ----------
go in to supersu setting and set default access to grant
Karl said:
its in developer options it pops up when you plug in usb with debug active..
this might help you
https://www.youtube.com/watch?v=NV-kPOYKudc&feature=youtu.be
---------- Post added at 10:10 PM ---------- Previous post was at 10:03 PM ----------
go in to supersu setting and set default access to grant
Click to expand...
Click to collapse
Thanks for the video. I followed the directions once again and now the teminal app hangs at the "su" step. It doesnt go any further
I am using Mac OSX 10.9.1 and have working adb
did you cahnge the super user settings?
Karl said:
did you cahnge the super user settings?
Click to expand...
Click to collapse
I set it to auto grant permission
im pretty sure its something to do with super since it hangs there each time maybe reinstall
Karl said:
im pretty sure its something to do with super since it hangs there each time maybe reinstall
Click to expand...
Click to collapse
and repeat the steps all over? or start from su again?
soundwavedj said:
and repeat the steps all over? or start from su again?
Click to expand...
Click to collapse
repeat all after reinstall :fingers-crossed:
Karl said:
repeat all after reinstall :fingers-crossed:
Click to expand...
Click to collapse
Same result. Just hangs right at the su command. and I did change the settings again before running it. I appreciate the help I have no idea what is going wrong here maybe OSX?
sorry i out of ideas could be a mac thing... you rebooted fone right
soundwavedj said:
Same result. Just hangs right at the su command. and I did change the settings again before running it. I appreciate the help I have no idea what is going wrong here maybe OSX?
Click to expand...
Click to collapse
Its not OSX cause I s-off'd using my MBP. When it hangs on the su command, look at your phone and grant SU permissions for firewater to execute. This happened to me as well.
gomorrah said:
Its not OSX cause I s-off'd using my MBP. When it hangs on the su command, look at your phone and grant SU permissions for firewater to execute. This happened to me as well.
Click to expand...
Click to collapse
I set SU to grant permission automatiaclly. It doesnt make a difference on my end still hanging at "su"
You could also do it In terminal emulator if you if comfortable enough
Sent from my HTC6525LVW using XDA Premium 4 mobile app
When you uninstalled did you uninstall weaksauce and su, hard reboot, and reinstall both again or just su? Maybe try that to start from a clean slate. I also noticed that you used the chmod command before su (which must have been how it appeared at first because that is how it shows up in some instructional videos) but the firewater site now has su before chmod and that is what I used. Not sure that the order matters but it was changed so who knows?
Sent from my HTC6525LVW using xda premium
That's eventually how I got it to work is by switching the order of the commands. I actually had to type in adb shell twice because it kicked me out of shell every time I just went by the old instructions
Sent from my HTC6525LVW using Tapatalk

Shell Command App?

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.

Categories

Resources