Autofill Service to be able to give password hints directly and save passwords from autofill#162
Autofill Service to be able to give password hints directly and save passwords from autofill#162difanta wants to merge 12 commits intohegocre:mainfrom
Conversation
… opening app; service opens app lock prompt if needed via Dataset.setAuthentication; autofill service can now save from autofill (wip)
|
Hello, Thank you very much for your work! I took a quick look at your code, and it looks nice! To answer your questions:
Thank you again! |
…formation in intents, so no need for a separate lock only activity but rather main activity is in charge of authenticating and answering; fix building Save Info, now should work in most common cases, including delayed username and password insertion; wip: dedicated UI to handle save requests (create/update)
|
Hello! I have been able to install and try the app, and I have found two issues, to an otherwise amazing work!!
Thanks again for your contribution! Best regards. |
only support saving from version P;
|
Hi! I finally managed to get some work done, I have fixed the issue of the first autofill request not showing the correct passwords, it did not wait correctly for the decryption and so they were only ready by the second request. I don't know what might cause the fact that strict domain matching is not followed, I've found a small modification to make in order to make the code identical to NCPNavHost but I would have to investigate further if this is not sufficient. In any case a few updates: Now the autofill service runs only with cached keychain and passwords, this is the only way to make it fast enough to be usable. A deferred update must be the way to sync passwords periodically. The autofill response is always handled by the main app, and specifically a new interface (AutofillData) is passed down by the components of the app until NCPNavHost handles them. There are 4 possible cases I'm missing a translation, which I don't know how to do and, if you agree, an icon to replace the big "Nextcloud Passwords" hint to something smaller such as ">" or any icon that fits the idea. Look for TODO if you'd like to spot these. |
|
This should be ready, the create password bug is solved. |
gradle.properties
Outdated
| # Specifies the JVM arguments used for the daemon process. | ||
| # The setting is particularly useful for tweaking memory settings. | ||
| org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -XX:+UseParallelGC | ||
| org.gradle.java.home=C:\\Program Files\\Java\\latest\\jdk-21 |
There was a problem hiding this comment.
I think this shouldn't be here? It produces a build error in systems where the jdk is not at this exact path
There was a problem hiding this comment.
Sorry I messed up a commit with things i kept local, should be good now
This is a work in progress implementation of some features that I would consider very important for the Autofill Service.
This is still work in progress from an optimization perspective, and also I would like external opinion on a few choices.
If anyone has the time to review this, I would much like to hear your thoughts, cheers.