Bug 494037

Summary: java.lang.SecurityException: Settings key: <enabled_input_methods> is only readable to apps with targetSdkVersion lower than or equal to: 33
Product: [Applications] kdeconnect Reporter: Mike Gerber <mike>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED DUPLICATE    
Severity: normal CC: andrew.g.r.holmes
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mike Gerber 2024-10-03 14:50:33 UTC
SUMMARY


STEPS TO REPRODUCE
1. Enable a specific plugin, not sure which one it was and can't check easily because the app crashes.
2. Restart app (not sure, didn't notice the problem right away.)

OBSERVED RESULT

10-03 16:32:59.808 28095 28115 E AndroidRuntime: FATAL EXCEPTION: pool-4-thread-3
10-03 16:32:59.808 28095 28115 E AndroidRuntime: Process: org.kde.kdeconnect_tp, PID: 28095
10-03 16:32:59.808 28095 28115 E AndroidRuntime: java.lang.SecurityException: Settings key: <enabled_input_methods> is only readable to apps with targetSdkVersion lower than or equal to: 33
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at android.provider.Settings$NameValueCache.getStringForUser(Settings.java:3514)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at android.provider.Settings$Secure.getStringForUser(Settings.java:6902)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at android.provider.Settings$Secure.getString(Settings.java:6868)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at org.kde.kdeconnect.Plugins.RemoteKeyboardPlugin.RemoteKeyboardPlugin.checkRequiredPermissions(RemoteKeyboardPlugin.java:417)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at org.kde.kdeconnect.Device.addPlugin(Device.kt:558)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at org.kde.kdeconnect.Device.reloadPluginsFromSettings(Device.kt:629)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at org.kde.kdeconnect.Device.addLink(Device.kt:337)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at org.kde.kdeconnect.KdeConnect$connectionListener$1.onConnectionReceived(KdeConnect.kt:156)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at org.kde.kdeconnect.Backends.BaseLinkProvider.onConnectionReceived(BaseLinkProvider.java:42)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.addOrUpdateLink(LanLinkProvider.java:286)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.lambda$identityPacketReceived$0(LanLinkProvider.java:246)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.$r8$lambda$ffuZOFU1qk4o1cE14ZuWQYJam9A(LanLinkProvider.java:0)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider$$ExternalSyntheticLambda6.handshakeCompleted(R8$$SyntheticClass:0)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at com.android.org.conscrypt.AbstractConscryptSocket.notifyHandshakeCompletedListeners(AbstractConscryptSocket.java:607)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at com.android.org.conscrypt.ConscryptEngineSocket.doHandshake(ConscryptEngineSocket.java:270)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at com.android.org.conscrypt.ConscryptEngineSocket.startHandshake(ConscryptEngineSocket.java:218)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.identityPacketReceived(LanLinkProvider.java:259)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.tcpPacketReceived(LanLinkProvider.java:119)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.lambda$setupTcpListener$3(LanLinkProvider.java:346)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider.$r8$lambda$fPOfB-9YGQBHf7IKMxU23L4W5VA(LanLinkProvider.java:0)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at org.kde.kdeconnect.Backends.LanBackend.LanLinkProvider$$ExternalSyntheticLambda5.run(R8$$SyntheticClass:0)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
10-03 16:32:59.808 28095 28115 E AndroidRuntime:        at java.lang.Thread.run(Thread.java:1012)

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Android app 1.32.4

ADDITIONAL INFORMATION
Comment 1 Mike Gerber 2024-10-03 14:53:21 UTC
Nevermind, probably a duplicate of 493943 - waiting for the update on the Play Store...
Comment 2 Mike Gerber 2024-10-03 14:53:46 UTC

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