ADB : Android Debug Bridge which is a command line tool that lets us communicate with an Android device or an Emulator.
Commands :
- adb devices : This command prints all connected devices with name.
- adb version : This command prints the version of adb.
- adb install <local_path_to_apk> : This command helps to install the apk file with connected devices.
- adb logcat : This command prints the logs data which helps for bug reporting.
- adb logcat > <local_path_to_text_file> : Which helps to store the logs in text file.
- adb kill-server : This command helps to terminates the server.
- adb start-server : This command helps to start the server.
- adb shell : It helps to starts a remote shell in the target emulator/device instance.
Another way to find the package name and the launch able activity:
Go to the terminal.
1.Then type aapt dump badging <Absolute/Relative path to the SDK> | grep package:\ name to get the package name.
2.To get the launchable activity name, type appt dump badging <Absolute/Relative path to SDK> | grep launchable-activity:\ name