๐Ÿค–Adb tool

apt-get update
sudo apt-get install adb -y
adb devices -l

# Connection Establish Steps
adb connect 192.168.0.4:5555
adb devices -l
adb shell  

# Download a File from Android using ADB tool
adb pull /sdcard/log.txt C:\Users\admin\Desktop\log.txt 
adb pull sdcard/log.txt /home/mmurphy/Desktop
  • via USB

  • ./adb tcpip 5555

  • ./adb connect 192.168.43.117:5555

  • ./adb devices

  • ./adb -d shell (Direct an adb command to the only attached USB device)

  • cd sdcard

  • cd dcim

  • cd camera

  • ./adb push C:\platform-tools\ota.zip

  • /sdcard/Download -> from pc to android)

  • pc location -> <android location>

  • ./adb

  • pull /sdcard/Download/magisk_patched.img

  • C:\platform-tools -> from android to pc

  • android location -> <pc location>

Basic command

adb tcpip 5555

adb connect <ip-address>:5555

adb shell

For finding perticular file

adb shell ls -R | grep filename

For pulling file from server to local computer

adb pull /sdcard/log.txt %USERPROFILE%\Desktop\

for disconnecting device:

adb disconnect

Connect to Android through ADB and access files via shell

https://www.youtube.com/watch?v=Hvreb4hjsig

Last updated