Skip to content

Instantly share code, notes, and snippets.

@maheshmnj
Last active November 8, 2023 18:29
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save maheshmnj/96ef373b2f63c99ecc63c8ab3ecdf4aa to your computer and use it in GitHub Desktop.
Save maheshmnj/96ef373b2f63c99ecc63c8ab3ecdf4aa to your computer and use it in GitHub Desktop.
Adb Push file to phone from laptop

adb push (Send data from Desktop to Target phone)

adb push ~/Desktop/notifications.drawio ./storage/emulated/0/Download
e.g
$ adb push ~/Documents/workspace/mobile-app/build/app/outputs/flutter-apk/app-release.apk ./storage/emulated/0/Download

image

adb pull (Recieve data from phone to Mac/Desktop)

mahesh@Maheshs-MacBook-Air-M1 Desktop % adb tcpip 5555
restarting in TCP mode port: 5555
mahesh@Maheshs-MacBook-Air-M1 Desktop % adb connect 10.**.***.**:5555
connected to 10.**.***.**:5555
mahesh@Maheshs-MacBook-Air-M1 Desktop % adb pull ./storage/emulated/0/Download/images.jpeg ~/Desktop
adb: error: failed to get feature set: more than one device/emulator
mahesh@Maheshs-MacBook-Air-M1 Desktop % adb pull ./storage/emulated/0/Download/images.jpeg ~/Desktop
./storage/emulated/0/Download/images.j...pped. 1.7 MB/s (39348 bytes in 0.022s)
mahesh@Maheshs-MacBook-Air-M1 Desktop % adb pull ./storage/emulated/0/Download/FM2 ~/Desktop
[ 58%] ./storage/emulated/0/Download/F... 480p WEB-DL ESub [BollYFlix].mkv: 14%


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment