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

Use storage access framework #469

Merged
merged 3 commits into from
Apr 25, 2019
Merged

Use storage access framework #469

merged 3 commits into from
Apr 25, 2019

Conversation

zidhuss
Copy link
Contributor

@zidhuss zidhuss commented Jan 4, 2019

As we've now moved up the minimum API level 21, we can make use of the storage access framework. This is going to need some further testing on different devices.

Fixes #391 as you no longer need storage permissions to export passwords or import ssh key.

@msfjarvis
Copy link
Member

I've tested it on my Pixel 2 running Android 9 and the storage access part seems to work fine.

In the process I noticed other quirks though.

  • TODO("Check if valid SSH Key before import") will cause a crash when trying to import keys, please remove it or convert it to a comment. UserPreference.kt, line 279
  • Trying to import an ED25519 key will not work, which I believe is a jgit issue.
  • Trying to import the public key even with the private key present will not work, the user should be made aware of this before the file chooser comes up.

@msfjarvis
Copy link
Member

Accidentally rebased on local master rather than remote, welp...

@msfjarvis
Copy link
Member

@zidhuss Any blockers?

@zidhuss
Copy link
Contributor Author

zidhuss commented Apr 21, 2019 via email

@msfjarvis
Copy link
Member

I've not found time to finish this due to uni commitments (almost done). I'll be active again from next month. I'd be happy for you to take this on if you'd like.

On Sun, Apr 21, 2019 at 03:39:36PM -0700, Harsh Shandilya wrote: @zidhuss Any blockers? -- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: #469 (comment)

I'm down to help. What all's left? Been using it since you opened the PR and haven't had a problem

@zidhuss
Copy link
Contributor Author

zidhuss commented Apr 22, 2019 via email

@msfjarvis
Copy link
Member

msfjarvis commented Apr 25, 2019

Done

Gonna leave this for later and start another issue.

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
@msfjarvis msfjarvis merged commit e540109 into master Apr 25, 2019
@msfjarvis msfjarvis deleted the storage-access branch April 25, 2019 03:41
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.

"Export Passwords" imports SSH-key
2 participants