I want to sync my Minecraft and Mindustry data between my Android phone and Linux machine. Because Android is stupid, access to Android/data is restricted, so I know only two ways: root or adb. That’s why I run Syncthing fork on Android as super user, but here comes a problem. When Syncthing syncs new files or folders, it doesn’t set permissions Mindustry needs to access the files, the directory and everything in it must be owned by user 10226 (aka Mindustry app). So the question is: how can I make Syncthing change owner of new synced files? It’s not necessary to be done in Syncthing itself, maybe there’s an app I can use or script I can make that will do that? I don’t think I can just sync permissions and owners, because then it would configure them incorrectly on my desktop Linux and Mindustry there won’t be able to read/write files. Maybe I don’t understand how permission/ownership syncing work and I should just turn them on?
Currently I have Termux widget instead of Mindustry shortcut that changes owner of Mindustry data directly and everything in it to Mindustry itself, but that’s… no the greatest solution.