User Details
- User Since
- Jul 15 2017, 2:42 PM (409 w, 6 d)
- Availability
- Available
Oct 15 2018
Mar 5 2018
Sep 26 2017
I haven't been working on this lately because even though quite a few features work (permissions, creating new files, renaming, moving, deleting...), I was stuck on several major problems, in particular transferred files are empty until the device is rebooted (an outputstream doesn't close properly or something like that I think).
Sep 5 2017
Here's the StackOverflow question: https://stackoverflow.com/questions/46060113/writing-with-an-outputstream-to-a-documentfile-data-seem-to-be-written-but-file, feel free to take a look and give a vote
Sep 1 2017
So, is the revision good?
Aug 29 2017
That's what I had in mind too. Right now there's an intermediate screen with the FindMyPhone UI because I copy-pasted so it looks stupid but I couldn't be bothered :D
Aug 26 2017
That's what I did, yes. I don't think there is any other way, Android really doesn't want anyone to access the filesystem without their API :/
I lied, I've actually been working on this. I'm far from done yet, but at least I managed to write to the SD card, which wasn't possible before. I'm currently trying to make it work through the SFTP plugin. I'll upload a diff when I have a somewhat working version to get some feedback.
Aug 17 2017
Reverted the erroneous renaming of d-pointers. And properly renamed a few missing member variables
Aug 16 2017
Aug 15 2017
Include double pointers (Type **foo -> Type** foo)
Aug 14 2017
Aug 13 2017
Absolutely
Aug 12 2017
Is someone already on this task? Because I'm interested in doing it.
Aug 10 2017
Looks good to me
Aug 9 2017
Aug 7 2017
These two stackoverflow discussions, here and here, seem to answer how to write to external storage with the Storage Access Framework. Android also provides docs for the SAF, but it's not great imo.
Aug 3 2017
I noticed I don't have write access on my SD card with the SFTP plugin, is it part of this task?
Aug 2 2017
Jul 31 2017
Use isEmpty() instead of QString::null.
Create uniqueName after we have checked if identity is empty.
Jul 29 2017
Here's what I found:
Concerning the naming of the service, having a unique name per instance is actually part of D-Bus's specifications. It's supposed to be implemented in VLC (see the source here, line 201) but there was a bug that only got fixed june 18 and since I'm on KDE Neon, I have an older version installed. Indeed if I check the D-Bus connections in Manjaro with two instances of VLC, I get two connections.
Jul 27 2017
I'll see what I can do, although I'd rather not claim the task since I don't know anything about DBus (yet, it's a good excuse to learn) and might get stuck.
I like it! Although I think we should keep the feature of knowing if the phone is charging or not. Just something like:
Jul 26 2017
The volume plasmoid works correctly: both players are visible.
Jul 25 2017
I tried to take a look at this, even though I didn't know anything about DBus.
Jul 22 2017
Revision D6730 has been accepted and removes the need for this one.
Jul 21 2017
- mHostAddress is now in LanDeviceLink instead of DeviceLink
- Device::deviceLink changed to Device::getLocalIpAddress and only returns a QHostAddress instead of the whole link
- the block in LanDeviceLink::reset that gets and stores the IP address is cleaner now
Jul 20 2017
This seems to work for me. The correct IP address is stored and reused.
Jul 19 2017
I realized this is just bad.
Instead of transmitting all IP addresses for the device, maybe store the correct one in LanDeviceLink
Jul 17 2017
Loop on the addresses received in the network package and determine which one is open to KDE Connect
Transmit all ip addresses to the desktop application so that it can determine which one to use
Okay, I did it differently (close to what you said):
The android application sends all IPs it can find in the device interfaces, then the desktop application loops on those IPs and tries to open a TCP connection on the current IP on the requested port: if it succeeds before the timeout, that's the IP that will be used to mount with sshfs.
Jul 16 2017
Jul 15 2017
Remove the remaining Q_FOREACH in daemon.cpp in deviceIdByName and rename the variable d to device to avoid confusion.