Terminal - Android Q&A, Help & Troubleshooting

Heya i whant to know smth i run on terminal
su
setprop gsm.operator.alpha Extreme
getprop gsm.operator.alpha Extreme
reboot
After reboot reset to the default value
Can anyone tell me why ?

Related

[Q] How to put a delay inside the shell

so i was making a batch file command and couldn't figure out how to put a delay on the next command when i am inside the shell... any ideas?
for example
abd shell
su
getprop ro.cid
(i want a delay of 5 sec. here)
ls
cd /system
....
...
. and so on
thanks!

custom sh

i have a custom sh file located in /system/bin/adbwifi.sh
Code:
#!/system/bin/sh
setprop service.adb.tcp.port 5555
stop adbd
start adbd
however, typing adbwifi in terminal adbwifi: not found.
second, typing sh /system/bin/adbwifi.sh got executed but, checking getprop service.adb.tcp.port doesn't exist...
and yes, both are having permission 755

[Q]Help with Terminal emulator

Hello i need help to enable dnsmasq(this http://forum.xda-developers.com/showpost.php?p=38062781&postcount=1980)
I open terminal emulator and enter this
Code:
su
busybox echo "127.0.0.1" >> /data/local/tmp/dnsmasq
then i reboot.
Open terminal emulator again and enter
Code:
su
top | grep dnsmasq
and then i dont know how to do this
if it produce output then just change both your dns1 and dns2 in wifi settings to 127.0.0.1 or whichever address u chose to use earlier..
Click to expand...
Click to collapse
After that i dont know what to do. Tried with adb but with no luck again... Any help?

[Q] adb shell prompt

Hey everyone I got a very technical question
I am trying to set a custom prompt for the shell on an android device running bourne shell (sh), I have suceeded in setting it for a login shell (sh -l) but I would like to make this default for non login like adb or ssh through connectbot @localhost. Normally on linux I could do this by editing /etc/profile but for some reason on my android sh does not read /etc/profile unless it is a login shell. I tried moving the sh binary and replacing the sh binary in /system/bin with a shell script that executes sh -l but I loose superuser access ( shell reports su command not found) so I moved sh back to /system/bin/sh. Does anyone have any Idea which file is read in by sh at launch?

permission denied in better terminal emulator after set shell to bash

Hello
I install "better terminal emulator pro" app and from preferences i set shell to bash.
After download some data i restart app and try use bash shell.
But i get permission denied error!
I am sure that my phone is rooted (by CF-Auto-Root).
Default shell is work in root mode.
But bash is not work.
How can i fix it?

Categories

Resources