Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all 4460 articles
Browse latest View live

K3 execute script when (un)plugged

$
0
0
Hi Guys.

I'm lurking around here for quite some time. I got a cheap K3gb because i wanted to create something like the weather screen, but i little more advanced.
Jailbreak, KUAL, ssh etc. is working perfectly.
I still want to be able to read on my Kindle from time to time. So I thought it might be useful, if I'm able to turn on/off the powersaving settings when it's (un)plugged.
I read that Kite might be able to do this, but it won't install (system update stays grey).

So i hope someone here is able to point me into the wright direction.
Is there maybe a variable that changes as long as the Kindle is charging?

WAF Any way to debug a javascript/mesquite/waf app?

$
0
0
Howdy all! Thanks to the community for your great resources, recently got a second-hand KT to jailbreak and use as an experimentation platform. (Turns out it's actually a pretty nice e-reader too, especially since there are so many software-related ebooks out there for free, plus KOReader's feed downloads... :D)

So I'm working on a TODO-list/work time tracking tool, going thru HTML and Javascript as my platform. I've got an installable KUAL extension package, it's all being fired up by mesquite, and at least the version I've made mainly with super ancient JQuery 1.x is actually mostly working. (Got Parcel 2 and Gulp together handling generating things from templates, compiling scss, bundling javascripts and css, and transpiling my more modern dialect of js to something the Kindle can deal with... Yes, I'll have it open sourced, it's actually already on my GitHub but not in a great form and kind of a mess.)

However, troubleshooting issues is my biggest challenge, given the lack of access to any error logs from the web browser, etc. As an example, I have a much nicer version I've made with Svelte.dev and I've even gone to the trouble of verifying that it works in Safari 5.x for Windows, which is apparently a pretty similar version of WebKit. However, that just shows a blank screen on the Kindle despite working perfect in the ancient Safari. I've tried https://www.hnldesign.nl/work/code/m...obile-devices/ but it also does not work, presumably too new. There are references in various mesquite and pillow javascripts to some built-in logging APIs (kindle.dev.log, etc) but I think the closest I've gotten is a warning (in showlog) that the arguments were incorrect.

Is there any good way to troubleshoot/diagnose issues with html+css+javascript apps on the Kindle? Any point in working further with these? I've looked thru a few examples: the apps that come in the root partition, plus Komic (which is a very sophisticated app, very impressed), but nothing clear to me. I'm not using any Kindle-specific functionality in the pillow or mesquite javascript directories, really: I've got a logging function that will pick whether it attempts wrapping console.log or kindle.dev.log based on if it's a kindle, but that's as fancy as I got.

Thanks for any assistance!

(Offhand: if anyone can clarify what the difference/distinction between mesquite and pillow are, I'd be pleased to hear: my best guess is that pillow is the kindle-specific js objects and js scripts provided by the webkitgtk browser, and mesquite is an app for launching "web widget" applications that may or may not use those capabilities, but the fact there's a directory of nearly-entirely-distinct javascript for both mesquite and pillow, doing some similar things, has me a little bit confused.)

Kindle 5 Touch needs some community lov

$
0
0
Hello Everyone. This is my first post and I hope someone can help me. I have a Touch 5, that i absolutely love, though it's been collecting cobwebs for the last few years. I ran into a problem on it's current firmware, 5.1.2 where I could not reset, de-register, OTA or manual update the device.

It works in all ways but that. I will connect to the WiFi, but, that the extent of it. I can move books to it via Caliber, and I can't send them OTA. Amazon support could not, and I stumbled this forum and the Kubrick unbrick method in desperate attempt to bring back a device that sure only has a few 1's and 0's awry.

I've attempt the Kubrick debrick method (not to jailbreak, or unbrick) to get a clean firmware in there, but it fails every time at the diagnostic mode step. It seems not to take the diagnostic partition and the device just reboots back to USB mode. With the USB removed it just goes back to the home screen like it's an other Kindle day.

I tried this with both the DVD and USB live versions on old, and relatively new hardware.

As for official updates, it fail mostly straight away with "update error: 007" Sometimes the progress bar will get between half way to all the way done, but that's it.

I look forward to some awesome advice.

Cheers
MHF

Question about word wise

$
0
0
Does anyone know what sidecarRevision, bookRevision and sidecarFormat from metadata table(https://github.com/xxyzz/WordDumb/bl...layerenasinkll) are used for? And how to get these values for a certain book?

I find out how to get acr for mobi and azw3 books but don't know where to find it in kfx books.

PW 1.8V voltage reference on a PW?

$
0
0
I have a defunct PaperWhite (probably, the serial number's inaccessible). I'd like to connect up a UART to see if anything comes out and possibly try to get some use out of it that way.

I have the appropriate TTL to USB adapter, but mine requires a 1.8V voltage reference for the low-voltage side (it'll work with any reasonably low voltage). I could try and produce that from my bench power supply but it'd be so much easier if I could source this from the Kindle itself. Before I go poking at test pads to see what comes out, has anyone else managed to figure this out?

Thanks!

PW4 How to make sure kindle doesn't update on the first setup?

$
0
0
Hey everyone! I just bought a kindle PW4 and I knew i shouldnt let it update to 5.13.4 if i wanted to jailbreak it but the kindle wouldn't let me do anything if i didn't login first... so i decided to turn on the wifi to set up my account, and it was at most 10 minutes before turning on airplane mode.

After that, the first thing I did was to check which version was installed, and I was happy to see it was 5.12.X (i even compared my old updated kindle to the new one to check the versions!)

Then i connected it to my PC (still on airplane mode) and when i disconnected it I noticed the dark mode option was already there, when it wasn't before! I checked out my version... and yep, it was updated to 5.13.4 :smack: i didn't even see that updating screen or anything, maybe it came already downloaded and just had to install itself? my wifi is pretty fast but always my kindles got updated overnight :chinscratch:

Fortunately, i guess, my new kindle came with a dead pixel and the store told me to bring it on monday and change it for another one... so what should i do to prevent the next kindle to update? can i jailbreak it without setting up a wifi or an amazon account? maybe i can have all the files downloaded before or something?

Thank you!

PD: sorry if my English isn't that good

PW Source for PaperWhite uboot?

$
0
0
Does anyone know where I can get a copy of the source code (or even a precompiled uboot.imx) for the PaperWhite?

Context: I have a defunct PaperWhite which is showing signs of a dead eMMC. On bootup, I get the dreaded "Invalid board ID!" message. It'll enter recovery mode, although it's rather unwilling to do so and will typically require multiple reboots, and I have the tooling to download and run an image (imx_usb_loader). However, I have no uboot image to run, and the various links I've found here to get one have all bitrotted. I'm hoping to get an actual uboot prompt with which I can poke things a bit and try and figure out whether the eMMC is actually dead or whether something just erased the magic startup data.

Why my plugins on KPW4 dosen't show output messages???

$
0
0
As the title,plugins won't show their outputs on the top of my sreen but I can use these plugins.
It appeared when I accidentally pressed reset and installing kual and the plugins again,and kual's log showed that I don't have root access.
Installing kterm and trying to change root passwd,it responds :must be suid to work properly
My firmware is 5.13.5 and before accidentally resetting it's also 5.13.5
Trying to install a hotfix but it just shows me I used a wrong update file even if I longpress the button to force restart. After restart it shows the same message.

Typing ;log runme does show helloworld with a script of it though.

CAN SOMEBODY HELP ME???
THANKS!!!:thanks:

PW2 How to make it usable?

$
0
0
Hello mobileread community!

I just owned a Kindle PW2 with 5.12.2 and now I wonder how I can read my PDFs with it.

I have jailbreaked a PSP some years ago, but have no experience with hardware jailbreaks. Any advices?

In the end I just want to copy my PDFs and read them.

MOBI support for reflowable files ending on June 28, 2021

$
0
0
Hey all. My first post here.

I received this notification from KDP Customer Support today:

Quote:

We listened to your feedback and are making it simpler to publish eBooks on Kindle. Starting June 28, 2021, we will no longer support files in MOBI, PRC or AZK formats when publishing new reflowable eBooks or updating the content for previously published eBooks. Instead, we ask publishers to use EPUB, KPF (Kindle Create files), or DOC/DOCX (Microsoft Word files) files for reflowable eBooks. Please note MOBI files are still accepted for fixed-layout eBooks.
Have I misunderstood, or does this put an end to the "dual mobi" approach described in this thread?

PW2 Problem after memory replecement.

$
0
0
Hello!
In my pw2 4GB the emmc memory was damaged. On the occasion of the exchange, I decided to increase its capacity. I put on a samsung 8gb chip. I set the serial numbers without any problems, uploaded the main kernel and diags, and the diags system. Unfortunately, the kernel won't boot. I have the message: mmc0 unrecognised EXT_CSD revision 7. Can there be any workaround?
Can the situation be saved by compiling the kernel? I will be grateful for your help.

Attached Thumbnails
Click image for larger version

Name:	bootpw2.jpg
Views:	N/A
Size:	62.8 KB
ID:	186014  

PW4 How Can I Enable USB OTG On KPW4?

$
0
0
I got a PW4 and plugged in a USB soundcard but it didn't work, so I'm asking how to get it worked, and probably connect other devices such as keyboards to it?
Of course it's jailbroken, and running on FW 5.13.5
:thanks:

Tutorial KindleBreak - Software Jailbreak for (almost) any Kindle

$
0
0
A huge thank you to katadelos, yparitcher, SKK, jp12323 for helping me develop and debug this exploit!
Thanks to NiLuJe for customizing his jailbreak to work with it and everyone from the KindleDrip thread who helped me test it!
:thanks:

KindleBreak is based on KindleDrip, discovered by Yogev Bar-On, who did an amazing job finding and documenting this vulnerability.
They were not involved in the making of KindleBreak in any way.

Start here!

First of all, if you're here from the Open Seasame! thread, then welcome, keep reading! If you're not, you should go there read it from the beginning until it directs you to come back here.

If you have any questions, consult the FAQ!
Even though this method has been extensively tested by every supported device / firmware version, you may encounter technical issues (none that may harm you device in any way), in that case consult the Technical FAQ!

Check if your device is supported using the steps below:
  1. Use the Wiki to identify your device and make sure that its nickname is on this list:
    Spoiler:
    • KOA3
    • KT4
    • PW4
    • KOA2
    • KT3
    • KOA
    • KV
    • PW3
    • KT2
    • PW2

    If you didn't find your device, and you're wondering if it'll ever get added, consult the FAQ!

  2. If you did, then make sure it's running one of these firmwares:
    (You can check your firmware version in Settings->Device Options->Device Info->Firmware Version)
    Spoiler:
    • 5.13.3
    • 5.13.2
    • 5.13.1
    • 5.12.5
    • 5.12.4
    • 5.12.3
    • 5.12.2.1.1
    • 5.12.2.1
    • 5.12.2
    • 5.12.1.1
    • 5.12.1
    • 5.11.2
    • 5.11.1.1
    • 5.11.1
    • 5.10.3


    If your firmware is not on this list that can be for 3 reasons:

    1. It's higher than 5.13.3: Your device is not supported by this jailbreak.
    2. It's lower than 5.10.3: You can update it to one of the versions on the list. If you want to stay on your current version for some reason, consult the FAQ!
    3. It's neither, but still not on the list: I might have missed some firmware versions, so please reply to this thread and I'll make sure to get your specific version tested. If you don't want to wait, then feel free to update to one of the higher versions that are on this list.

If your firmware is on the list, let's begin the Jailbreaking process:

  1. Download this: jb-kindlebreak.zip

  2. Connect your kindle to your PC with an USB in USBMS mode and unpack the contents of the archive you've just downloaded to the top-level of the visible USB storage. (It's the same directory where the documents folder is.)

    It should look like this:
    Code:

    ... (other folders and files)
    kindlebreak.jxr
    kindlebreak.html
    jb.sh
    jb
    documents/
    ... (other folders and files)

  3. Unplug your USB, open your Kindle's "Experimental Browser" from the top right menu, and navigate to:
    Code:

    file:///mnt/us/kindlebreak.html
    (make sure it's 'file:///', not 'file://')

    Your browser should freeze, crash and after some time (this can range from few seconds to several minutes depending on your device) your Kindle will reboot. It'll probably give you some kind of error window with the title along the lines of "Application Error" or "Collecting Debug Info".

After your device has rebooted, you're done with this thread.
The jailbreak will delete all of its own files to clean up after itself. The only thing that will be left behind is the debug log, kindlebreak_log.txt. Please keep that file until you managed to install the Jailbreak hotfix, for debugging purposes!

Now, head back to the Open Seasame! thread and continue the jailbreaking process starting from the "Making sure your JB survives updates." section!

If you've ran into any technical issues, please consult the Technical FAQ!


FAQ
Spoiler:

Q. What does this jailbreak do exactly? Is there any chance of it harming my device in any way or bricking it?

A. There are zero risks involved. The worst case scenario is that nothing will happen. The only thing this jailbreak does is it puts a developer key on your device, essentially jailbreaking it.


Q. I didn't find my device on the list, will it ever be supported?

A. The only other device from the Wiki that might get supported is PW. I'll start working on that after the initial burst of people trying this method slow down. The older devices are immune to this exploit. Kindles releasing after KOA3 will almost definitely have firmware versions above 5.13.3, they won't be supported.


Q. I didn't find my firmware on the list, will it ever be supported?

A. Technically it's possible to generate new jailbreaking kits for any firmware version between 5.3.0 and 5.13.3. If your firmware is in that range and you have a good reason why you'd refrain from updating (not something like "I'm too lazy / don't know how to update"), then leave a reply in this thread and explain your point. Testing a new kit - especially if it's for a really old firmware - takes a long time, but if there is demand, I'm willing to try.


If you didn't find an answer to your question, feel free to ask in this thread!


Technical FAQ
Spoiler:

Q. My PW2 has 5.12.2.1.1 on it and the Jailbreak hotfix won't install, what should I do?

A. This issue only happens on PW2 / 5.12.2.1.1. You can either wait for the "main" jailbreak hotfix gets patched to work with your version, or you can use this instead: https://www.mobileread.com/forums/at...6&d=1501804569


If you ran into any issues that's not answered here, please leave a reply to this thread where you describe your problem. Make sure to include answers for these questions before your problem description:

1.) What device were you using?
2.) Which firmware version is on that device?
3.) What did the browser do when you navigated to kindlebreak.html?
4.) Do you have a file called kindlebreak_log.txt in your USB's root directory? If so, what's in side it?

PW4 Connected but could not reach the internet.

$
0
0
While trying to fake-register my kindle, which I did successfully, I have noticed in my Pi-hole that the kindle was doing a ton of DNS queries towards a cloudfront.net server (2-3 queries a minute). I've decided to block this via Pi-hole to see if it will have any consequences and the kindle immediately threw the following error:
Code:

Connection Failed
Your Kindle connected to the Wi-Fi network but could not reach the Internet.
Contact your Internet Service Provider for further assistance

I have also tried using /etc/hosts to redirect the URL to 127.0.0.1, and I was expecting the same error, but the DNS query was still being sent to the Pi-hole, so it's bypassing /etc/hosts.
From my point of view, it seems like the kindle is using this domain to check if its online, so my question is the following. Would it be possible to disable this check, but still have wifi? I don't really feel like the kindle has to ping the "mothership" every 20 seconds. Would there be a way to check the "online" status some other way than pinging amazon's servers?

KOA2 [Help] Epub Organization Questions

$
0
0
Hey guys,

I have struggled with organization on the kindle & management with calibre.

I have only epubs in my Calibre libraries, with 1 library dedicated to Wuxia/Web Novels, 1 library for published fiction, 1 for nonfiction, and 1 for fanfics. All epub files

I want to make it so that there is one folder for each library, so I can search in KOReader within a specific folder for a book.

So I have the following questions:
Are collections only for non epub files? Like if I only have epub files on the kindle, I won't be able to use Librarian Sync & Kindle Collections plugin for Calibre. Is that correct?

If not, then is "Rebuild collections (calibre plugin) supposed to take more than an hour? I stopped it because I thought it wasn't doing anything

If collections are incompatible with epubs, is there a way to sync with calibre maintaining a folder per Calibre Library?

Like if I add a book in Calibre Library Wuxia, and a book to Calibre Library Fiction, and then plug in my kindle to the pc, would there be a way to have it update each respective folder with the new addition(s)?

If anyone can help me understand collections/answer my questions above, that would really be appreciated :)

Disable keyboard shortcuts in Kindle Previewer

$
0
0
I uploaded the latest update to the Kindle Previewer but its shortcut for opening (Ctrl+K) interferes with an important shortcut in InDesign. I cannot find how to disable it in "Preferences"
Any ideas? Or is this just a bug?

PW4 Terminal or SSH through experimental browser

$
0
0
I would like to use shellinabox, anyterm, ajaxterm, GoTTy, WeTTY, or any other browser based terminal application to access my linux machine from the kindle's experimental browser. Firmware version 5.13.4.

GoTTY gives a websockets error on the handshake, and shellinabox shows an empty screen on the kindle, although there are no errors in the logs for the server. Kindle-TTY, an old github project, also shows an empty screen on the paperwhite 10th gen, but the title of the window is correct.

I understand that the experimental browser is not exactly feature complete. If I can figure out why these applications don't work I could fork and do a workaround, but I don't know what the kindle browser is lacking that is causing the trouble. Any help would be appreciated!

Fake Night mode

$
0
0
This is a little KUAL extension that leverages the method on this thread to allow a sort of fake night mode on non-PW Kindles (i.e. ones where night mode is not supported).

As it uses fbdepth and fbink, it requires USBNet installed.

Caveats:
  • I've tested this only on my KT4, I'm not really sure how it'll behave on other models - worse case scenario, if it breaks horribly, like the screen blanks out, freezes, or doesn't seem to respond to touches, you may need to force reboot your Kindle;
  • When in night mode, ghosting effects are much more pronounced; you'll either have to force a screen refresh very often (by touching the status bar, then back at the center of the book) or just leave page refresh on all time time (Settings > Reading Options > Page Refresh). YMMV, of course, that was just my experience with the KT4;
  • The night mode setting doesn't survive a reboot.

To install, just drop the contents of the zip file inside the extensions folder on the internal storage.

Attached Files
File Type: zip nightmode.zip (1.1 KB)

Is it possible to wipe a Kindle completely and restore from bin file?

$
0
0
I've been wondering if it is possible to fully re-flash kindle with the bin update file once it is jailbroken? Since we can mount / as rw so there could be a way of doing that.

Thanks in advance.

PW4 Pw4 not weaking up from Deep sleep.

$
0
0
My pw4 started acting weird after the last update. In fact, it works normally until I put it aside for a long time. It cannot wake up from deep sleep. Hangs with the banner weaking up .. Then I have to restart it by holding the switch for a long time and it works normally again.
Is it possible to somehow turn off Deep sleep?
Is it possible to downgrade from the latest software?
Does anyone have such problems too?
Thank you for your answer and best regards.

[edit]
I found the option to turn off low-power sleep in the advanced settings of the reader. Maybe this will help, although I feel this is not a permanent solution ...
Viewing all 4460 articles
Browse latest View live