termux-app icon indicating copy to clipboard operation
termux-app copied to clipboard

[Bug]: Password Autofill Provider shows on termux

Open mio-19 opened this issue 10 months ago • 14 comments

Problem description

Password Autofill Service shows on termux terminal, which can disturb with the workflow.

Screenshot_20240407_020702_Termux

Steps to reproduce the behavior.

  1. Install Bitwarden and set it as the auto-fill provider.
  2. Open Termux

What is the expected behavior?

No Autofill

System information

  • Termux application version: 0.118.0
  • Android OS version: 14
  • Device model: Samsung S23 Ultra

mio-19 avatar Apr 06 '24 18:04 mio-19

Also experiencing this with 1Password where it is a little more obtrusive. I don't think this is 1Password's fault though, I've not had it show up on non-password text fields in any other app. It's likely that there's an existing reason why Termux does it this way, so I'd appreciate it if this were to be a configurable setting.

fwrs avatar Apr 08 '24 22:04 fwrs

Yeah, I also got this bug after a Gboard update. I don't use any password manager either. I just disabled the suggestion strip entirely after that. Here is how it looks like on my Google Pixel 6a:

Screenshot_20240413-183536

yubrajbhoi avatar Apr 13 '24 13:04 yubrajbhoi

from bitwarden or Android settings.

Autofill is managed by Android so apps can't decide if they must show or no, in Android there is no settings for disable autofill for apps. So termux should change components which accept input with android:autofillHints and disable it.

juvannx avatar Apr 15 '24 14:04 juvannx

I just disabled the suggestion strip entirely after that.

This is a workaround and not a solution. Termux should update with new version of android.

juvannx avatar Apr 15 '24 14:04 juvannx

I cannot access my clipboard because of this bug. Hate switching to another keyboard when using termux and change back when not using it.

dausruddin avatar May 29 '24 02:05 dausruddin

This happens after updating to Android 14

To offer smoother integration with password managers, the Credential Manager API was replaced the Autofill framework. This may not work as well with older apps that may not provide the context in the way that it expects.

This is likely happening because the text field is direct-input. Since Termux has the autofill option in more options, and termux only uses one text input and can't definitively discern password input, this could cause the popup.

Workarounds:

  • Depending on your keyboard, you can close the autofill popup with an X button on the keyboard.
  • Additionally if your autofill has floating popup, you can tap/select on the terminal console to hide the popup.
  • All my keyboards that won't hide the inline suggestion bubble, still have full functionality.
  • You can select some options like clipboard from the text context menu (long press), and other options from the termux "more..." menu (from text menu More button, or right-click).

tutacat avatar Jun 05 '24 10:06 tutacat

Since this was reported using bitwarden, I'd like to offer a solution to those with the same problem also using the bitwarden application. In the following Settings—>Autofill menu, at the very bottom there is an option to Block AutoFill. Selecting this will open a menu with a button labeled New blocked URI, selecting that will open a dialog where you can enter the following to prevent bitwarden from suggesting any auto-fill whenever using Termux. Screenshots from my device attached for visual reference. Hope this helps!

androidapp://com.termux

1 2

psyburr avatar Jun 10 '24 19:06 psyburr

Since this was reported using bitwarden, I'd like to offer a solution to those with the same problem also using the bitwarden application. In the following Settings—>Autofill menu, at the very bottom there is an option to Block AutoFill. Selecting this will open a menu with a button labeled New blocked URI, selecting that will open a dialog where you can enter the following to prevent bitwarden from suggesting any auto-fill whenever using Termux. Screenshots from my device attached for visual reference. Hope this helps!

androidapp://com.termux

Now you can't autofill when you wanted to.

indrastorms avatar Jun 24 '24 07:06 indrastorms

We never wanted to. Please see the initial report and expected behavior.

psyburr avatar Jul 12 '24 06:07 psyburr

We never wanted to. Please see the initial report and expected behavior.

So what do you think about the option "autofill password" existed for?

indrastorms avatar Jul 12 '24 06:07 indrastorms

@psyburr That is a pretty good workaround. Do you know if that is possible on stock Android (with no password manager)?

yubrajbhoi avatar Jul 12 '24 07:07 yubrajbhoi

All right, I found a workaround. Go to Settings and "Passwords, passkeys and autofill". Select the preferred service, for me on Pixel 6a, it is Google. That will take you to "Use Autofill with Google". Disable that and it should be fixed.

If you are actually using Google password manager you will have to find a different solution.

yubrajbhoi avatar Aug 18 '24 18:08 yubrajbhoi

@yubrajbhoi I've set it to Bitwarden since day one I bought my Pixel 6a. I don't know if switching it back to Google then again to Bitwarden will do anything... I'm using the "disable autofill for termux" workaround now.

escape0707 avatar Aug 21 '24 07:08 escape0707

@escape0707 Yeah, it won't do anything. You have to disable the app you save set as preferred service. In my case I use pass in Termux as my password manager, so I don't need Google.

yubrajbhoi avatar Aug 21 '24 09:08 yubrajbhoi

Screenshot_20240826-093310.jpg

Please, anyone with any solution for Gboard and Google password manager on Android 14? It's annoying to see this every time I open termux 😤

Dhyfer1 avatar Aug 26 '24 14:08 Dhyfer1

Check #4125. Users using GitHub action builds should test and report so that it can be merged.

agnostic-apollo avatar Aug 26 '24 23:08 agnostic-apollo

Check #4125. Users using GitHub action builds should test and report so that it can be merged.

Thanks. In the last build action the annoying password button no longer appears above the keyboard. I hope the fix will come to the latest stable and beta version soon.

Dhyfer1 avatar Aug 27 '24 14:08 Dhyfer1

Welcome. Should be available in next beta at least.

agnostic-apollo avatar Aug 27 '24 15:08 agnostic-apollo

Welcome. Should be available in next beta at least.

In that case the base branch of the pr should be 119.beta. right?

indrastorms avatar Aug 27 '24 15:08 indrastorms

Master branch is where everything gets pushed for final release, beta branches pick and patch commits from master branch before release.

agnostic-apollo avatar Aug 27 '24 15:08 agnostic-apollo

Master branch is where everything gets pushed for final release, beta branches pick and patch commits from master branch before release.

Why its opposite? Commits should be merge on beta branch first to test all are working with other commits which isn't pushed to master.

indrastorms avatar Aug 27 '24 15:08 indrastorms

All the development is done on master branch, anything I push there is thoroughly tested, beta in the termux app's context means that features are not final and not ready for release and may change, not that they are unstable. Beta branches were never used before, it was only used for last release with specific commits picked from master branch and certain features disabled with patch commits that were not ready for release.

agnostic-apollo avatar Aug 27 '24 15:08 agnostic-apollo

All the development is done on master branch, anything I push there is thoroughly tested, beta in the termux app's context means that features are not final and not ready for release and may change, not that they are unstable. Beta branches were never used before, it was only used for last release with specific commits picked from master branch and certain features disabled with patch commits that were not ready for release.

Oh.. then it's more like a feat branch. But I'm using 119 so can't install 118 on top of it. 😞

indrastorms avatar Aug 27 '24 15:08 indrastorms

You can install github debuggable apks with pm install -r -d to downgrade.

agnostic-apollo avatar Aug 27 '24 16:08 agnostic-apollo

Thanks for the info.

indrastorms avatar Aug 27 '24 16:08 indrastorms