buttercup / buttercup-mobile

:iphone: React-Native mobile application for Buttercup
https://buttercup.pw
GNU General Public License v3.0
391 stars 69 forks source link

Query local vault feature/status / Filen (cloud file store/share) integration (iOS) #329

Open ldexterldesign opened 1 year ago

ldexterldesign commented 1 year ago

šŸ‘‹

Hope you're well

What's the status of local vaults, specifically on iOS - I see there's some beta-type status..?:

IMG_0279

Since Boxcryptor just sold to Dropbox, I feel like I just lost my Dropbox encryption so have migrated to Filen

I installed the Filen app but there is, obviously, no Filen integration like Dropbox so I explored the local feature but it doesn't behave like I expected (i.e. show file browser so I can select a local vault)

Could someone suggest a method - or roadmap - for accessing/loading my Filen stored vault - would this require Filenā†”BC integration, a Filen WebDAV solution or a new BC feature where users can store and access their vaults with any of the dozens of file share/store offerings?

Hope to hear back

Sincerely

ldexterldesign commented 1 year ago

Prior to the introduction of the Files app with iOS 11, every app had to bring its own file browser if it was going to enable file editing. With the proliferation and evolution of Appleā€™s own Files app, this is no longer necessary. Files are best managed and edited centrally from within it. By handing over file management to the Files app, we can now focus entirely on our core competency: Encrypting and decrypting your files. - https://www.boxcryptor.com/en/blog/post/everything-new-boxcryptor-for-ios

Relevant?

PhilippMDoerner commented 1 year ago

Just for my understanding to see whether this is the same issue that I myself am facing: This is a feature request for a sort of "import .bcub file" button that would allow one to choose a .bcup file that one may have copied through whatever means onto the device and now just wants to get into the application, is that correct?

I've been trying to wrap my head around whether buttercup-mobile is able to load the .bcub file in my Downloads folder on Android or not but can't seem to get to a fully satisfying answer. There's multiple issues stating that local files can be used, but that seems only to be the case for creating your own bcub files for the device, not for loading them from other folders. Meanwhile on the app itself when setting up a vault (passing by the same interface as you show) I can't see any GUI element that allows me to import or use this .bcup file.

ldexterldesign commented 1 year ago

What youā€™ve described is my experience too

perry-mitchell commented 1 year ago

Buttercup mobile supports local files, but only within the app's document directory: https://github.com/buttercup/buttercup-mobile/blob/master/source/library/datasource/LocalFileInterface.ts#L9

image

So for a vault to be visible to Buttercup it needs to be in the document folder for the app.

I'm not by any means an expert in local files on mobile, but at least on android you might create a temp directory via the app (like in my screenshot) and try to find that externally - drop your vault in there and you should be able to add it to the app just fine.

I'd accept a PR to improve this process, if there's some easier way to manage this. I'd also accept PRs to add support for the sharing system (at least on iOS) so the app can receive vault files and add them to the documents folder as mentioned above.

hamusi commented 1 year ago

Buttercup mobile supports local files, but only within the app's document directory: https://github.com/buttercup/buttercup-mobile/blob/master/source/library/datasource/LocalFileInterface.ts#L9

image

So for a vault to be visible to Buttercup it needs to be in the document folder for the app.

I'm not by any means an expert in local files on mobile, but at least on android you might create a temp directory via the app (like in my screenshot) and try to find that externally - drop your vault in there and you should be able to add it to the app just fine.

I'd accept a PR to improve this process, if there's some easier way to manage this. I'd also accept PRs to add support for the sharing system (at least on iOS) so the app can receive vault files and add them to the documents folder as mentioned above.

Unfortunatelly this is not possible I guess, because the application has rights to view only it's own files. So from 3rd party app there is no way to put a .bcup file into the Buttercup data directory.

Really some better approach needs to be used, for example ability to import a .bcup file from.

For example OpenVPN has it that way for importing configuration profile, but I guess it's native android app, so not much helpful hint.

Sadly buttercup is almost useless without this feature on iOS and Android.

ldexterldesign commented 1 year ago

ā€œUselessā€ is harsh but it would be nice not to have to rely on a Dropbox account to store the BCUP file

ldexterldesign commented 1 year ago

If anyone reading this discovers a workaround in iOS for this then Iā€™m all ears else hopefully iOS improves this soon

Iā€™m left feeling BC isnā€™t to blame here

Tangentially, a use case that has pissed me off for ages with iOS is inability to easily upload and play MP3s. I hasten to think this is a DRM issue with Apple, which may relate šŸ˜¤..?

softlazo commented 1 year ago

I'm not by any means an expert in local files on mobile, but at least on android you might create a temp directory via the app (like in my screenshot) and try to find that externally - drop your vault in there and you should be able to add it to the app just fine.

Really, me neither, I've been searching almost my entire directory system on android, even in root, and I can't seem to find this Buttercup storage anywhere. (I was almost going to go insane...) Anyone have a slight idea, or know in what directory Buttercup saves the .bcup file in?