Trying to share a screenshot (or a file) when the app is locked crashes the app after unlocking it
Guidelines
- [x] I have searched open and closed issues for duplicates
- [x] I am submitting a bug report for existing functionality that does not work as intended
- [x] This isn't a feature request or a discussion topic
Bug description
Steps to reproduce: Step 1: Enable screen lock on and have your application locked Step 2: Try to take a screenshot and share it to a signal contact, the app will ask you to unlock the app (via password or a fingerprint) Step 3: Unlock the app to send the screenshot. You will notice that the application crashes after unlocking
Screenshots
No response
Device
Nothing 4a pro
Android version
16
Signal version
8.24.2
Link to debug log
https://debuglogs.org/android/8.24.2/b8075a8978cd55c4aa56f094d4d77ca5262f31a12a3c815bee9feac8dc8f3045
Bumping this issue again since @GadhiyaRaj has raised a pull request for this issue. This has been kinda long recurring issue for me (I have even raised an email for this issue back then to the signal support). It would be cool if it gets fixed. Thanks for understanding!
Thanks for raising a pull request @GadhiyaRaj!
Same issue here, and it also happens when sharing a link (not only images/files).
Steps
- Screen lock enabled, Signal locked
- In Brave, share a page link → choose Signal
- Signal shows the unlock prompt → unlock with fingerprint
- Signal closes instead of showing the contact picker
- Sharing again right away works (Signal is now unlocked)
Relevant log lines
PassphrasePromptActivit: onAuthenticationSucceeded
PassphraseActivity: Access permission not passed from PassphraseActivity, retry sharing.
BiometricPromptCompat: Unable to cancel authentication. BiometricFragment not found.
So startActivity(nextIntent) throws a SecurityException in PassphraseActivity, and the share is dropped. My guess is Brave attaches a URI (e.g. a preview image) to link shares, so the same permission problem applies to link shares too. The fix in #15003 (keeping ShareActivity alive while locked) looks like it would cover this case.
Device: Google Pixel 10 Pro XL (mustang) Android version: 17 (CP3A.261005.005), GrapheneOS-style build with GmsCompat Signal version: 177501