Bug 494070

Summary: Crashing on Android 14
Product: [Applications] kdeconnect Reporter: Tobias <mad.scientist>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andrew.g.r.holmes, frapox, me
Priority: NOR    
Version: 24.08.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Tobias 2024-10-03 22:15:54 UTC
SUMMARY
The KDE Connect app is yet not compatible with Android 14.

STEPS TO REPRODUCE
1.  Install the App on Android 14 devices
2.  Connect to KDE on your computer
3.  Open KDE Connect

OBSERVED RESULT
Direct Crash.

Logcat states a SecurityException.

FATAL EXCEPTION: pool-4-thread-3
Process: org.kde.kdeconnect_tp, PID: 7639
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:6928)
	at android.provider.Settings$Secure.getString(Settings.java:6894)
	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.tcpPacketReceived(LanLinkProvider.java:119)
	at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.lambda$setupTcpListener$3(LanLinkProvider.java:346)
	at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.$r8$lambda$fPOfB-9YGQBHf7IKMxU23L4W5VA(LanLinkProvider.java:0)
	at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider$$ExternalSyntheticLambda5.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)


EXPECTED RESULT
Not crashing as on Android 13 and below.
Comment 1 Iyán Méndez Veiga 2024-10-04 05:36:55 UTC

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