Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rupeshtiwari/bfb1a97d2addae1f0cf9ed584fb599ad to your computer and use it in GitHub Desktop.
Save rupeshtiwari/bfb1a97d2addae1f0cf9ed584fb599ad to your computer and use it in GitHub Desktop.
samsung android mobile copy to mac laptop

To transfer photos from your Android device to your Mac using the command line, follow these steps:

  1. Install adb (Android Debug Bridge):

    • If you haven't already installed adb, you can do so using Homebrew:
      brew install android-platform-tools
  2. Enable Developer Options and USB Debugging on Android:

    • Go to Settings > About phone, then tap Build number seven times to enable Developer Options.
    • Go to Settings > Developer options, and enable USB debugging.
  3. Connect Your Android Device to Mac:

    • Use a USB cable to connect your Android device to your Mac.
  4. Verify the Connection:

    • In your terminal, run:
      adb devices
    • You should see your device listed. If prompted on your Android device, allow USB debugging.
  5. Transfer Photos:

    • Navigate to your DCIM folder (where your camera photos are usually stored) on your Android device and copy them to your Mac:
      adb pull /sdcard/DCIM/Camera/ ~/Desktop/AndroidPhotos/
    • This command copies all photos from the Camera folder on your Android device to a folder named AndroidPhotos on your Desktop.
  6. Safely Disconnect:

    • After the transfer is complete, you can safely disconnect your Android device from your Mac.

This method provides a command-line alternative to using the Android File Transfer tool.

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