View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0014309 | MMW v4 | Synchronization | public | 2017-07-25 08:16 | 2017-07-26 21:35 |
Reporter | marek | Assigned To | |||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Android | OS | - | OS Version | all |
Product Version | 4.1.17 | ||||
Target Version | 4.1.18 | Fixed in Version | 4.1.18 | ||
Summary | 0014309: USB sync doesn't work for readonly storages | ||||
Description | Some devices restricts MMA to write to SD card completely. The only way to sync is USB sync. But MMA cannot write storageInfo to SD card. That is why MMA always stores all data to all storageInfo.xml files. But MMW doesn't use it and it inserts paths without prefix to mmstore.db.synced. This is unusable for MMA and USB sync fails. I have list of all storageInfo.xml files from one device: primary:MediaMonkey/files/storageInfo.xml <?xml version='1.0' encoding='UTF-8' standalone='yes' ?> <storages version="1.3" storageGuid="0123456789012345678901234567890.0.0af29a4f-6009-4c24-928d-484526b7d5ff"> <storage> <title>Interner Speicher</title> <path>/storage/emulated/0</path> <prefix>primary:</prefix> <info>MediaMonkey/files/storageInfo.xml</info> <type>read-write</type> <current>1</current> </storage> <storage> <title>SD-Karte</title> <path>/mnt/external_sd</path> <prefix>63D5-E6FD:</prefix> <info>MediaMonkey/files/storageInfo.xml</info> <type>read-only</type> <current>0</current> </storage> </storages> 63D5-E6FD:MediaMonkey/files/storageInfo.xml.mmw <?xml version='1.0' encoding='UTF-8' standalone='yes' ?> <storages version="1.0" storageGuid="246c63c5-d7de-4ea7-a290-4dea38916db1.0.58bf0381-6833-4a56-bae0-be67e6d602b9"> </storages> Btw. I can maybe add <guid> tag for each storage. Now there is GUID for current storage only. StorageInfo.xml version will be 1.4: <?xml version='1.0' encoding='UTF-8' standalone='yes' ?> <storages version="1.4" storageGuid="0123456789012345678901234567890.0.0af29a4f-6009-4c24-928d-484526b7d5ff"> <storage> <title>Interner Speicher</title> <path>/storage/emulated/0</path> <prefix>primary:</prefix> <guid>0123456789012345678901234567890.0.0af29a4f-6009-4c24-928d-484526b7d5ff</guid> <info>MediaMonkey/files/storageInfo.xml</info> <type>read-write</type> <current>1</current> </storage> <storage> <title>SD-Karte</title> <path>/mnt/external_sd</path> <prefix>63D5-E6FD:</prefix> <guid>246c63c5-d7de-4ea7-a290-4dea38916db1.0.58bf0381-6833-4a56-bae0-be67e6d602b9</guid> <info>MediaMonkey/files/storageInfo.xml</info> <type>read-only</type> <current>0</current> </storage> </storages> I actually don't know why we do not have it this way since beginning. This way you can pair it more easily. I know that ther are usecases where MMW won't have prefix but it cannot do USB sync without it. | ||||
Tags | No tags attached. | ||||
Fixed in build | 1842 | ||||
|
GUID for all storages was added to MMA build 718. Storage info version was increased to 1.4. attribute storageGuid remains for backward compatibility: <storages version="1.4" storageGuid="0123456789012345678901234567890.0.0af29a4f-6009-4c24-928d-484526b7d5ff"> |
|
Fixed in 4.1.18.1841 and merged to 5.0.0.2073 Test note: Needs to be tested against MMA build 718 so that the <guid> element is presented for each storage to pair accordingly (as one Android device can have more than one SD card) |
|
I guess you meant 1842? |
|
yes, corrected |
|
Verified 1842/719 |