Is it possible to know the origin source of the vault?

What I’m trying to do

I am trying to build a tool for Obsidian on Android, and the source of origin for the vault is very important.

Things I have tried

I’ve tried retrieving the Obsidian folder to look for any meta information but it doesn’t seem like the vault hold any information. I’ve looked into .obsidian file I can get other information but not the source of origin. I am wondering what’s the ideal way to know if the vault is stored in Obsidian sync, local storage or some other sync options.

I suggest you add more information to your post if you want some help. What is the nature of the tool? And why is the origin important? And do you actually mean the origin of the vault or the origin of particular files? What/where/when/how is your tool operating on the files?

And if you do mean files rather than vaults, when you say “origin” do you mean the one single original source location of the file? Or do you mean where the latest version change came from? If the file gets deleted and then restored and the “origin” changes, does that impact the tool?

Please try to avoid “Feed me” questions, as in our code of conduct by adding as much information as you can.

I am building a third-party tool for Android, it is meant to edit files in Obsidian vault like updating the content of the file. As far as I understand, if the vault is located in Obsidian Sync, the files are not editable from a third-party tool. When I refer to the origin of the vault, I mean where it is created—whether in Obsidian Sync, local storage, or elsewhere.

If there is a way to identify whether the vault is hosted in Obsidian Sync, I can provide an appropriate user experience.