Bug 478551

Summary: No connection resumes while phone screen is off
Product: [Applications] kdeconnect Reporter: Norbert <norbert.rybicki>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: normal CC: andrew.g.r.holmes, smowtenshi
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Android   
OS: Android 13.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Norbert 2023-12-15 12:06:36 UTC
No connection resumes when phone display is off. The phone automatically resumes connection when the display is turned on, even before unlocking. 

STEPS TO REPRODUCE:
1. install KDE Connect on a computer running Kubuntu
2. install KDE Connect on an Android phone
3. pair the computer with the phone
4. log out of the Kubuntu system
5. lock the phone
6. log in to Kubuntu

OBSERVED RESULT:
KDE Connect on the computer is not connected to the phone.

EXPECTED RESULT:
Automatic connection at computer login.

SOFTWARE/OS VERSIONS
   Computer
      Kubuntu 23.10
      KDE Plasma Version: 5.27.8
      KDE Frameworks Version: 5.110.0
      Qt Version: 5.15.10
      KDE Connect Version: 23.08.1
   Phone
      Poco F3
      Android Version: 13
      KDE Connect Version: 1.29.0

ADDITIONAL INFORMATION
1. with the display off, the phone does not send or receive UDP packets on port 1716 (kdeconnect-cli --refresh command on the computer does not give the expected result) - checked with the tcpdump command
2. with the display off, TCP port 1716 on the phone is open - checked with the netcat command
3. turning on the phone's display - just displaying the lock screen, restores the connection, the phone sends UDP packets on port 1716 - - checked with the tcpdump command
4. the application on the phone has all possible permissions granted, is excluded from power saving, location always available (not only when the app is open).