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 or 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 or 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
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.