[SMS App] Transfer requested attachment file.
Summary
This patch adds support to process PACKET_TYPE_SMS_REQUEST_ATTACHMENT packet and transfers the requested attachment file to the desktop using PACKET_TYPE_SMS_ATTACHMENT_FILE packet.
Working
-
When a packet of type 'PACKET_TYPE_SMS_REQUEST_ATTACHMENT`is received all the fields are extracted from the packet. and partID is used to get the Uri of the attachment file.
-
The packet of type
PACKET_TYPE_SMS_ATTACHMENT_FILE
is created with the payload and is sent back to the desktop.
Testing
-
To test this patch you also need this patch (kdeconnect-kde!2) for the desktop app.
-
After applying both sides patches, just run the desktop SMS App and double click on a thumbnail in the chat display UI, The file will be fetched from the android device and will be opened in the default app of the system.