Reputation: 1003
Is there a detailed and definitive list of valid commands, flags etc somewhere?
I'm running it via a Windows7 command prompt and trying to do some simple stuff (like filter a list of files without going in to shell, listing files by date-time etc).
The official documentation is very sparse and I'm assuming that this is because the ADB stuff comes from Unix commands and we're supposed to figure it out from there.
I've found some Unix documentation on ls command and tried -c flag but it is unknown.
Other searches have turned up people using adb ls -la and this does work, but it's not mentioned in either the official documentation OR Unix ls flags.
Upvotes: 1
Views: 4135
Reputation: 31706
There is no such thing as "definitive list of valid commands" for adb shell
. It is just a communication tool you use to access the Android device's shell from your PC. It's like expecting
Windows RDP Client to provide help for all programs you could possibly install on your Windows system.
Also StackOverflow works much better for questions like "please help me with this specific problem" than for questions like "tell me all the different things I can do".
Here are some links to get you started:
Here is how to use the source code to find the list of "flags" supported by a specific command, let's say ls
:
write them down
case 'l': flags |= LIST_LONG; break;
case 'n': flags |= LIST_LONG | LIST_LONG_NUMERIC; break;
case 's': flags |= LIST_SIZE; break;
case 'R': flags |= LIST_RECURSIVE; break;
case 'd': flags |= LIST_DIRECTORIES; break;
case 'Z': flags |= LIST_MACLABEL; break;
case 'a': flags |= LIST_ALL; break;
case 'F': flags |= LIST_CLASSIFY; break;
case 'i': flags |= LIST_INODE; break;
Upvotes: 1
Reputation: 7560
Here is my blog .I have collected some of the major ADB commands from various sites & books. I think it will be useful for you. Let me know in case of any doubts.
UPDATE
There is no need of official document .Because 'ls'
is actually a linux command & it's usage is officially listed in some linux journals.
'adb ls
' is actually executing the inside the shell of Android kernal through Android Debug Bridge with the help of (adbd)
There is some ADB (Android) specific commands like adb push
& Its documentation is available.
Upvotes: 1