Everything the app keeps on the phone goes into the file, with no exception. What comes back on import is the same app, in the same state.
- Every Fastmail account, with its name, its colour, its calendar switch and its sign-in, so it is signed in at once after the import.
- The Opensolr account, with its key and the connection to your mail index.
- The push keys of each account, with which Fastmail encrypts the new-mail messages it sends to the phone.
- Every setting of Settings: signature, search, reading, feedback, swipes and the language of the app.
- Everything the app remembers for you: the order of the folders, the sections you folded or opened, where you left each list, the mail chat and its history.
- The state of the indexer: what it already did, what it still has to do, and when it last ran.
- The app’s database: the mail kept on the phone, the folders, the changes you made that are still waiting to reach Fastmail, the Fastmail address books, and the rest the app keeps there.
- The work Android runs for the app: the syncs and indexing runs it has scheduled.
- Every other file in the app’s private storage.
Two folders that Android keeps beside the app’s data are not the app’s state and are not in the file: the code Android compiled from the app (code_cache) and the app’s native libraries (lib). Both come with the installed app itself, built for that version.
On the phone, every sign-in and key is sealed with a key that never leaves Android’s secure key store, so it could not be read on another phone. When the file is made, each one is opened and put into the file, which is itself locked with your password. When the file is imported, each one is sealed again with the key of the phone it lands on. See How the file is locked.