SQLite and app reinstall/OS Upgrade

Hello,
I would like to implement a data archive feature to my app , so the user can archive and restore the data after an app re-install or OS Upgrade, The data is not huge, so I was initially planning to use firebase to store user data but that would require a user authentication to restore data. My app does not have any authentication(No Login/Signup functionality).

Can i use SQLite for this purpose ?Will the SQLite DB persists after an app re-install or an OS Upgrade ?

In order to really use firebase without asking users for any authentication, i may need a unique ID for each device so that i can use as a key to store user data, which i haven’t found any.

Thanks !

SQLite stores data in a local db file , so as long as that file exists and your app can reach it there should not be an issue.