Bug 494109 - KDE Connect on Android crashes when opening application
Summary: KDE Connect on Android crashes when opening application
Status: RESOLVED DUPLICATE of bug 493943
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: unspecified
Platform: Android Android 14.x
: NOR crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-04 13:17 UTC by Florian "sp1rit"
Modified: 2024-10-04 14:33 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian "sp1rit" 2024-10-04 13:17:27 UTC
SUMMARY
KDE Connect crashes when opening the application with the following log:

KDE/LanLinkProvider     org.kde.kdeconnect_tp                I  Broadcast identity packet received from spiritXPS
TrafficStats            org.kde.kdeconnect_tp                D  tagSocket(91) with statsTag=0xffffffff, statsUid=-1
KDE/LanLinkProvider     org.kde.kdeconnect_tp                I  Starting SSL handshake with spiritXPS trusted:true
MdnsDiscovery           org.kde.kdeconnect_tp                I  Registered df336916_9852_4575_a055_91925af14214
MdnsDiscovery           org.kde.kdeconnect_tp                D  Service discovered: name: df336916_9852_4575_a055_91925af14214, type: _kdeconnect._udp., subtypes: , hostAddresses: , hostname: null, port: 0, network: 497, expirationTime: 2024-10-04T13:01:01Z, txtRecord: 
MdnsDiscovery           org.kde.kdeconnect_tp                D  Discovered myself, ignoring.
LanLinkProvider         org.kde.kdeconnect_tp                D  Starting handshake
KDE/LanLinkProvider     org.kde.kdeconnect_tp                I  Handshake as server successful with spiritXPS secured with TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
KDE/LanLinkProvider     org.kde.kdeconnect_tp                D  Creating a new link for device 43bd517b-00d9-4189-be74-3cfa6cf9d74b
updateDeviceInfo        org.kde.kdeconnect_tp                I  Updating supported plugins according to new capabilities
Device                  org.kde.kdeconnect_tp                I  spiritXPS: reloading plugins
KDE/addPlugin           org.kde.kdeconnect_tp                D  Permissions OK PingPlugin
KDE/addPlugin           org.kde.kdeconnect_tp                D  Optional Permissions OK PingPlugin
KDE/addPlugin           org.kde.kdeconnect_tp                D  Permissions OK TelephonyPlugin
KDE/addPlugin           org.kde.kdeconnect_tp                D  Optional Permissions OK TelephonyPlugin
KDE/addPlugin           org.kde.kdeconnect_tp                D  Permissions OK ConnectivityReportPlugin
KDE/addPlugin           org.kde.kdeconnect_tp                D  Optional Permissions OK ConnectivityReportPlugin
KDE/addPlugin           org.kde.kdeconnect_tp                D  Permissions OK SftpPlugin
KDE/addPlugin           org.kde.kdeconnect_tp                D  Optional Permissions OK SftpPlugin
AndroidRuntime          org.kde.kdeconnect_tp                E  FATAL EXCEPTION: pool-4-thread-4
                                                                                                    Process: org.kde.kdeconnect_tp, PID: 23583
                                                                                                    java.lang.SecurityException: Settings key: <enabled_input_methods> is only readable to apps with targetSdkVersion lower than or equal to: 33
                                                                                                    	at android.provider.Settings$NameValueCache.getStringForUser(Settings.java:3514)
                                                                                                    	at android.provider.Settings$Secure.getStringForUser(Settings.java:6912)
                                                                                                    	at android.provider.Settings$Secure.getString(Settings.java:6878)
                                                                                                    	at org.kde.kdeconnect.Plugins.RemoteKeyboardPlugin.RemoteKeyboardPlugin.checkRequiredPermissions(RemoteKeyboardPlugin.java:417)
                                                                                                    	at org.kde.kdeconnect.Device.addPlugin(Device.kt:558)
                                                                                                    	at org.kde.kdeconnect.Device.reloadPluginsFromSettings(Device.kt:629)
                                                                                                    	at org.kde.kdeconnect.Device.addLink(Device.kt:337)
                                                                                                    	at org.kde.kdeconnect.KdeConnect$connectionListener$1.onConnectionReceived(KdeConnect.kt:156)
                                                                                                    	at org.kde.kdeconnect.Backends.BaseLinkProvider.onConnectionReceived(BaseLinkProvider.java:42)
                                                                                                    	at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.addOrUpdateLink(LanLinkProvider.java:286)
                                                                                                    	at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.lambda$identityPacketReceived$0(LanLinkProvider.java:246)
                                                                                                    	at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.$r8$lambda$ffuZOFU1qk4o1cE14ZuWQYJam9A(LanLinkProvider.java:0)
                                                                                                    	at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider$$ExternalSyntheticLambda6.handshakeCompleted(R8$$SyntheticClass:0)
                                                                                                    	at com.android.org.conscrypt.AbstractConscryptSocket.notifyHandshakeCompletedListeners(AbstractConscryptSocket.java:607)
                                                                                                    	at com.android.org.conscrypt.ConscryptEngineSocket.doHandshake(ConscryptEngineSocket.java:270)
                                                                                                    	at com.android.org.conscrypt.ConscryptEngineSocket.startHandshake(ConscryptEngineSocket.java:218)
                                                                                                    	at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.identityPacketReceived(LanLinkProvider.java:259)
                                                                                                    	at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.udpPacketReceived(LanLinkProvider.java:176)
                                                                                                    	at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.lambda$setupUdpListener$1(LanLinkProvider.java:318)
                                                                                                    	at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.$r8$lambda$Y2sID72ismdagH4sY4BezJT37bs(LanLinkProvider.java:0)
                                                                                                    	at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider$$ExternalSyntheticLambda3.run(R8$$SyntheticClass:0)
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
                                                                                                    	at java.lang.Thread.run(Thread.java:1012)
ConnectivityReport      org.kde.kdeconnect_tp                I  Added subscription ID 1
Compatibil...geReporter org.kde.kdeconnect_tp                D  Compat change id reported: 147600208; UID 10214; state: ENABLED
ConnectivityReport      org.kde.kdeconnect_tp                I  Added subscription ID 3

The relevant issue obviously being:  java.lang.SecurityException: Settings key: <enabled_input_methods> is only readable to apps with targetSdkVersion lower than or equal to: 33
called from RemoteKeyboardPlugin.checkRequiredPermissions(RemoteKeyboardPlugin.java:417).

SOFTWARE/OS VERSIONS
Android 14 w. September 5 security patch
KDE Connect ver. 1.32.3 from F-Droid
Comment 1 Filip 2024-10-04 14:33:42 UTC

*** This bug has been marked as a duplicate of bug 493943 ***