Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Verified Commit 0e4153cc authored by Fahim Masud Choudhury's avatar Fahim Masud Choudhury
Browse files

feat: Implement device to cloud push for all the files needed for Murena.io cloud recovery

eDrive checks if a recovery is needed and logs out and logs in the user to delete and recreate its database. It uses two broadcasts to trigger account removed and account added receivers.

Because of the recreation of the database, all the files and (syncable) folders are pushed to cloud storage.

When the process completes, a separate SharedPreference is used to track if recovery is needed or not. It is done so because if user logs out and logs in from AccountManager, eDrive's initial preference is cleared. However, this recovery preference will not be cleared unless user explicitly clears eDrive's data.
parent 9a290f19
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment