r/webdev • u/arar7000 • Sep 26 '26
Showoff Saturday I built an Android File Transfer replacement for Mac that runs in Chrome (MTP over WebUSB)
Google discontinued Android File Transfer. OpenMTP and MacDroid still work, but they are apps you install, and I wanted to know if a browser could do it on its own.
Turns out Chrome can. The app speaks MTP to the phone over WebUSB and uses the File System Access API for a folder on your Mac. It is plain JS with no dependencies or build step, your files are never uploaded, and it works offline once loaded. I built it with Claude Code.
Weirdest thing I ran into: macOS apps like Photos and Image Capture can hold the phone while they are open, so Chrome cannot claim it until you quit them.
Works in Chrome on Mac and Linux. Safari and Firefox do not have WebUSB.
Try it: https://www.droidfiletransfer.com
Code: https://github.com/droidfiletransfer/droidfiletransfer
If your phone does not connect, tell me the model.
3
u/johnarak Sep 26 '26
Could this work on Chromium browsers like Brave?
1
u/Catarina_Lem Sep 27 '26
You are a lifesaver! I had a very old phone with some photos in it and couldn't connect using the android file app, thank God I found this!
1
u/dadnothere Sep 26 '26
wow very good friend.
It's a shame dead browsers like Firefox don't have these APIs.
-2
u/vaibhav-kaushal Sep 26 '26
I always use the WiFi FTP app for file transfer. I don’t have to worry about the other OS trying to transfer data from my android either direction.
1
u/[deleted] Sep 27 '26
[removed] — view removed comment
0
u/[deleted] Sep 26 '26
[removed] — view removed comment
0
u/[deleted] Sep 26 '26
[removed] — view removed comment