03-12-2014, 11:57 AM | #1 |
Grand Sorcerer
Posts: 11,950
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Android 4.4 (KitKat) breaks CC writing to removable SD cards
Google in their infinite wisdom has decided that starting in kitkat (android 4.4), apps cannot write to removable SD cards except in extremely limited ways. This means users will not be able to use CC to put their library on SD cards. There is nothing we can do about this.
For the moment a user can get around the restriction by rooting the device and changing a system file. This is not something that we can recommend. EDIT: for the latest information, see this thread starting at post 42 and our FAQ answer How do I use an SD card with Android 4.4 (Kitkat). Last edited by chaley; 07-27-2014 at 04:28 AM. |
03-12-2014, 01:54 PM | #2 |
Well trained by Cats
Posts: 30,397
Karma: 58055234
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
This smells of collusion with device manufacturers to sell more of the premium priced devices that have more on board storage.
Charles, is there a possibility of a Calibre-companion compatible save to disk plugin where we could insert the card into a PC card-writer for the transfer and then sneaker it to the device and have it still be CC usable ? |
Advert | |
|
03-12-2014, 02:12 PM | #3 | |
Grand Sorcerer
Posts: 11,950
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The challenge (not a hard one but work) is to map the storage naming system used when saving the books to the one used by CC. There aren't a zillion choices:
Of course, we can do this today for epubs. If you save-to-disk to the SD card then calibre's metadata will be stored in the book (assuming no DRM). CC would "scan for new books" and find them, and very importantly find the calibre UUID so calibre's book matching would be accurate. |
|
03-12-2014, 05:17 PM | #4 |
Calibre Companion Fanatic
Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
That seems highly unlikely (at least in the US) because the US carriers generally only sell the smallest version of each phone. Every once in a while they add a larger one six months into the model year, but they certainly aren't following a strategy of pushing people to larger phones.
|
04-05-2014, 04:19 AM | #5 |
Ebook-Fan
Posts: 398
Karma: 698564
Join Date: Feb 2011
Device: PRS T1
|
|
Advert | |
|
04-05-2014, 04:23 AM | #6 | |
Grand Sorcerer
Posts: 11,950
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
04-05-2014, 10:14 AM | #7 |
Calibre Companion Fanatic
Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Chaley,
Are you considering adding support for a Calibre Companion private directory? I never go to the directory and my book reader would still be able to read the books. |
04-05-2014, 11:28 AM | #8 | |
Grand Sorcerer
Posts: 11,950
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
1) Android deletes everything in that folder if CC is uninstalled or has its data cleared. This is a highly unfriendly act that we think will bring the Hus to our gate. 2) It isn't clear that reader apps will work. They can open the file for reading (we think) but they will not be able to create any temporary files in that folder. We don't know if any do this. A third problem is that non of us have a kitkat machine with a removable SD card, so we can't test anything. That problem can probably be worked around with the help of someone who has such a device by sending them privately an APK to sideload. Bottom line: we aren't yet convinced that the benefits of supporting that special folder outweigh the costs. |
|
04-05-2014, 11:45 AM | #9 | ||
Calibre Companion Fanatic
Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
Quote:
Quote:
Do the same rules apply to flash drives plugged into a OTG adapter? If so, you could test that way. In any case, I'm happy to volunteer as soon as Verizon gets around to updating the GN3. |
||
04-17-2014, 09:04 PM | #10 | |
Member
Posts: 11
Karma: 10
Join Date: Apr 2014
Device: Moto G Power (2020), various tablets
|
Quote:
I use FBReader as my reader, and ran into problems with it - it writes to a "cache" folder, which by default is the same place as its library (which is also CC's library). However, it's simple to change the cache folder to be elsewhere (it pops up to complain, and you can change the folder on that window) - so now it's writing to cache in internal memory, but can still see the library on the SD card. It doesn't, apparently, actually need to write anything to the books themselves. The clearing data is problematic - less for uninstalling than for getting the data cleared, that sounds very unfriendly. I do use clearing data to deal with various freeze-ups for apps, though I don't think I've ever needed it for CC. If I were going to uninstall CC, I expect I'd sync first, or not be too surprised if the books were gone too. I do have a Note 3 that I've upgraded to KitKat, so I'd be happy to be a tester if you need one. I've rooted other devices, but haven't this one (yet); I'm pretty familiar with fiddling around (sideloading, etc). For right now, I guess I'll have to ignore CC (wahh! just after you added Date Read, too!) and copy stuff to the folder more directly (hmmm, wonder if WebDAV will work, or if I'll have to go USB or pull the card out?), then get it directly through FBReader. I'm not _yet_ going to root just to fix this, but if I find it's broken other stuff as well, I may have to. |
|
04-18-2014, 03:23 AM | #11 | |||||
Grand Sorcerer
Posts: 11,950
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Quote:
Quote:
CC's app-specific library folder on the SD card should be Android/data/com.multipie.calibreandroid/files If you are running the latest version of CC then there is an example of this folder on the devices main memory. The debug log is stored there now instead of in the library (because we might not be able to write the library). CC might be able to write to that folder if it exists, which means that CC's existing library folder dialog would permit changing the library to that folder. CC might be able to create the "files" folder if the parent folder (com.multi...) exists. Or perhaps nothing will work because the folder must be created by Android with specific permissions. Quote:
|
|||||
04-18-2014, 09:38 PM | #12 |
Calibre Companion Fanatic
Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
|
I don't have 4.4 yet, but I imagine that the update is coming soon. Is CC set up now to not write to an SD card under 4.4, or will it return an error if the write fails? Because I am happy to create the Android/data/... Folder by hand and then see if things work.
|
04-19-2014, 03:13 AM | #13 | |
Wizard
Posts: 4,334
Karma: 4000000
Join Date: Oct 2008
Location: Paris
Device: Cybooks; Sony PRS-T1
|
Quote:
|
|
04-19-2014, 03:42 AM | #14 | |
Grand Sorcerer
Posts: 11,950
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
1) It refuses to accept a non-writable folder as a library. It accepts read-only folders in the path to the end folder. 2) It produces an error popup if it cannot write in the library. If connected as a wireless device, because the error will break the protocol, CC will disconnect. Because of 1), if a hand-created folder is writable then CC should be happy to use it. Please be sure to use the "files" subfolder in the app's private folder, because if/when we directly support the SD card private folder that is where the books will go. Thanks for doing this. |
|
04-20-2014, 06:20 PM | #15 |
Connoisseur
Posts: 73
Karma: 530904
Join Date: Apr 2011
Device: Sony PRS-950, Onyx Boox M92 and i62HD
|
How about CC accessing something like Nexus Media Importer?
Hi Chaley,
I have a Nexus 7 2013 tablet running KitKat 4.4 and while the tablet does not have an SD card slot I use Nexus Media Importer with a cables to go adapter which allows me to use a USB flash drive with the tablet. The Nexus Media Importer has several different ways you could address/access the storage device connected to the USB port on the tablet. I'm currently using a 128GB USB flash drive with the adapter and it works fine for video play back at 1080p. The Nexus Media Importer is an inexpensive app and can support flash card readers as well. Would you consider having CC access the Nexus Media Importer? Thanks in advance for your consideration. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Android KitKat released | Dopedangel | Android Devices | 269 | 12-16-2013 05:48 PM |
Calibre Companion 3.2 (Amazon App Shop Version) + Android 4.4 (Kitkat) wont start | Afkpu | Calibre Companion | 5 | 11-26-2013 11:01 PM |
Nexus 7 (2013) with Android 4.4 (KitKat) & Calibre | jamng | Devices | 4 | 11-22-2013 01:25 AM |
Android 4.4 to be called KitKat | tubemonkey | News | 42 | 09-11-2013 02:05 AM |
Audible for Android new version (rel. 01/22/13) - Supports our removable SDHC cards, | rkw | Android Devices | 4 | 02-01-2013 01:51 PM |