What is ADB (Android Debug Bridge)
The ADB shell is a bridge between your computer and the Android device, which may be a physical device or an emulator.
How to install ADB
ADB comes with Android SDK, but you can also find it alone. Inside the AppUse VM we have installed and prepared it for you.
Find which devices (physical/emulators) ADB recognizes. Be aware that if you have more than one, you’ll need to specify the correct one for each command. It is recommended to close unnecessary devices.
Many times ADB does not recognize your device (“error: device not found”). If this happens, restart and the ADB server will fix it.
This command is used to open a shell inside the device.
adb shell somecommand
This command is used in order to run a command inside the device without staying inside the device’s shell.
adb pull /path_in_device/dir_or_file
This command is used in order to pull a file or directory from the device.
adb push localfile /path/in/device
This command is used in order to push a file into the device.
This command allows you to view the logcat log.
adb install xxx.apk
This command is used in order to install an APK in the emulator.
adb shell pm uninstall -k com.packagename
This command is used in order to uninstall an application.
This command is used inside script files. It blocks the script from being able to continue until the device will be ready.
See all options.
Do you have more important/common commands that you think that I should add to this post? Please reply this post