Repository navigation
Open
Labels
enhancementNew feature or request
Description
Idea
Tapping a book on Home opens the reader app's library, not the book itself. For most apps we couldn't find a way to open a specific book (docs/READER_APPS.md). CrossPoint for Android (MIT, data/ExternalReadingRepository.kt) opens the latest Kindle and Libby book directly, in two ways we haven't tried:
- App shortcuts (Libby). As the default Home app, it reads Libby's shortcuts with
LauncherApps.getShortcuts(dynamic + pinned + manifest). It treats a shortcut whose label isn'tLibrary/Shelfas the current title, and opens it withLauncherApps.startShortcut. - Kindle ASIN from the app folder. It lists
Android/data/com.amazon.kindle/files/<ASIN>(10-character folder names), picks the folder with the newest modified time, and openskindle://book/?action=open&asin=<ASIN>. The code comment says this only works where the ROM lets other apps read that folder (e.g. BOOX). On Android 11+ it's normally blocked, so it won't work on the Crema Pebble.
Pebble Desk doesn't read app shortcuts at all today (no LauncherApps use). We already knew the kindle://book link. The blocker was getting the ASIN (READER_APPS.md, Kindle section).
Several books in one app
CrossPoint only opens the single most recent book per app. For us, every book on the shelf should open on its own:
- Shortcuts: this depends on what each app publishes.
- One shortcut per recent book (label = title): match by title to our books, and each book opens directly.
- One shortcut reused as "last book": only the most recent book opens directly. Others fall back to opening the app.
- Saving the shortcut id doesn't help in the reused case. A launcher can't see a shortcut's intent (
ShortcutInfo.getIntents()returns null forLauncherAppscallers), only start it by id. If the app rewrites the same id for the next book, the old book is gone. Side note: CrossPoint'snav:titleextras check reads those intents, so it probably never matches and only the label check works.
- Kindle ASIN: there's one folder per downloaded book, so this works for several books. When the accessibility service sees a Kindle book open, attach the newest-modified ASIN at that moment to that book and save it. CrossPoint doesn't save it, so it only gets one book. This reads a known app data folder, not a storage-wide scan, so it fits the "don't scan storage for book files" rule.
To check (emulator)
- Which installed reader apps publish shortcuts, and how many: open 2–3 books in turn, then
adb shell dumpsys shortcut(Libby, Kyobo Library, Millie, Ridi, Aladin, Kindle, Kobo, Play Books…). Kyobo Library and Millie are the main apps we concluded couldn't open a book directly. - Does starting the shortcut land in the reader screen or only on the book's detail page?
- Are shortcut labels exactly the book title (localized, trimmed)? Do static manifest shortcuts (Search, etc.) need filtering?
- Kindle on a BOOX-like ROM (Android 11+ with readable
Android/data): do ASIN folders exist, and does the newest modified time track the book just opened? Sent documents have no store ASIN. Check what their folders look like.
If it works
- An app adapter (
ReaderApp.open) could try the saved shortcut or ASIN first, then fall back to today's behavior. - Shortcuts need Pebble Desk to be the default Home app. It usually is, but the fallback must stay.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
hissinger commentedon Nov 5, 2026
Emulator findings (2026-11-05)
Checked on
CremaPebble_A11_Play(Android 11, Libby 9.5.0 and other reader apps) andCremaPebble_A11(Android 11, root, Kindle 8.158). No code changes yet.Which apps publish shortcuts
dumpsys shortcutafter using the apps:0= 도서관/Library (shortcut=nav:library:root),1= 서가/Shelf (nav:shelf:root),2= label is the latest title (nav:title). The label changed toPachinkoas soon as I opened that sample.ttsandlast(afile://VIEW intent for the last book). We already open these by file.requestPinShortcutand Millie e-ink has no shortcut code at all. So this approach can't open a specific book in Kyobo Library or Millie.Libby: only the most recent book
nav:titleshortcut has no book id. It's an intent extrashortcut=nav:title, andActivity_Mainforwards it to the web client as "open the current title" (decompiled 9.5.0:intent.getStringExtra("shortcut")→nav:*message.widget/notificationextras also map tonav:title).Activity_Mainis the exported launcher activity), so noLauncherAppsor default-Home requirement:am start -f 0x10000000 -a android.intent.action.VIEW -n com.overdrive.mobile.android.libby/com.overdrive.mobile.android.nautilus.ui.Activity_Main --es shortcut nav:titlenav:titleonly when the tapped book is Libby's last-opened book (our ownbook_openrecord, plus the shortcut label viaLauncherAppswhen we're the default Home). Otherwise launch as today.https://libbyapp.com/…→nav:gowith the path) can open a specific title by id, and where we'd get that id.Kindle: ASIN link works, getting the ASIN is the problem
kindle://book?action=open&asin=<ASIN>opens that book's reader directly. Tested with two books in a row (B004UJAOLMWuthering Heights →B0083ZRAJSThe Wonderful Wizard of Oz). Both went throughBookOpenActivitytoStandAloneBookReaderActivityon the right book.Android/data/com.amazon.kindle/files/has one folder per downloaded book, named by ASIN (B001EYUUKQ,B004EHZXVQ,B004UJAOLM,B0083ZRAJS).B0083ZRAJS.ticrinside the B004UJAOLM folder, bumping B004UJAOLM yet again.CR!….kfxfiles. The content one is encrypted (\xeaDRMION). The metadata one is a plain KFX container (CONT):CONT, u16 version (2), u32 header length, u32/u32 container-info offset/length. Container info is an Ion struct.$413/$414give the index table offset/length.ENTY+ u16 version + u32 header length + data.$490(book_metadata) has$491categorised_metadata. The categorykindle_title_metadatalists{$492 key, $307 value}pairs:ASIN,title(exact Kindle title),author(Brontë, Emily),is_sample,asset_id, …$417(raw media) in the same container is the cover JPEG at original size: 1020×1529, 1207×1811, 329×500, and 800×588 (David's Writing Journey is a front+back spread). That's much bigger than the 90×135 to 120×180 px we crop from the screen today. All 4 books had exactly one$417in the metadata container ($164external_resource gives its MIME/size).StartActions.data.<ASIN>.ascisn't usable for titles: itstitlefields are recommendations, and some books only have an error message there.requestLegacyExternalStorage+READ_EXTERNAL_STORAGE). Known devices: BOOX Leaf, Poke3, RIDIPAPER 4. These devices also can't crop covers from the screen (notakeScreenshotbefore 11), so the original covers would help them most.OPEN_DOCUMENT_TREEwithEXTRA_INITIAL_URI=primary:Android/data/com.amazon.kindle/files) did show the ASIN folders withUse this folderenabled (emulator, security patch 2021-08). I didn't test whether the grant actually allows reading, or how it behaves on the real Pebble (patch 2021-06). The user would need to grant it once.Decision for now
Not implementing. Kyobo Library and Millie can't use this. Libby only covers its most recent book. Kindle ASIN/cover only works on Android 9–10, where we have no reports of Kindle users. If a Kindle user on Android 9–10 shows up, the KFX notes above are enough to build it: store the ASIN and replace the cover in the Kindle adapter's
afterOpened, then open the stored ASIN inKindle.open.hissinger commentedon Nov 5, 2026
Follow-up: Kindle folder on BOOX (firmware check, 2026-11-05)
CrossPoint's code (
ExternalReadingRepository.kt) says readingAndroid/data/com.amazon.kindle/filesworks "where the ROM lets an app read Kindle's folder directly (e.g. Boox)". I checked this against two BOOX firmwares we already had (static analysis only, no real device):first_api_level=30)persist.fuse_sdcard=true)com.android.mediaproviderin/system/apex, so Play can't update it):libfuse_jni.sostill has the stock owned-path check,^/storage/[^/]+/(?:[0-9]+/)?Android/(?:data|obb|sandbox)/([^/]+)(/?.*)?. A lookup by any other app is denied withInvalid other package file access from …. The Java sideisUidForPackageForFuse→isCallingIdentitySharedPackageNameis stock, and there are no Onyx/BOOX changes in the decompiled MediaProvider.services.jar) is stock AOSP 11. There's no BOOX-specific mount mode that gives apps with all-files access a pass-through view.Conclusion: On BOOX Android 11 firmware, other apps'
Android/datais blocked just like on stock Android. CrossPoint's Kindle card (and the KFX title/cover approach above) should only work on Android 9–10 BOOX devices (Leaf, Poke3, …). CrossPoint's "e.g. Boox" is probably about those older devices. Not verified on a real BOOX Android 11 device. Android 12+ BOOX firmware (Palma2 etc.) wasn't checked, but newer Android only tightens this.How CrossPoint does Kindle, for reference
^[A-Z0-9]{10}$folders and takes the newestlastModifiedacross each folder and its files, 2 levels deep. Only one book (the newest) is shown. Per the emulator test above, this can pick the wrong book: closing B0083ZRAJS wroteB0083ZRAJS.ticrinto the B004UJAOLM folder.EBOK:<ASIN>to its own server (sync.crosspointreader.com/api/v1/connectors/kindle/lookup), which only works when signed in to CrossPoint Sync and online. Otherwise the title isKindle bookand there's no cover.kindle://book/?action=open&asin=<ASIN>.Still parked: same decision as above.