[Q] Android Shell - Android Q&A, Help & Troubleshooting

How do I change the shell prompt in android to [email protected] /# as the current prompt is ugly, just a #?

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!

[Q] ls does not sort

When I start the ADB shell from the Windows command line, and type the command "ls", the list of files I get is not sorted by name. Also, if I enter "ls -r" which should reverse sort, I get the error message "no such file". If I type "busybox ls -l", I get the expected sorted list. Also, other commands like "busybox ls -la" work.
My Phone is a Samsung Captivate i897, rooted from Gingerbread with Corn Kernel v7.06 with Superuser and BusyBox installed.
How can I get the Busybox version of the shell commands to run without having to type "busybox" all the time?
The same problem
How to force sort in ls result ?

[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?

cygwin does not show shell from phone after running adb shell

I have installed cygwin64 and when I run adb shell, I get no shell prompt, but I can still run commands.
However, if I run adb shell from cmd.exe, it does show the phone's shell after running adb shell. Here is the phone's shell that is shown to me in cmd.exe:
bullhead:/ $
I've run into this same issue. Have you discovered a solution?
For now, I'm using Windows PowerShell (instead of cmd.exe) to access adb shell.

Which Android OS version

Hello,
I am wondering which Android OS the current firmware is based on, I am mainly asking for the Stratos 3.
also, when will the Android OS eventually be upgraded, if at all?
Cheers,
GL
For Pace, the software is based on Android 5.1. I would try this I found over at StackOverflow,the watch should be connected to the pc and ADB commands must be used:
To get Android version you can use: adb shell getprop ro.build.version.release
To get API level: adb shell getprop ro.build.version.sdk
You can see all available properties with this command: adb shell getprop

Categories

Resources