News for hackers. Stuff that matters.
Re:Firefox Send: Free encrypted file transfer service by dTal on Tuesday March 12, 2019 @10:18AM (#19368319)
Android phones don't do this anymore, for the technical reason that allowing a computer to mount a filesystem directly requires that the phone unmount it. Mass storage expects a block device, so there's no wrapper that one could provide that would make this work with the native filesystems of the phone.

What could be done is to dedicate a file on the phone as block storage, and expose that as a mass storage device. This would suffer from the same problem (of the phone not being able to access it at the same time), but if it's dedicated "flash drive emulation" space then perhaps this behavior won't be as surprising to the user.

Re:Firefox Send: Free encrypted file transfer service by skykooler on Tuesday March 12, 2019 @10:32AM (#19368470)
Android phones show up as MTP devices, which are basically file-level storage instead of block-level storage. Most OS's (besides MacOS) will display this with the same interface as a USB mass storage device.
Re:Firefox Send: Free encrypted file transfer service by est31 on Tuesday March 12, 2019 @10:58AM (#19368748)
MTP is super buggy tho. Sometimes I can get it to work, sometimes I can't. Thought it was the fault of GNU/Linux on the desktop, but I've heard similar stories from Windows users. Most people I've spoken to are just annoyed about MTP.

As a possible explanation for this issue, I think that if you use the internet to share data, it's more likely that Google makes money from some of the interactions (either via ads in the app or via play store tax or idk because the service is hosted in GCP or whatever) than if you used an internet-free method, so Google doesn't prioritize bugfixes that would hurt their revenue. Edit: would love to be proven wrong though!

Re:Firefox Send: Free encrypted file transfer service by dTal on Tuesday March 12, 2019 @10:50AM (#19368672)
MTP is a horrible protocol which renders the abstraction very leaky in my experience, to the extent that it's inaccurate to refer to it as "removable storage" and expect to behave in similarly sane fashion to a proper flash drive. For example, there's no support for modifying a file in-place - the entire file must be read out, modified, and then written back. These kinds of restrictions render it slow and unreliable.

Wikipedia tells the sordid story: https://en.wikipedia.org/wiki/Media_Transfer_Protocol#Compar...

Re:Firefox Send: Free encrypted file transfer service by TulliusCicero on Tuesday March 12, 2019 @11:04AM (#19368803)
> MTP is a horrible protocol which renders the abstraction very leaky in my experience

Nevertheless, it's still removable storage that can take the place of the most common use case of portable flash drives: moving files around from one computer to another. Which is explicitly what we were originally talking about.

Pointing out that it doesn't work for some other use case that you yourself brought up doesn't make any sense. That's not what everyone else was talking about.

Re:Firefox Send: Free encrypted file transfer service by dTal on Tuesday March 12, 2019 @11:26AM (#19369045)
I'm not going to debate you in three places at once, that's just obnoxious and clutters the thread.

Ultimately this is an argument about the precise semantics of "removable storage". I don't regard an MTP device as "removable storage" - it's another computer that one speaks to using a special protocol, with severe limitations. So is an iPhone - with special, protocol-speaking software, you can certainly put arbitrary files on it. I interpreted the parent to mean that they wanted to plug the phone in to "any PC" and have it Just Work. MTP isn't so great at that, especially from my perspective as a Linux user, where MTP support is no more built-in than iOS-protocol support. From this standpoint, "removable storage" == "USB mass storage".

On the other hand, it sounds like whatever Apple provides is much worse even than MTP, and less well supported in general.

Re:Firefox Send: Free encrypted file transfer service by TulliusCicero on Tuesday March 12, 2019 @11:33AM (#19369123)
> Ultimately this is an argument about the precise semantics of "removable storage". I don't regard an MTP device as "removable storage"

This is absurd. You don't get to tell someone, "you're wrong", then later when it's pointed out that the original assertion was actually true, then say, "oh, I meant that you're wrong as long as we're using my version of the word, the one that's very different from the one everyone else was using."

Sorry, but that's blatantly disingenuous. The original context was very clear. If you really meant, "well it sort of works as removable storage in one sense, but not in this other sense" you should've just said that to begin with.

Re:Firefox Send: Free encrypted file transfer service by dTal on Tuesday March 12, 2019 @11:40AM (#19369214)
Well, I'm sorry to have upset you, and I hope that the precise technical situation is now clear to anyone reading this thread.
Re:Firefox Send: Free encrypted file transfer service by TulliusCicero on Tuesday March 12, 2019 @10:32AM (#19368466)
> Android phones don't do this anymore

They don't? Since when? I still have a Pixel 1 but it's running Android P, so the latest major version of Android, and this still works fine.

Re:Firefox Send: Free encrypted file transfer service by gdulli on Tuesday March 12, 2019 @10:30AM (#19368453)
> allowing a computer to mount a filesystem directly requires that the phone unmount it

I don't think that's true. My S8 storage is mounted and accessible from my computer right now while at the same time playing music from the same storage. I can still take pictures/write to the storage.

Re:Firefox Send: Free encrypted file transfer service by dTal on Tuesday March 12, 2019 @10:45AM (#19368604)
As mass storage, or MTP? The distinction is why I qualified with "mount a filesystem directly". MTP doesn't do that.
Re:Firefox Send: Free encrypted file transfer service by TulliusCicero on Tuesday March 12, 2019 @11:00AM (#19368767)
You said "Android phones don't do that anymore", "that" referring to "have it show up as a removable storage device".

Pointing out that the protocol used is leaky or bad in some technical way doesn't change that Android phones do in fact show up as removable storage devices when connected to (at least Windows) PC's. Your original assertion was incorrect.

samcday even said they just wanted to copy some files around. You don't need to be able to modify files in-place from the PC to accomplish this.

Re:Firefox Send: Free encrypted file transfer service by ernesth on Tuesday March 12, 2019 @12:35PM (#19369988)
UMS (USB Mass Storage) is a protocol. MTP is a different protocol.

Android devices don't support UMS anymore.