| Summary: | Cannot receive file from PC to Android phone | ||
|---|---|---|---|
| Product: | [Applications] kdeconnect | Reporter: | zkrx <zk_rex> |
| Component: | android-application | Assignee: | Albert Vaca Cintora <albertvaka> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | andrew.g.r.holmes |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Android | ||
| OS: | Android 14.x | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
So it seems that I cannot edit the original description.
"Share and receive settings":
"Customize destination directory" enabled
"Destination directory": /tree/primary:kdeconnect (permission allowed)
So for some reason (app is open?) I now receive notifications, but clicking on it does nothing and the "kdeconnect" directory remains empty.
I think that the log excerpt above is wrong and the tmpfs line might be a red herring (many of these are being displayed even without using kdeconnect). Actually, maybe I have something interesting:
```
02-06 12:23:42.564 13319 13404 I SharePlugin: hasUrl:
02-06 12:23:42.567 2055 4849 I ActivityTaskManager: START u0 {act=android.intent.action.VIEW dat= flg=0x10000000} with LAUNCH_MULTIPLE from uid 10399 (startActivityAsUser) result code=-91
02-06 12:23:42.569 13319 13404 E SharePlugin: Exception
02-06 12:23:42.569 13319 13404 W System.err: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat= flg=0x10000000 }
02-06 12:23:42.570 13319 13404 W System.err: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2244)
02-06 12:23:42.570 13319 13404 W System.err: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1878)
02-06 12:23:42.570 13319 13404 W System.err: at android.app.ContextImpl.startActivity(ContextImpl.java:1138)
02-06 12:23:42.570 13319 13404 W System.err: at android.app.ContextImpl.startActivity(ContextImpl.java:1109)
02-06 12:23:42.570 13319 13404 W System.err: at android.content.ContextWrapper.startActivity(ContextWrapper.java:436)
02-06 12:23:42.570 13319 13404 W System.err: at org.kde.kdeconnect.Helpers.IntentHelper.startActivityFromBackgroundOrCreateNotification(IntentHelper.java:45)
02-06 12:23:42.570 13319 13404 W System.err: at org.kde.kdeconnect.Plugins.SharePlugin.SharePlugin.receiveUrl(SharePlugin.java:227)
02-06 12:23:42.570 13319 13404 W System.err: at org.kde.kdeconnect.Plugins.SharePlugin.SharePlugin.onPacketReceived(SharePlugin.java:206)
02-06 12:23:42.570 13319 13404 W System.err: at org.kde.kdeconnect.Device.notifyPluginPacketReceived(Device.kt:432)
02-06 12:23:42.570 13319 13404 W System.err: at org.kde.kdeconnect.Device.onPacketReceived(Device.kt:421)
02-06 12:23:42.570 13319 13404 W System.err: at org.kde.kdeconnect.Backends.BaseLink.packetReceived(BaseLink.java:60)
02-06 12:23:42.570 13319 13404 W System.err: at org.kde.kdeconnect.Backends.LanBackend.LanLink.receivedNetworkPacket(LanLink.java:256)
02-06 12:23:42.570 13319 13404 W System.err: at org.kde.kdeconnect.Backends.LanBackend.LanLink.lambda$reset$0(LanLink.java:90)
02-06 12:23:42.570 13319 13404 W System.err: at org.kde.kdeconnect.Backends.LanBackend.LanLink.$r8$lambda$1roQrklD197DaNpVzAP29DenyWc(LanLink.java:0)
02-06 12:23:42.570 13319 13404 W System.err: at org.kde.kdeconnect.Backends.LanBackend.LanLink$$ExternalSyntheticLambda1.run(R8$$SyntheticClass:0)
02-06 12:23:42.570 13319 13404 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
02-06 12:23:42.570 13319 13404 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
02-06 12:23:42.570 13319 13404 W System.err: at java.lang.Thread.run(Thread.java:1012)
02-06 12:23:43.204 1731 1731 W HidlServiceManagement: Waited for hwservicemanager.ready for a second,
```
The above stack trace appears consistently upon receiving a file and doesn't appear in the logs otherwise. Here is another instance of it with a bit more context:
```
02-06 12:28:05.719 1731 1731 W binder:1731_2: type=1400 audit(0.0:859436): avc: denied { read } for name="u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=230 scontext=u:r:lbs_dbg_ext:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=0
02-06 12:28:05.724 1731 1731 W libc : Access denied finding property "hwservicemanager.ready"
02-06 12:28:05.719 1731 1731 W binder:1731_2: type=1400 audit(0.0:859437): avc: denied { read } for name="u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=230 scontext=u:r:lbs_dbg_ext:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=0
02-06 12:28:06.125 1408 1446 I libPerfCtl: xgfGetFPS pid:2803 fps:-1
02-06 12:28:06.726 1731 1731 W HidlServiceManagement: Waited for hwservicemanager.ready for a second, waiting another...
02-06 12:28:06.727 1731 1731 W libc : Access denied finding property "hwservicemanager.ready"
02-06 12:28:06.727 1731 1731 W libc : Access denied finding property "hwservicemanager.ready"
02-06 12:28:06.723 1731 1731 W binder:1731_2: type=1400 audit(0.0:859438): avc: denied { read } for name="u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=230 scontext=u:r:lbs_dbg_ext:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=0
02-06 12:28:06.723 1731 1731 W binder:1731_2: type=1400 audit(0.0:859439): avc: denied { read } for name="u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=230 scontext=u:r:lbs_dbg_ext:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=0
02-06 12:28:06.939 1775 1985 D ULogGuard: Monitoring: 14 threads, 0 requests, 0 time-bombs; 3 guards. ResetFlags = 0x7
02-06 12:28:07.126 1408 1446 I libPerfCtl: xgfGetFPS pid:2803 fps:-1
02-06 12:28:07.375 2396 2396 D android.hardware.wifi@1.0-service-lazy: WifiRequest::create vendor command to iface 37, vendor_id=0x1a11, subcmd=0x0002, res=0
02-06 12:28:07.375 2396 2396 D WifiHAL : In GetFeatureSetCommand::handleResponse for 5
02-06 12:28:07.376 2396 2396 D WifiHAL : vendor_id = 0x0, subcmd = 0x0
02-06 12:28:07.376 2396 2396 I WifiHAL : feature_set=0x8488141a
02-06 12:28:07.381 2055 2703 I HalDevMgr: bestIfaceCreationProposal is null, requestIface=STA, existingIface=[name=wlan0 type=STA]
02-06 12:28:07.385 2803 2803 D StatusBarIconController: ignoring old pipeline callback because the new wifi icon is enabled
02-06 12:28:07.727 1731 1731 W HidlServiceManagement: Waited for hwservicemanager.ready for a second, waiting another...
02-06 12:28:07.728 1731 1731 W libc : Access denied finding property "hwservicemanager.ready"
02-06 12:28:07.729 1731 1731 W libc : Access denied finding property "hwservicemanager.ready"
02-06 12:28:07.723 1731 1731 W binder:1731_2: type=1400 audit(0.0:859440): avc: denied { read } for name="u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=230 scontext=u:r:lbs_dbg_ext:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=0
02-06 12:28:07.723 1731 1731 W binder:1731_2: type=1400 audit(0.0:859441): avc: denied { read } for name="u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=230 scontext=u:r:lbs_dbg_ext:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=0
02-06 12:28:08.128 1408 1446 I libPerfCtl: xgfGetFPS pid:2803 fps:-1
02-06 12:28:08.730 1731 1731 W HidlServiceManagement: Waited for hwservicemanager.ready for a second, waiting another...
02-06 12:28:08.727 1731 1731 W binder:1731_2: type=1400 audit(0.0:859442): avc: denied { read } for name="u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=230 scontext=u:r:lbs_dbg_ext:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=0
02-06 12:28:08.731 1731 1731 W libc : Access denied finding property "hwservicemanager.ready"
02-06 12:28:08.727 1731 1731 W binder:1731_2: type=1400 audit(0.0:859443): avc: denied { read } for name="u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=230 scontext=u:r:lbs_dbg_ext:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=0
02-06 12:28:09.130 1408 1446 I libPerfCtl: xgfGetFPS pid:2803 fps:-1
02-06 12:28:09.623 13319 13404 I SharePlugin: hasUrl:
02-06 12:28:09.626 2055 2070 I ActivityTaskManager: START u0 {act=android.intent.action.VIEW dat= flg=0x10000000} with LAUNCH_MULTIPLE from uid 10399 (startActivityAsUser) result code=-91
02-06 12:28:09.627 13319 13404 E SharePlugin: Exception
02-06 12:28:09.628 13319 13404 W System.err: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat= flg=0x10000000 }
02-06 12:28:09.628 13319 13404 W System.err: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2244)
02-06 12:28:09.628 13319 13404 W System.err: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1878)
02-06 12:28:09.628 13319 13404 W System.err: at android.app.ContextImpl.startActivity(ContextImpl.java:1138)
02-06 12:28:09.628 13319 13404 W System.err: at android.app.ContextImpl.startActivity(ContextImpl.java:1109)
02-06 12:28:09.628 13319 13404 W System.err: at android.content.ContextWrapper.startActivity(ContextWrapper.java:436)
02-06 12:28:09.628 13319 13404 W System.err: at org.kde.kdeconnect.Helpers.IntentHelper.startActivityFromBackgroundOrCreateNotification(IntentHelper.java:45)
02-06 12:28:09.628 13319 13404 W System.err: at org.kde.kdeconnect.Plugins.SharePlugin.SharePlugin.receiveUrl(SharePlugin.java:227)
02-06 12:28:09.628 13319 13404 W System.err: at org.kde.kdeconnect.Plugins.SharePlugin.SharePlugin.onPacketReceived(SharePlugin.java:206)
02-06 12:28:09.628 13319 13404 W System.err: at org.kde.kdeconnect.Device.notifyPluginPacketReceived(Device.kt:432)
02-06 12:28:09.628 13319 13404 W System.err: at org.kde.kdeconnect.Device.onPacketReceived(Device.kt:421)
02-06 12:28:09.628 13319 13404 W System.err: at org.kde.kdeconnect.Backends.BaseLink.packetReceived(BaseLink.java:60)
02-06 12:28:09.628 13319 13404 W System.err: at org.kde.kdeconnect.Backends.LanBackend.LanLink.receivedNetworkPacket(LanLink.java:256)
02-06 12:28:09.628 13319 13404 W System.err: at org.kde.kdeconnect.Backends.LanBackend.LanLink.lambda$reset$0(LanLink.java:90)
02-06 12:28:09.628 13319 13404 W System.err: at org.kde.kdeconnect.Backends.LanBackend.LanLink.$r8$lambda$1roQrklD197DaNpVzAP29DenyWc(LanLink.java:0)
02-06 12:28:09.628 13319 13404 W System.err: at org.kde.kdeconnect.Backends.LanBackend.LanLink$$ExternalSyntheticLambda1.run(R8$$SyntheticClass:0)
02-06 12:28:09.628 13319 13404 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
02-06 12:28:09.629 13319 13404 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
02-06 12:28:09.629 13319 13404 W System.err: at java.lang.Thread.run(Thread.java:1012)
02-06 12:28:09.633 1731 1731 W libc : Access denied finding property "hwservicemanager.ready"
02-06 12:28:09.627 1731 1731 W binder:1731_2: type=1400 audit(0.0:859444): avc: denied { read } for name="u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=230 scontext=u:r:lbs_dbg_ext:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=0
02-06 12:28:09.644 2803 2803 D CBR_SystemUI: CarrierLabel - : updateLabel cellMsg: cellEnabled: false
02-06 12:28:09.644 2803 2803 D CBR_SystemUI: CarrierLabel - : updateLabel mCellBroadcastMessage Visibility: 8
02-06 12:28:09.645 2803 2803 D CBR_SystemUI: CarrierLabel - : updateLabel cellMsg: cellEnabled: false
02-06 12:28:09.645 2803 2803 D CBR_SystemUI: CarrierLabel - : updateLabel mCellBroadcastMessage Visibility: 8
02-06 12:28:09.646 2803 2803 D StatusBarIconController: ignoring old pipeline callbacks, because the new mobile icons are enabled
02-06 12:28:09.732 1731 1731 W HidlServiceManagement: Waited for hwservicemanager.ready for a second, waiting another...
02-06 12:28:09.733 1731 1731 W libc : Access denied finding property "hwservicemanager.ready"
02-06 12:28:09.733 1731 1731 W libc : Access denied finding property "hwservicemanager.ready"
02-06 12:28:09.731 1731 1731 W binder:1731_2: type=1400 audit(0.0:859445): avc: denied { read } for name="u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=230 scontext=u:r:lbs_dbg_ext:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=0
``
|
Running KDE connect 1.32.11 on a Motorola G73 5G (XT2237-2) Build number U1TNS34.82-12-7-8, Kernel version 5.10.218-android12-9-00041-... with ThinkShield for mobile 14.01.002. When sending a file from the Computer to the Android device with "Share file", nothing happens. No notification on the phone, dead silent. I have made sure that all permissions were enabled in the Android settings. Looking at the Android logs with adb logcat, we can see that we got an access denied on tmpfs when receiving the file: ``` adb logcat | grep -C 10 kde 02-06 11:54:57.635 1731 1731 W libc : Access denied finding property "hwservicemanager.ready" 02-06 11:54:57.631 1731 1731 W binder:1731_2: type=1400 audit(0.0:854272): avc: denied { read } for name="u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=230 scontext=u:r:lbs_dbg_ext:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=0 02-06 11:54:57.645 2803 2803 D CBR_SystemUI: CarrierLabel - : updateLabel cellMsg: cellEnabled: false 02-06 11:54:57.646 2803 2803 D CBR_SystemUI: CarrierLabel - : updateLabel mCellBroadcastMessage Visibility: 8 02-06 11:54:57.646 2803 2803 D CBR_SystemUI: CarrierLabel - : updateLabel cellMsg: cellEnabled: false 02-06 11:54:57.646 2803 2803 D CBR_SystemUI: CarrierLabel - : updateLabel mCellBroadcastMessage Visibility: 8 02-06 11:54:57.648 2803 2803 D StatusBarIconController: ignoring old pipeline callbacks, because the new mobile icons are enabled 02-06 11:54:57.744 2055 2055 D FlashNotifController: requestStartFlashNotification 02-06 11:54:57.745 2055 2055 I FlashNotifController: startFlashNotification: type=1, tag=android 02-06 11:54:57.745 2055 2055 D FlashNotifController: Flash notification is disabled 02-06 11:54:57.755 2055 2055 W PackageManager: Missing required system package: org.kde.kdeconnect_tp, but found with extended search. 02-06 11:54:57.759 1374 1670 I hwcomposer: [DRMDEV] (0) failed to waitNextVsync: -1 02-06 11:54:57.765 1374 1670 I hwcomposer: [DRMDEV] (0) failed to waitNextVsync: -1 02-06 11:54:57.798 1374 1670 I hwcomposer: [DRMDEV] (0) failed to waitNextVsync: -1 02-06 11:54:57.822 1437 1437 I BufferQueueProducer: [StatusBar#82](this:0xb4000076a448ff18,id:-1,api:0,p:-1,c:1437) queueBuffer: fps=0.01 dur=85799.29 max=85799.29 min=85799.29 02-06 11:54:57.827 1374 1518 I hwcomposer: [HWCDisplay] [Display_0 (type:1)] fps:0.034642,dur:57733.20,max:57358.91,min:374.29 02-06 11:54:57.903 1437 1903 I Scheduler: applyPolicy: UpdateRefreshRate 30 to 120 of group 0: [touch=0:0 touchBoost=0 scroll=0:0 idle=0:0] 02-06 11:54:57.923 1538 1538 I FPSGO : fpsgo_boost_sched_idle_prefer:1 02-06 11:54:57.924 1538 1538 I mtkpower_client: perf_lock_acq, hdl:0, dur:0, num:2, tid:1538 02-06 11:54:57.924 1437 1437 I BufferQueueProducer: [NotificationShade#71254](this:0xb4000076a270bf18,id:-1,api:0,p:-1,c:1437) queueBuffer: fps=0.02 dur=57835.51 max=57835.51 min=57835.51 02-06 11:54:57.925 1437 1437 I Scheduler: applyPolicy: UpdateRefreshRate 120 to 30 of group 0: [touch=0:0 touchBoost=0 scroll=0:0 idle=0:0] ``` What can be done to solve this?