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

Fixes #180, #392 Migration of Backup Features to Android Storage Access Framework (SAF) #395

Merged
merged 5 commits into from
Oct 7, 2020

Conversation

bitmold
Copy link
Collaborator

@bitmold bitmold commented Sep 24, 2020

There's a lot happening in this pull request...

  • The backup/restore for cookies and onion services uses the Android Storage Access Framework on APIs 19+. This means:
  • On APIs 16, 17, 18 backup is still supported using the WRITE_EXTERNAL_STORAGE permission. Dialogs pertaining to selecting a backup were deleted from the project since a system dialog gets the job done.
  • Many string resources pertaining to backups and dialogs were removed from the project
  • All backup/restore dialogs follow dialog aesthetic guidelines. This also means we have a lot less code in the project.
  • The Floating Action Buttons in the app (all are found in the backup/restore flow) use an actual plus sign.

GIFs and a more thorough breakdown of things to come...

@bitmold bitmold requested a review from n8fr8 September 24, 2020 02:53
bitmold added a commit that referenced this pull request Sep 24, 2020
(this sets us up to fully remove the permission on APIs 19+ after #395
is merged
bitmold added a commit that referenced this pull request Sep 24, 2020
(this sets us up to fully remove the permission on APIs 19+ after #395
is merged
service backup/restore.

Deleted many resources that are no longer needed
Cookie backup/restore works.

Cleaned up many more old resources, styled dialogs
to match Android conventions.
	- UI is ready for v3 client cookies (just uncomment one line of code)
	- when text input is incorrect, the submit button will be disabled rather dismissing the dialog and showing the user a vague Toast + erasing all their input
@bitmold
Copy link
Collaborator Author

bitmold commented Sep 29, 2020

I just tested backup and restore for client cookies and hosted services on API 16 and 30 and the functionality was expected!!

I shouldn't be pushing anymore code here unless you find something messed up in your review or testing @n8fr8

Here is the new cookie backup/restore flow:
cookie_restore_new

Here is the new hosted service backup/restore flow:
backup_restore

The new cookie dialog and new hosted service dialogs:
cookie_create_new
hosted_create_new

@n8fr8
Copy link
Member

n8fr8 commented Oct 7, 2020

building and working well here. code looks good. will review a bit more, and merge soon.

@n8fr8 n8fr8 merged commit a66b99d into guardianproject:master Oct 7, 2020
@bitmold bitmold deleted the backup_fix branch October 8, 2020 03:18
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