Bug 494275

Summary: Immediate crash due to unavailable permissions
Product: [Applications] kdeconnect Reporter: Anselm Schüler <mail>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andrew.g.r.holmes, filip.kendes1
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Android 14.x   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Anselm Schüler 2024-10-08 06:11:18 UTC
NOTE: App version was not available in bug report form

SUMMARY
KDE Connect Android app crashes immediately

STEPS TO REPRODUCE
1. Have other KDE connect client on network
2. Open app

OBSERVED RESULT
App crashes

EXPECTED RESULT
App doesn’t crash

SOFTWARE/OS VERSIONS
Linux client: Valent 1.0.0.alpha.45 on GNOME 46, NixOS 24.11.20240926.1925c60 (Vicuna), Linux 6.11.0
Android client: KDE Connect 1.32.4 on GrapheneOS 2024092900 (Android 14)

ADDITIONAL INFORMATION
Crash log
```
type: crash
osVersion: google/caiman/caiman:14/AD1A.240905.004/2024092900:user/release-keys
package: org.kde.kdeconnect_tp:13204
process: org.kde.kdeconnect_tp
processUptime: 14338395 + 380 ms
installer: com.android.vending

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:3562)
	at android.provider.Settings$Secure.getStringForUser(Settings.java:6974)
	at android.provider.Settings$Secure.getString(Settings.java:6940)
	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)
```
Comment 1 Filip 2024-10-08 14:05:17 UTC

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