KeePassDX icon indicating copy to clipboard operation
KeePassDX copied to clipboard

Username is not filled in android browser

Open jmichler opened this issue 2 years ago • 20 comments

Describe the bug

Since some months the username filled is no longer filled through autofill service of android. This is a Galaxzy S21 with latest android 13 and latest chrome. The issue is also there on Firefox.

I'm not getting suggestions in the username field and if I enter the password field I get them but only the password is filled then.

I'm sure this worked earlier.

To Reproduce

Steps to reproduce the behavior:

  1. Enable keepassdx as the autofill service
  2. Open a page with a password in KeePass, e.g. Kunde.comdirect.de
  3. Click the username field=> no suggestions
  4. Click the password field => suggestions.
  5. Select an entry from the suggestions
  6. Passwort is filled but username is NOT

Expected behavior

In step 6 also the username should be filled

KeePass Database

  • Created with: windows keepass
  • Version: 2
  • Location: Remote file retrieved with onedrive
  • File provider (content:// URI): [onedrive]
  • Size: 1Mb
  • Contains attachment: no

KeePassDX:

  • Version: 4.0.2
  • Build: free
  • Language: german

Android:

  • Device: Galaxzy s21
  • Version: 13

Additional context

Add any other context about the problem here.

  • Browser for Autofill: Chrome 117

jmichler avatar Oct 13 '23 06:10 jmichler

The same issue is in Firefox. Only password are filled

inzaghi89 avatar Oct 13 '23 11:10 inzaghi89

Username is filled in the web address field in my case

ghost avatar Oct 14 '23 13:10 ghost

Same Problem here, with an up-to-date Pixel 6 with GrapheneOS using Fennec as Browser. The problem has existed for me for several months.

Tommy-01 avatar Oct 15 '23 14:10 Tommy-01

And it seems to be a problem of the app itself. In the Keepass2Android app it is still working, so I think it is not google to blame this time for a autofill issue;-)

jmichler avatar Oct 15 '23 14:10 jmichler

I have Samsung Galaxy S10E, use Chrome and have the same issue. I have re-installed KeePassDX to no avail. I copied database manually from PC and there everything works fine - fields are filled in with KeePass/WebAutoType, identified by the URL.

marko-pi avatar Oct 16 '23 08:10 marko-pi

Same for me, the issue happens occasionally, always for user/email fields. Didn't have any issues for example with Keepass2android

seba174 avatar Oct 18 '23 14:10 seba174

As a workaround, after the password gets filled just type the first letter of the username and you'll get prompted again, this time it'll work

nicoursi avatar Oct 20 '23 20:10 nicoursi

Is this limited to Chrome? I'm also seeing this with the current Edge release.

ginkel avatar Oct 23 '23 15:10 ginkel

Having the same issue, in Chrome Android username gets filled into the address bar.

EntityinArray avatar Oct 26 '23 06:10 EntityinArray

OK guys, The autofill system depends on many parameters:

  • The autofill service of the machine
  • The browser used
  • The form parsed

In order to be able to debug correctly, please indicate in each comment :

  • The Android version you're using and your device
  • The browser you're using and its exact version
  • The url of the form you're trying to access
  • The exact problem you're facing

Otherwise I won't be able to identify each problem. I'm already going to focus on the parameters of those of @jmichler who filled in his bug report correctly.

Please note that if the service works for browsers with native Autofill but not with browsers in compatibility mode, I won't be able to do much. But there may be browsers switching from one mode to another, we need to know from which version of the browser autofill is supported or is no longer supported to update the file : https://github.com/Kunzisoft/KeePassDX/blob/master/app/src/main/res/xml/dataset_service.xml

J-Jamet avatar Oct 28 '23 13:10 J-Jamet

Hi, thank you for working on this! I recorded a video that demonstrates the issue:

https://github.com/Kunzisoft/KeePassDX/assets/18554021/85638f6b-c15c-4897-8e6a-1cbf34e4a72d

In my case:

Android 12 SKQ1.211019.001 Browser: Chrome 118.0.5993.111 Url: happens on any site Problem: username gets filled into the browser's address bar

  • Autofill service: Screenshot_2023-10-29-09-30-05-719_com android settings
  • Browser used: Screenshot_2023-10-29-09-30-45-071_com miui securitycenter
  • The form parsed: Any form fills the username into the browser's address bar.

EntityinArray avatar Oct 29 '23 06:10 EntityinArray

Fixed with https://github.com/Kunzisoft/KeePassDX/issues/1508#issuecomment-1793424670 https://github.com/Kunzisoft/KeePassDX/commit/2d8f8aeef33e6994312cbc81844ba7b9670ce8fb

J-Jamet avatar Nov 04 '23 12:11 J-Jamet

Fixed in 4.0.3

J-Jamet avatar Nov 06 '23 11:11 J-Jamet

I still have this problem on 4.0.5 with Android 13 and Chrome 120.0.6099.231 (Official Build) (32-bit). Example site is GitHub login but it happens with every website login I try. Another specific example is https://frame.work/login.

Also happens on a Galaxy A tablet with Android 10.

brianjmurrell avatar Jan 26 '24 14:01 brianjmurrell

I confirm it too. Few months ago I started using AuthPass (also available in F-Droid) just for auto fill while using KeePassDX for managing everything else on my keepass DB as a workaround, as it's a much better application.

It's been working flawlessly.

the-three-moirai avatar Jan 26 '24 15:01 the-three-moirai

The algorithm is permissive, but it seems that the autofill service takes a long time on some devices and prevents the username from being recognized. But if you insist, it works. This will be resolved when the algorithm engine works differently for each site, but it's a huge job: https://github.com/Kunzisoft/KeePassDX/issues/1287

J-Jamet avatar Feb 03 '24 21:02 J-Jamet

Thanks @J-Jamet for your time in trying to fix this, it doesn't seem trivial at all! However, I'd propose a kind of workaround: every time this happens (as said, on some sites, not always, insisting usually doesn't help in my case), I have to open the database, look for the entry, and copy the username, this is rather annoying. Would it be possible to have the clipboard notification appear every time the autofill is triggered? At least it would make easy to copy the username with just one tap.

glemco avatar Feb 04 '24 15:02 glemco

+1 here.

Screenshot_20240218_101802_Settings.jpg

Mozilla Firefox:

122.1.0 (Build #2016001831), 0d66540568+ GV: 122.0.1-20240205133611 AS: 122.0.1

URL:

https://www.kununu.com/de/login

schnillerman avatar Feb 18 '24 09:02 schnillerman

The algorithm is permissive, but it seems that the autofill service takes a long time on some devices and prevents the username from being recognized. But if you insist, it works. This will be resolved when the algorithm engine works differently for each site, but it's a huge job: #1287

Would it be worth checking how AuthPass manages autofill? I'm using it exclusively for that (KeePassDX for everything else) and it works very well.

I've tried searching their repo, but I don't know enough of Android and Dart development to understand it. It looks like it was introduced in commit 8e8548a

georgh- avatar Feb 21 '24 15:02 georgh-

Few days ago I've switched back to keepass2android and there is no problem with autofill on Android 14 and Firefox. I will be happy if keepassdx can handle thisz so I can switch back.

inzaghi89 avatar Feb 21 '24 15:02 inzaghi89

Still having this issue on 2nd March 2024

  • Android 14
  • OneUI 6
  • Samsung Galaxy A13
  • Samsung Default Keyboard
  • Chrome 122.0.6261.90

Ironfist69 avatar Mar 01 '24 18:03 Ironfist69

still experiencing the issue: v 4.0.5 latest chrome fully patched samsung s21 morele.net password form Google keyboard

mrkobel avatar Mar 11 '24 20:03 mrkobel

I'm also affected by this issue but wanted to stress (maybe once more) that autofill in general works fine, but it does not fill the username but only the password.

I noticed the issue in the past that the autofill dropdown often did not show up when clicking on the username textbox but clicking on the password textbox usually brought it up. In the past, selecting the right entry there filled both password and username, now I've noticed on many pages where this used to work in the past that only the password is filled.

This is exactly the same behavior as described and show in the video above.

tobiaslangner avatar Apr 05 '24 15:04 tobiaslangner

I solved this by switching to Keepass2Android. Auto-type is fully working there, including the username fields.

EetuRasilainen avatar Apr 05 '24 17:04 EetuRasilainen

I ended up commenting on an issue that was a duplicate of this one that got closed recently. So here is what I said in the other comments section.

I am having this same problem and it has been going on for quite a long time. I actually came here to create a new issue for this exact thing, but ran across this one first.

Edit: Android 13 KeepassDX 4.0.5 Fennec 124.2.0 based on firefox 124.2.0

shortwavesurfer2009 avatar Apr 14 '24 17:04 shortwavesurfer2009

@shortwavesurfer2009 I can reproduce the bug with Firefox 124.2.0 but not with DuckDuckGo 5.163.0, I don't know why Firefox and Fennec behave this way.

J-Jamet avatar Apr 14 '24 18:04 J-Jamet

I've just debugged, I don't know where it's coming from but by removing an optimization parsing element, I can get it to work on Firefox.

J-Jamet avatar Apr 14 '24 18:04 J-Jamet

I am seeing the same issue with Brave. Will report with 4.10 once it's released.

auanasgheps avatar Apr 15 '24 08:04 auanasgheps

J-Jamet added a commit that referenced this issue 17 hours ago fix: Fix username recognition with firefox #1665 27ea357

Awesome news!

How long does it take for something like this to reach the great unwashed (i.e. show up the Google Play Store)?

brianjmurrell avatar Apr 15 '24 11:04 brianjmurrell

@brianjmurrell google play? 🤮

F-droid is the place to be

shortwavesurfer2009 avatar Apr 15 '24 12:04 shortwavesurfer2009