mollyim / mollyim-android

Enhanced and security-focused fork of Signal.
GNU Affero General Public License v3.0
1.37k stars 77 forks source link

Call stops when database auto-locks after powering off the screen #323

Open schklom opened 1 month ago

schklom commented 1 month ago

Is there an existing issue for this?

Bug description

Seems similar to https://github.com/mollyim/mollyim-android/issues/156#issuecomment-1899216861

Basically, if the database encryption timeout is X time and the screen is manually turned off for longer than X during a phone call, then the call is interrupted.

Steps to reproduce

  1. Set database encryption auto-lock timeout to X time (e.g. 10 seconds)
  2. Start a phone call with Molly
  3. Press the power button to turn off the screen
  4. Make the call last longer than 10 seconds
  5. The phone call abruptly stops
  6. Sometimes need to force-close Molly from Android settings as it does not start otherwise

Molly version

v7.6.2-2.up1-FOSS

Android version

14

Device

Google Pixel 6A

Link to debug log

https://debuglogs.org/android/7.6.2/350cc6c1a67ea8ce9ae4e3fb08ea634f3cc83fe7af7652d4ab9e064f8e83e515

serrq commented 1 month ago

Possible solution: "call" event extends the database autolock time until the call end. Of course only if database autolock is timeout during a call or when there is an incoming call.