Bug 494060 - Not able to make LAN connections: app crashes
Summary: Not able to make LAN connections: app crashes
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 normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-03 19:10 UTC by elijahblake0
Modified: 2024-10-03 19:23 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 elijahblake0 2024-10-03 19:10:06 UTC
I can't make back traces on Android, but I have included the crash logs.

SUMMARY
The app crashes on startup wen attempting to make LAN connections.

STEPS TO REPRODUCE
1. Connect to another LAN device over wifi
2. Close KDE Connect
3. Open KDE Connect

OBSERVED RESULT

App crashes on launch.

Logs:
```
type: crash
osVersion: google/tangorpro/tangorpro:14/AP2A.240905.003/2024092900:user/release-keys
package: org.kde.kdeconnect_tp:13203
process: org.kde.kdeconnect_tp
processUptime: 457 + 402 ms
installer: com.android.packageinstaller

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.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

App launches and connects to other LAN devices

SOFTWARE/OS VERSIONS
Android 14 on Pixel Tablet
KDE Connect was installed via F-Droid
version 1.32.3
org.kde.kdeconnect_tp
versionCode 13203
targetSdk 35
minSdk 21
Installed: Oct 3, 2024; 12:13 PM


ADDITIONAL INFORMATION
The crash happens with connected to another android or Linux device.
NOTE: The crash does NOT happen on my Pixel 6 Android 14 device which has KDE Connect app version 1.32.2 versionCode 13202.
Comment 1 Iyán Méndez Veiga 2024-10-03 19:23:45 UTC

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