Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Google Drive API to the REST V3 API #213

Merged
merged 3 commits into from
Oct 2, 2019
Merged

Conversation

dpad85
Copy link
Member

@dpad85 dpad85 commented Sep 27, 2019

The Google Drive Android API that was used to upload/retrieve channels backup has been deprecated and scheduled for termination at the end of Dec, 2019. We switch to the REST V3 API which provides almost the same feature set, albeit without offline syncing. The lack of offline syncing is not an issue since we already save the channels backup on-device.

see: https://developers.google.com/drive/android/deprecation

Hidden AppData folder

Since Google mentions that the hidden AppData folder is going to be deprecated at some point, and since the user already has access to the actual backup file and can tamper with it, there is no reason to hide the backup file. Thus the Google Drive backup files are now stored in a regular Drive folder (named eclair-mobile at the root of My Drive) that the user can freely access.

Note that the app still checks for old backup that would be in this hidden AppData folder. Subsequent backups will be uploaded to the public folder.

Backup compression

The backup files are now compressed (using ZLIB) before being encrypted to save some bandwidth.

The Google Drive Android API that was used to upload/retrieve channels
backup has been deprecated and scheduled for termination at the end of
Dec, 2019. We switch to the REST V3 API which provides almost the same
feature set, albeit without offline syncing. The lack of offline syncing
is not an issue since we already save the channels backup on-device.

see: https://developers.google.com/drive/android/deprecation

* Hidden AppData folder

Since Google mentions that the hidden AppData folder is going to be
deprecated at some point, and since the user has already access to the
actual backup file, there is no reason to hide the backups and the
Google Drive backup files are now stored in a regular Drive folder that
the user can freely access.

Note that the app still checks for old backup that would be in this
hidden AppData folder. Subsequent backups will be uploaded to the public
folder.

* Backup compression

The backup files are now compressed before being encrypted to save
some bandwidth.

Fixes #208
Also fixes an issue where gdrive backup setup in newly created wallet
would not complete properly.
@dpad85 dpad85 merged commit c8d6190 into testnet Oct 2, 2019
@dpad85 dpad85 deleted the migration-drive-rest branch October 2, 2019 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants