Steps To Reproduce
- Enable Clear Clipboard
- Copy a password from bitwarden
- Optionally paste it somewhere else and wait for the time that was set for Clear Clipboard
Expected Result
The clipboard should no longer have the password.
What used to happen on Samsung was that the password wasn't deleted but a new empty entry was added into the clipboard. This stopped the password from popping up whenever any text field was selected and could only be viewed by going into the clipboard.
Actual Result
Nothing changes in the clipboard. If you now go to any text field such as in the browser, the keyboard shows the last thing that was in the clipboard which will now be a password or TOTP token etc. This creates a risk of it accidentally showing up if you forget to clear your clipboard.
Screenshots or Videos
Can't provide screenshot as it contains sensitive information.
Additional Context
I think this problem may have been caused by the change #2220.
If i understand correctly, Samsung uses its own clipboard which the clipboardManager.ClearPrimaryClip() function does not work on.
You may be able to replace line 17 in ClearClipboardAlarmReceiver from
if ((int)Build.VERSION.SdkInt < 33)
to
if (Build.MANUFACTURER == "samsung" || (int)Build.VERSION.SdkInt < 33)
but i am not sure.
Operating System
Android
Operating System Version
13
Device
Samsung Galaxy Z Fold4
Build Version
2023.1.0 (5786)
Beta
Steps To Reproduce
Expected Result
The clipboard should no longer have the password.
What used to happen on Samsung was that the password wasn't deleted but a new empty entry was added into the clipboard. This stopped the password from popping up whenever any text field was selected and could only be viewed by going into the clipboard.
Actual Result
Nothing changes in the clipboard. If you now go to any text field such as in the browser, the keyboard shows the last thing that was in the clipboard which will now be a password or TOTP token etc. This creates a risk of it accidentally showing up if you forget to clear your clipboard.
Screenshots or Videos
Can't provide screenshot as it contains sensitive information.
Additional Context
I think this problem may have been caused by the change #2220.
If i understand correctly, Samsung uses its own clipboard which the
clipboardManager.ClearPrimaryClip()function does not work on.You may be able to replace line 17 in ClearClipboardAlarmReceiver from
if ((int)Build.VERSION.SdkInt < 33)to
if (Build.MANUFACTURER == "samsung" || (int)Build.VERSION.SdkInt < 33)but i am not sure.
Operating System
Android
Operating System Version
13
Device
Samsung Galaxy Z Fold4
Build Version
2023.1.0 (5786)
Beta