- Category
- Utilities
- Publisher
- kalabhaftu
- Repository
- Open repository
- Release
- Open release
- Current version
- v1.7.11
- Release date
- 2026-11-22
- Package size
- macOS 5.8 MB
MacMTP
macMTP Native macOS Android File Transfer
README
macMTP - Native macOS Android File Transfer
A native macOS utility for transferring files between a Mac and Android devices over USB MTP.
Built with Swift, SwiftUI, and AppKit-backed file views. The MTP layer uses a bundled Go-based Kalam/go-mtpx engine through a small C bridge.
The download badge counts GitHub release asset downloads across all releases. It is not a count of unique users or successful installs.
Screenshots
Main window — local and Android panes with mock screenshot data
Transfer progress with per-file and overall progress
Conflict handling before replacing or skipping files
Preferences panel
About macMTP
Why macMTP?
macMTP aims to provide a focused, native file-transfer app for people who still move files between macOS and Android devices with a USB cable. It is intentionally small: a local file pane, an MTP device pane, transfer progress, conflict handling, and packaging scripts for Intel, Apple Silicon, and universal releases.
This is community-maintained software, so this README should describe the current app rather than a wish list. If a feature below is incomplete or broken, please open an issue or PR.
Current Features
File Transfer
- USB MTP device detection through IOKit, with optional auto-connect.
- Serialized connection ownership with explicit USB, handshake, retry, and failure states; auto-connect performs at most one controlled session retry.
- Local-to-device uploads and device-to-local downloads.
- Internal storage and SD card selection when the connected device exposes multiple MTP storages.
- Batch transfers with per-file progress, pause/resume controls for the queue, cancellation, and completion/error notifications.
- Cut/copy/paste flows across local and MTP panes.
- MTP-to-MTP copy/move is not currently supported by the bridge.
Conflict Handling
When transferred files already exist at the destination, macMTP can ask how to handle conflicts:
| Option | Behavior |
|---|---|
| Overwrite All | Replace conflicting destination files with source files |
| Skip All | Keep existing destination files and skip conflicting transfers |
| Overwrite if Different | Replace only when source and destination sizes differ |
| Skip if Same Size | Keep destination files whose sizes match the source |
| Cancel | Abort the transfer |
This is size-based conflict handling. It is useful for skipping already-copied files, but it is not byte-range resume inside a partially written file.
File Browser
- Dual-pane layout: local filesystem on the left, Android device on the right.
- Sidebar with common local folders and mounted volumes.
- List and icon views.
- Sorting by name, size, type, or modified date in every view, with folders kept first.
- Icon-view grouping by kind, extension, size range, or modified date.
- Direct filename search for files and folders, plus a separate extension filter.
- Status-bar sizes total the files in the current directory without recursively scanning folders; local folder sizes are calculated on demand from Properties, while MTP folder sizes are unavailable.
- Hidden-file toggles for local and MTP panes.
- macOS dark mode via system colors.
Keyboard and Selection
| Shortcut | Action |
|---|---|
| Letter key | Jump to the first file starting with that letter |
| Repeated letter key | Cycle through matching files |
Command-C |
Copy selected files |
Command-X |
Cut selected files |
Command-V |
Paste files |
Command-Delete |
Delete selected files |
Command-N |
Create new folder |
Command-R |
Refresh directory listing |
Command-A |
Select all files |
Enter |
Open or navigate into selected item |
Command-Up |
Navigate to parent folder |
Shift-click |
Range selection |
Command-click |
Toggle selection |
Error Reporting
- Anonymous crash and error reporting is enabled by default and can be disabled at any time in Preferences.
- Reports exclude default personal information; macMTP also redacts local paths and does not attach device identifiers to MTP directory errors.
Drag and Drop
- Drag files from the local pane to the MTP pane to upload.
- Drag files from the MTP pane to the local pane to download.
- Drag files from Finder into macMTP to upload to the selected MTP destination.
- Drag local files from macMTP to Finder.
Dragging MTP files directly to Finder is not implemented yet; use the local pane as the download target.
System Requirements
- macOS 14.0 Sonoma or later
- Apple Silicon or Intel Mac
- USB cable connected to an Android device
- Android device set to File Transfer / MTP mode
Installation
[!IMPORTANT] Notice for v1.6.1 Users:
Due to a missingUser-Agentheader bug in v1.6.1, the in-app "Check for Updates" button cannot fetch update information automatically from GitHub. If you are currently on version 1.6.1, please manually download and installmacMTP-1.6.2-mac-universal.dmgbelow. Version 1.6.2 restores automatic update checking for all future releases.
Download the latest release from the Releases page.
Release artifacts are built for:
mac-arm64mac-x86_64mac-universal
Use the universal build if you are unsure which architecture you need.
Build From Source
Prerequisites
- macOS 14.0+
- Swift 6.0+ through Xcode or Xcode Command Line Tools
- Go 1.21+
- pkg-config and the Xcode C toolchain
Install the local dependencies:
brew install go pkg-config
Clone macMTP and enter the repository:
git clone https://github.com/kalabhaftu/MacMTP.git
cd MacMTP
Build a debug app bundle for the current machine:
bash scripts/build.sh debug --arch "$(uname -m)"
open macMTP.app
Build a release app bundle for a specific architecture:
bash scripts/build.sh release --arch arm64
bash scripts/build.sh release --arch x86_64
The build script stages the vendored Kalam sources in a temporary directory and
builds with the checked-in Go dependency tree. No external source checkout is
needed. Run scripts/check-upstream-kalam.sh manually when you want to inspect
available native-source changes; it never updates the vendored source
automatically.
Universal Builds
The build script downloads and builds the pinned, patched libusb for each target architecture. See Vendor/libusb/README.md. Universal builds use both architectures:
brew install pkg-config
softwareupdate --install-rosetta --agree-to-license
bash scripts/build.sh release --universal
Release Packaging
Create DMG and ZIP packages for all supported targets:
bash scripts/release.sh 1.6.2 --all
Release builds require SENTRY_DSN, SENTRY_AUTH_TOKEN, SENTRY_ORG, and SENTRY_PROJECT. The auth token is used only by sentry-cli during packaging and is never embedded in the app. MACMTP_SIGNING_IDENTITY is optional: without an Apple Developer ID, local and CI builds use ad-hoc signing; with a configured identity, the same scripts can produce a hardened-runtime signed bundle. Apple notarization is not claimed or attempted without Apple credentials. Packaging verifies the bundle, architecture, bundled libusb, embedded DSN, and generated checksums before completing. This generates architecture-specific DMG, app ZIP, and dSYM ZIP files plus SHA-256 checksums and latest-mac.yml:
release/
├── latest-mac.yml
├── macMTP-1.6.2-mac-arm64.dmg
├── macMTP-1.6.2-mac-x86_64.dmg
├── macMTP-1.6.2-mac-universal.dmg
└── SHA256SUMS.txt
Architecture
SwiftUI app
ContentView, FileExplorerPane, SidebarView, transfer/progress UI
|
Swift connection coordinator
USB availability, device identity, session generation, retry policy
|
Swift services and models
ClipboardManager, FileTransferService, MTPDeviceManager
|
KalamBridge
Swift async wrappers around C callbacks and JSON payloads
|
CKalam
C bridge target plus Go c-archive libkalam.a
|
Kalam / go-mtpx / libusb
MTP operations and USB transport
IOKit only reports USB availability. The connection coordinator owns session
creation and recovery, and passes the detected vendor/product/serial identity
to the native selector. Native initialization opens the interface, starts the
MTP session, then fetches device information and storages. It does not probe
GetDeviceInfo before OpenSession.
The Go MTP engine is compiled as a static C archive (libkalam.a) and linked into the Swift executable. libusb.dylib is bundled into the app package during scripted builds.
Project Structure
macmtp/
├── Package.swift
├── Vendor/
│ └── Kalam/ # owned native adapter and vendored Go modules
├── Sources/
│ ├── CKalam/
│ │ ├── include/
│ │ ├── early_init.c
│ │ ├── shim.c
│ │ └── libkalam.a # generated by scripts/build.sh
│ └── macmtp/
│ ├── App/
│ ├── Models/
│ ├── MTP/
│ ├── Services/
│ ├── Utilities/
│ └── Views/
├── Resources/
├── Tests/
│ └── macmtpTests/
├── scripts/
│ ├── build.sh
│ ├── release.sh
│ └── verify-app.sh
├── .github/
│ ├── ISSUE_TEMPLATE/
│ ├── workflows/
│ └── dependabot.yml
├── CONTRIBUTING.md
├── SUPPORT.md
└── CHANGELOG.md
Contributing
See CONTRIBUTING.md for setup, code style, PR process, and areas to work on.
For reproducible device-transfer troubleshooting, see SUPPORT.md.
This project follows the Contributor Covenant. Report security issues via SECURITY.md.
Governance and decision-making are documented in GOVERNANCE.md.
Acknowledgments
- go-mtpx
- [li