Popular ADB command
Android Debug Bridge (ADB) is very popular among developers. Besides developers, many Android users also use it to tweak their smartphones for smoother performance or to free up storage space.
Below is a list of commonly used ADB commands.
Setup ADB
List of ADB commands | ./adb help |
Launch ADB daemon | ./adb devices |
Kill ADB server | ./adb kill-server |
Initiate ADB shell | ./adb shell |
Display list of applications
Display enabled applications | ./adb shell pm list packages -e | sort |
Display disabled applications | ./adb shell pm list packages -d | sort |
Display system applications | ./adb shell pm list packages -s |
Display applications that contain the searched word | ./adb shell pm list packages | grep '<word>' |
Enable and Disable Applications
Disable application: ./adb shell pm disable-user --user 0 <package_name>
Enable application: ./adb shell pm enable <package_name>
Install and Uninstall Applications
Install application: ./adb install <file_location>
Uninstall application with data: ./adb uninstall --user 0 <package_name>
Uninstall application without data: ./adb uninstall -k --user 0 <package_name>
Re-install application: ./adb shell cmd package install-existing <package_name>
Copy Files or Folders
Copy file from device: ./adb pull <device_file_or_folder> <destination_on_desktop>
Copy file to device: ./adb push <destination_on_desktop> <device_file_or_folder>