Sharing files between GrapheneOS profiles

Sorry for reviving an old thread, but maybe it’ll be useful to people who stumbled into here looking for a solution like myself.

I was wondering about the same, and while it’s possible to move files without your PC by using an USB-C format stick it’s still really inconvenient and takes too long. The suggested sync tools also just seem cumbersome to deal with. The most convenient solution was probably using a messenger or cloud sync used in both profiles - but then you need Internet and involve a 3rd party…

I ended up putting together my own app to share files in a simple manner, like selecting them from the gallery, sharing them to the app, switching to the other profile and be offered to add those images to downloads or re-sharing them via another app in this second profile

The way it works is so simple, I was surprised that it hadn’t been done yet: When you select a file, or share it to the App it opens a TCP port where that file can be fetched from. After switching to another profile, the App will check whether the TCP port is available, and if yes it offers downloading shared files from the other profile.

It only ever shares files that you actually selected, nothing more. It only shares them while the sharing-notification is explicitly shown, pressing “Stop Sharing” or swiping it away immediately stops the process and closes the port. When encryption is enabled, only this same app has access to shared files from other profiles. Malicious apps are prevented access.

I published it as ad-/free and open source on GitHub and F-Droid. Installing via F-Droid is probably best as they build it fresh from the source, so you really get what you think you get.

Hope that helps someone!

(this post was suddenly flagged and hidden by the community, but I don’t understand the reason - especially after it already received plenty of likes and started, what I’d argue is a really nice discussion about alternative solutions - yes, I did revive an old thread, yes, I am promoting my own app - but I think it’s still reasonable as it’s completely on topic and offers a solution to the OP’s question)

9 Likes