To transfer photos from your Android device to your Mac using the command line, follow these steps:
-
Install
adb
(Android Debug Bridge):- If you haven't already installed
adb
, you can do so using Homebrew:brew install android-platform-tools
- If you haven't already installed
-
Enable Developer Options and USB Debugging on Android:
- Go to
Settings > About phone
, then tapBuild number
seven times to enable Developer Options. - Go to
Settings > Developer options
, and enableUSB debugging
.
- Go to
-
Connect Your Android Device to Mac:
- Use a USB cable to connect your Android device to your Mac.
-
Verify the Connection:
- In your terminal, run:
adb devices
- You should see your device listed. If prompted on your Android device, allow USB debugging.
- In your terminal, run:
-
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 namedAndroidPhotos
on your Desktop.
- Navigate to your
-
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.