this post was submitted on 30 Jan 2024
51 points (93.2% liked)

Android

17717 readers
69 users here now

The new home of /r/Android on Lemmy and the Fediverse!

Android news, reviews, tips, and discussions about rooting, tutorials, and apps.

🔗Universal Link: !android@lemdro.id


💡Content Philosophy:

Content which benefits the community (news, rumours, and discussions) is generally allowed and is valued over content which benefits only the individual (technical questions, help buying/selling, rants, self-promotion, etc.) which will be removed if it's in violation of the rules.


Support, technical, or app related questions belong in: !askandroid@lemdro.id

For fresh communities, lemmy apps, and instance updates: !lemdroid@lemdro.id

💬Matrix Chat

💬Telegram channels / chats

📰Our communities below


Rules

  1. Stay on topic: All posts should be related to the Android OS or ecosystem.

  2. No support questions, recommendation requests, rants, or bug reports: Posts must benefit the community rather than the individual. Please post to !askandroid@lemdro.id.

  3. Describe images/videos, no memes: Please include a text description when sharing images or videos. Post memes to !androidmemes@lemdro.id.

  4. No self-promotion spam: Active community members can post their apps if they answer any questions in the comments. Please do not post links to your own website, YouTube, blog content, or communities.

  5. No reposts or rehosted content: Share only the original source of an article, unless it's not available in English or requires logging in (like Twitter). Avoid reposting the same topic from other sources.

  6. No editorializing titles: You can add the author or website's name if helpful, but keep article titles unchanged.

  7. No piracy or unverified APKs: Do not share links or direct people to pirated content or unverified APKs, which may contain malicious code.

  8. No unauthorized polls, bots, or giveaways: Do not create polls, use bots, or organize giveaways without first contacting mods for approval.

  9. No offensive or low-effort content: Don't post offensive or unhelpful content. Keep it civil and friendly!

  10. No affiliate links: Posting affiliate links is not allowed.

Quick Links

Our Communities

Lemmy App List

Chat and More


founded 1 year ago
MODERATORS
 

On Android you can isolate Apps and Files from another. The easy method is a work profile, normally a (really good) feature for companies to control your sh*t but only in that profile, and you can disable it entirely.

User Profiles are even more compartimentalized though, GrapheneOS embraces it fully, as it allows to encrypt data seperately, put data to rest while the device is on, and running apps with less privileges, possibly even testing viruses there.


So how do I get my files synchronized across these profiles?

With Syncthing this is possible:

  1. Set up your work profile using Shelter / your user profile through the settings
  2. Create a folder in both profiles that you want synchronized, here SHARED
  3. Install Syncthing in both profiles. For the work profile you could use "Shelter" to clone the app. I recommend to use Obtainium and add its repo URL

Tip: when setting up Syncthing, it doesn't need the very insecure "access all files" permission. If you are on GrapheneOS you can restrict it to just the folders you want to Sync.

screenshot of storage scropes page

Isolated profile

  • Open Syncthing
  • it will go through the setup dialog, you can use storage scopes if you are on GrapheneOS, but on other Android it needs access to all your files.
  • If you have Energy saver on (which you should) then it may show you "Syncthing is not running", under "Change Settings" disable run conditions (the sync is local)
  • remove the default Camera folder.
  • go to Settings
  • Disable run conditions (this is problematic if you use Syncthing also for internet Sync, but makes sure it always runs)
  • Behavior
  • Start Service directly on boot"
  • Syncthing Options: uncheck all boxes
  • Set the Device name to "isolated" for example
  • on Main screen, bottom left "show device ID" and copy it.

Main profile

  • repeat everything here too.
  • instead of copying the device ID, go to the tab "Devices"
  • name it "isolated" for example
  • at the Link symbol, instead of "dynamic", enter tcp://127.0.0.1:22000 (this will connect over your local network)
  • add profile

Screenshot of final profile setting

You should get a notification of a device that wants to connect. Accept it and repeat the process:

  • name it "owner" for example
  • set its Link to tcp://127.0.0.1:22000

Now you have both profiles connected!

Add a Folder

  • add a Folder through the Filepicker Dialog
  • anable Syncing with the other profile
  • you will get a notification, add the folder in the other profile too, and set its Sync location.

All files placed in one folder will now appear in the other one shortly! This requires no network access, and works very well.

Note that if you also use Syncthing for regular Synchronisation between devices, you will want run conditions on the main profile.

you are viewing a single comment's thread
view the rest of the comments
[–] Pantherina@feddit.de 1 points 9 months ago

Uhm, no idea what that means :D

Syncthing-fork is for sure more complex to use but better. Perfect definition of a Fork really.