Enable USB Debugging on your phone or device:.You might want to install android-udev if you wish to connect the device to the proper /dev/ entries.To connect to a real device or phone via ADB under Arch, you must: Many USB cables bundled with mobile devices do not include the USB data pin. Make sure your USB cable is capable of both charge and data.Many devices' udev rules are included in libmtp, so if you have this installed, the following steps may not be necessary.Some other devices require enable PTP mode to work. For some devices, you may have to enable MTP on the device, before ADB will work.Type in “-d” to show only disabled packages, “-e” to show only enabled packages, “-s” to show only system packages.
List All the Android Packages: adb shell pm list packages adb uninstall “package name”: Uninstall an app.adb help: Displays the help documentation of ADB commands.adb fastboot: Enables the fastboot mode.adb kill-server: Terminate the adb server process and restart it.adb push “local remote”: Copy a file and its sub-directories to the device.Replace local/remote with the paths to the target file/directory on your machine (local) and on device (remote). adb pull “remote local”: Copy a file and its sub-directories from the device.adb install “path_to_apk”: Install an app.adb devices: Shows which ADB supported devices are connected to your computer.The inverted commas used in the commands are just for illustration purposes.
Here is a list of commands that you may find useful. There’s a lot ADB can do, and in most cases, it’s useful for both casual users and developers.