Android devices provide a Unix shell that you can use to run a variety of commands on the device. The command binaries are stored in the file system the device.
Questions tagged [android-shell]
36 questions
0
votes
1 answer
Android uptime in hour
I connect all our android devices through adb with WiFi. I am trying to get the uptime in hour. what i got now is in seconds.
adb connect 172.16.100.2
adb shell cat /proc/uptime > "C:\TimeLog.txt"
(or just adb shell uptime)
adb disconnect
The…

Root Loop
- 3,004
- 9
- 46
- 72
0
votes
1 answer
whats does am start -n command do in android shell
I am trying to know, what does this command do when I write it in the terminal for android?
and here is an example
am start -n com.whatsapp/com.whatsapp.HomeActivity
Thanks

Ayham Najem
- 65
- 2
- 6
0
votes
1 answer
How to execute shell commands through su?
I tried following way but its not working for me :
public void RunAsRoot(String cmnd){
Process p = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(p.getOutputStream());
…

user2014
- 87
- 1
- 1
- 8
-1
votes
3 answers
Detecting if device is rooted systemlessly
As systemless root is avaible for few years it became "harder" to detect if a device is rooted or not. I started looking for a possible solution to detect if a device is rooted systemlessly or not and I still can't figure out the solution. Checking…

Domin
- 1,075
- 1
- 11
- 28
-1
votes
2 answers
Error in checking string is null in shell script?
I am new to Shell Scripts and not aware of the syntax.
I have a shell script that I am pushing to my android device, and then converting it with 'busybox dos2unix' :
adb shell busybox dos2unix /data/local/myShellScript.sh
In the script I am trying…

gambit
- 85
- 2
- 10
-3
votes
2 answers
Source code for shell command "find" in Android
I tried to find in Android source code on github, but I didn't find the implementation of the find command any where.
Can some one tell me where it is.
Thanks.
EDIT: An out-of-box Android provides no find command. What is needed is some source code…
user1679072