Android-to-Mac file transfer that actually connects.
A tiny, native, open-source replacement for Google's abandoned Android File Transfer.
Plug in your Android phone, and MagicTransfer shows its files in a normal Mac window. Drag files in to copy them to the phone, and select files to copy them to your Mac. No more "Could not connect to device. Try connecting or restarting your device."
- Connects reliably. Fixes the main reason other apps fail (see Why other apps can't connect).
- Tiny and native. About 2 MB, written in Swift with SwiftUI. No Electron, no bundled browser, nothing to install.
- Preview without copying. Press Space to view photos, play videos and listen to WhatsApp voice notes straight from the phone. Videos stream, so even large ones start playing in under a second.
- Photo thumbnails. Icon view shows a grid of your photos, read straight from the phone.
- See where your space goes. The Overview breaks storage down by type (photos, videos, audio, documents, ...) and lets you drill into folders and apps such as WhatsApp to find what's taking up the most space.
- Fast. Folders with thousands of photos list in a couple of seconds. Transfers run at full USB speed.
- Big files work. No 4 GB limit. Downloads show live progress and can be cancelled cleanly.
- Never overwrites anything. Name clashes become
photo (1).jpgon both the Mac and the phone. - Tells you what's wrong. You get clear guidance instead of a generic error: "File transfer is off", "Unlock your phone", "Android File Transfer is using your phone".
For years, the only official way to copy files between an Android phone and a Mac has been Google's Android File Transfer app. It has barely been updated in a decade, and on current versions of macOS it mostly greets you with:
Could not connect to device. Try connecting or restarting your device.
No Android device found. Connect your Android device with a USB cable to get started.
…while the phone is plugged in, unlocked and set to File transfer. Restarting the phone, swapping cables and reinstalling rarely helps. Other tools such as OpenMTP are 120+ MB downloads, and they often fail to connect for the same underlying reason.
MagicTransfer was built out of that frustration. It's a small native Mac app that finds out why the connection fails and fixes it, then makes everyday tasks pleasant: browsing, previewing photos and voice notes, and seeing what's filling up your phone. If you've searched for "Android File Transfer not working on Mac", this is for you.
| Browse your phone like a Finder window | Photo thumbnails |
|---|---|
![]() |
![]() |
| Preview without copying | See where your space goes |
![]() |
![]() |
Screenshots use MagicTransfer's built-in demo mode, with a made-up phone and generated pictures.
- macOS 13 Ventura or later, on Apple Silicon or Intel
- An Android phone and a USB data cable (some cheap cables only charge)
- Download
MagicTransfer-x.y.z.dmgfrom the Releases page. - Open it and drag MagicTransfer onto the Applications folder.
- Open MagicTransfer from Applications or Launchpad.
The first time you open it, macOS will say it "cannot verify the developer". This is because MagicTransfer isn't notarized by Apple, which requires a paid developer account. To allow it, go to System Settings → Privacy & Security, scroll down and click Open Anyway. You only need to do this once. Alternatively, run:
xattr -dr com.apple.quarantine /Applications/MagicTransfer.appYou only need Apple's free Command Line Tools. Full Xcode isn't required.
xcode-select --install # skip if you already have them
git clone https://github.com/Confidenceiskey/android-file-transfer-mac.git
cd android-file-transfer-mac
./scripts/build-app.sh --dmg # creates build/MagicTransfer.app and build/MagicTransfer-1.0.0.dmg
cp -R build/MagicTransfer.app /Applications/An app you build yourself opens without the Gatekeeper warning.
- Open MagicTransfer.
- Connect your phone with a USB cable and unlock it.
- On the phone, tap the "Charging this device via USB" notification and choose File transfer.
- The Overview shows where your space is going. Click Internal shared storage in the sidebar to browse your files. Then:
- Open a folder: double-click it.
- Preview a photo, video or voice note: select it and press Space, or double-click it. Use ← → to flip through the folder.
- Photo grid: ⌘2 shows icons with photo thumbnails, and ⌘1 goes back to the list.
- Hidden files: files whose names start with a dot (like
.thumbnails) are hidden, as in Finder. Press ⇧⌘. or use View → Show Hidden Files to show them. - Go back: ⌘↑ or the back button. You can also click any folder in the path bar.
- Copy to the Mac: select files or folders and press ⌘D. They go to your Downloads folder. To pick a different folder, right-click and choose Download To….
- Copy to the phone: drag files or folders from Finder into the window, or press ⌘U.
- New folder: ⇧⌘N. Refresh: ⌘R. Delete from the phone: ⌘⌫ (always asks first).
macOS includes a background helper called ptpcamerad, part of Image Capture. It takes
exclusive control of every camera-like USB device the moment it's plugged in, and modern Android
phones present themselves exactly that way. Any other app that then tries to open the phone,
including Android File Transfer and OpenMTP, is refused. That refusal is the "could not connect"
error.
MagicTransfer detects when ptpcamerad is holding the phone and stops it. It also cleans up the
half-open MTP session that ptpcamerad leaves behind on the phone, then connects. This is
safe:
- MagicTransfer only ever stops Apple's own Image Capture helpers, checked by both name and install location (
/usr/libexecor/System). - macOS restarts
ptpcameradautomatically the next time something needs it. - No admin password, no system settings changed, nothing installed.
- iPhones and other Apple devices are never touched.
If a regular app is holding the phone (for example Android File Transfer or OpenMTP), MagicTransfer says so and offers a Quit button instead of force-closing it.
| You see | Do this |
|---|---|
| "File transfer is off" | On the phone, tap the USB notification and choose File transfer (not "Charging only" or "PTP"). |
| "Unlock your phone" | Android hides files while locked. Unlock it, and the files appear automatically. |
| "Android File Transfer is using your phone" | Click Quit Android File Transfer. To stop its agent coming back at login, remove Android File Transfer Agent in System Settings → General → Login Items, or uninstall Android File Transfer. |
| Phone never shows up | Try another cable or USB port. Many cables are charge-only. |
| "Couldn't connect" | Unplug the phone, plug it back in, and click Try Again. |
For detailed diagnostics, run the command-line tool with debug logging (see below) and include the output in a bug report.
The repository also builds magictransfer-cli, which is handy for scripting and debugging:
swift build -c release --product magictransfer-cli
.build/release/magictransfer-cli info # phone + storage details
.build/release/magictransfer-cli ls /DCIM/Camera # list a folder
.build/release/magictransfer-cli get /DCIM/Camera/IMG.jpg ~/Desktop
MAGICTRANSFER_DEBUG=1 .build/release/magictransfer-cli ls # with protocol diagnosticsMagicTransfer speaks MTP (Media Transfer Protocol), the protocol Android uses for USB file
transfer. It's implemented from scratch in Swift directly on Apple's IOUSBHost framework, with no
libmtp or libusb.
Sources/
├── MTPKit/ The MTP library (no UI)
│ ├── USB.swift Finds the phone, takes it back from ptpcamerad, bulk USB I/O
│ ├── MTPDevice.swift MTP session: browse, download, upload, create folder, delete
│ ├── Container.swift MTP USB container framing
│ ├── Datasets.swift DeviceInfo / StorageInfo / ObjectInfo / property lists
│ └── ...
├── MagicTransfer/ The SwiftUI app
└── MagicTransferCLI/ magictransfer-cli
Notable details:
- Fast folder listing: uses
GetObjectPropListto fetch every child's name, type, size and date in 4 requests, instead of one request per file. It falls back to per-fileGetObjectInfoon phones that don't support this. - Chunked downloads: uses Android's
GetPartialObject64(8 MB chunks), so large files show progress, can be cancelled between chunks, and aren't limited to 4 GB. - Streaming previews: videos play through an
AVAssetResourceLoaderthat reads only the byte ranges the player asks for. Photo thumbnails come from the preview image embedded in the first 128 KB of each JPEG/HEIC file. Previewed files are cached in~/Library/Caches/MagicTransfer, and the cache is cleared when the app quits. - Space overview: one
GetObjectPropListrequest per property across all objects gives every file's size in about 15 seconds, even with 25,000 files. Android doesn't expose the operating system, installed apps or app data over USB, so that part is shown as "System & apps". - Single USB queue: all phone communication runs on one serial queue, so the UI never freezes.
Tested on a Google Pixel 3a with macOS 15. MTP is standardised and every Android phone uses Google's MTP implementation, so other phones should work too. If yours doesn't, please open an issue.
swift build # debug build of everything
swift run MagicTransfer # run the app without bundling it
swift test # unit tests (needs Xcode, or a Swift toolchain that includes swift-testing)
swift scripts/make-icon.swift # regenerate Assets/AppIcon.icns
MAGICTRANSFER_DEMO=1 swift run MagicTransfer # demo mode: made-up phone, no device needed
MAGICTRANSFER_SNAPSHOT=docs/screenshots swift run MagicTransfer # regenerate the README screenshotsReleasing: push a tag such as v1.0.0. GitHub Actions builds the universal app, packages
MagicTransfer-1.0.0.dmg and attaches it to a new GitHub Release.
Contributions are welcome, especially reports of how MagicTransfer works with your phone model.
MIT. MagicTransfer is not affiliated with Google or Apple. Android is a trademark of Google LLC.



