<table><tr><td style="">sredman retitled this revision from "Add contacts-reading plugin" to "Add contacts-reading plugin (Android side)".<br />sredman edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-3cdxgozx3tw2dwg/">(Show Details)</a><br />sredman edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-kba7eeze2dwquf6/">(Show Details)</a>
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9690">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">Add a plugin to the KDE Connect Android application which supports reading the Android contacts databases and <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">bundling</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">sending the</span> requested data as <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">network packages</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">vcards</span><br />
 <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">- Once through</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">- Android automatically has support for exporting vcards with all</span> the <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Android layer</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">fields you would expect (phone</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">all contacts are associated with a unique ID.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">email,</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">This ID happens to be the NAME_RAW_CONTACT_ID in the Contacts database</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">photo</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">but that detail is unimportant</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">etc.)</span><br />
 <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">- Future requests for information about a contact can be made using this unique ID<br />
</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> - I add two custom fields,</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">- Since this plugin could leak sensitive information over DBus, it is disabled by default</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">one for the modification timestamp and another for the NAME_RAW_CONTACT_ID so that the contacts can be correlated back to the Android database<br />
<br />
This does not (yet) support writing contacts back to the phone nor does it automatically listen to the phone's contacts database to change<br />
<br />
BUG: 367999</span></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Use some DBus debugger</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Connect the device to the desktop and verify that vcards are created in QStandardPaths::GenericDataLocation / kpeoplevcard". On my system this is ~/.local/share/kpeoplevcard<br />
<br />
Create a dummy contact on the device and verify it is synchronized (Currently not automatic, have to disconnect and reconnect or use dbus)<br />
<br />
Modify the dummy contact and verify the modifications are synchronized (Currently not automatic, have to disconnect and reconnect or use dbus)<br />
<br />
Delete the dummy contact and verify the deletion is synchronized (Currently not automatic</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">such as d-feet or QDBusViewer to push</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">have to disconnect</span> and <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">poke the DBus interfaces on the desktop side to exercise the Android application</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">reconnect or use dbus)</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R225 KDE Connect - Android application</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9690">https://phabricator.kde.org/D9690</a></div></div><br /><div><strong>To: </strong>sredman, KDE Connect<br /><strong>Cc: </strong>andyholmes, mtijink, adeen-s, SemperPeritus, ahmedbesbes, daniel.z.tg, jeanv, seebauer, bugzy, MayeulC, menasshock, ach, apol<br /></div>