-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathadb-shell
36 lines (19 loc) · 917 Bytes
/
adb-shell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# adb shell
> Android Debug Bridge Shell: Run remote shell commands on an Android emulator instance or connected Android devices.
> More information: <https://developer.android.com/studio/command-line/adb>.
- Start a remote interactive shell on the emulator/device:
adb shell
- Get all the properties from emulator or device:
adb shell getprop
- Revert all runtime permissions to their default:
adb shell pm reset-permissions
- Revoke a dangerous permission for an application:
adb shell pm revoke {{package}} {{permission}}
- Trigger a key event:
adb shell input keyevent {{keycode}}
- Clear the data of an application on an emulator or device:
adb shell pm clear {{package}}
- Start an activity on emulator/device:
adb shell am start -n {{package}}/{{activity}}
- Start the home activity on an emulator or device:
adb shell am start -W -c android.intent.category.HOME -a android.intent.action.MAIN