View Single Post
Old 07-30-2018, 06:04 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
CC isn't going to be able to help you. The reason: CC must use the Android Storage Access Framework to create and manage folders. As a consequence CC doesn't have a "real" path to the files, which it needs to pass the book to a reader app. CC gets this real path by asking Android for the path to CC's private folder, then walks up that path until it finds the books folder.

CC gives Moon+ the path it found. I have no idea why Moon+ is choosing to change that folder, nor do I know how it finds that sdcard symlink.

Just to make your day: life is going to change later this year. Google has said that in order to release updates, apps must "target" Android 8 starting in November. That is bad enough because it means that CC must be much more aware of differences in Android versions. To make matters worse, another thing Google changed, starting in Android 7, is making it illegal for an app to pass a file path to another app. It must instead pass a "handle" to the contents of the file, which the receiving app uses to copy the file into its own space. As a consequence, once CC targets Android 8 (which it must do), on Android 8 (and I think 7) reader apps must make a copy of books when the book is opened from CC. Once that happens the difference in file names becomes irrelevant because they are in fact different files.
chaley is offline   Reply With Quote