Details about copying app data with Smart Switch

Hello. I am an app developer.
I’m trying to send some data within my app to another device via the Smart Switch app,
but I couldn’t find the official developer documentation,
so I’m leaving the following questions.

  • What basic processing is required to send data?
    • Is it enough to handle “allowBackup, fullBackupContent, dataExtractionRules” in AndroidManifest.xml?
  • If the app is installed and already in use on the receiving device and data already exists, what happens to the existing data?
    • Is all data initialized and only the data specified to be sent is sent?
    • Is the unspecified data retained and only the data specified to be sent is overwritten?
    • Is nothing sent and ignored?
  • What happens if there is a difference in version between the sending app and the receiving app?

Smart Switch does not provide any APIs for developers afaik. It handles transferring data from one device to another automatically. If an application is already installed and being used on the target device, it will skip transferring the app.