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

RTC wakeup KT4

$
0
0
For anyone trying to wake up the KT4 using the rtc as an alarm to wake at given time here is a script to do so.
every model is a little different this is for a KT4 without SO if you have a different model it will need tweeking

Code:

#!/bin/sh

#####
# Copyright (c) 2019 Y Paritcher
#####

# runs when the system displays the screensaver
do_ScreenSaver()
{
        logger -t "wakescript[$$]" -p local4.info "I display screensaver"
}

# runs when the RTC wakes the system up
wake_up_rtc()
{
        logger -t "wakescript[$$]" -p local4.info "I wakeup alarm RTC"
}

# runs when the system wakes up
# this can be for many reasons (rtc, power button)
wake_up()
{
        logger -t "wakescript[$$]" -p local4.info "I wakeup alarm"
        POWERD_STATES=`lipc-get-prop -s com.lab126.powerd state`
        logger -t "wakescript[$$]" -p local4.info "I PowerD state: $POWERD_STATES"
        if [ "$POWERD_STATES" == "screenSaver" ] || [ "POWERD_STATES" == "suspended" ] ; then
          wake_up_rtc
        fi
}

# runs when in the readyToSuspend state;
# sets the rtc to wake up
# delta = amount of seconds to wake up in
ready_suspend()
{
        delta="120"
        lipc-set-prop -i com.lab126.powerd rtcWakeup $delta
        logger -t "wakescript[$$]" -p local4.info "I delta: $delta"
}

# main loop, waits for powerd events
lipc-wait-event -m com.lab126.powerd goingToScreenSaver,wakeupFromSuspend,readyToSuspend | while read event; do
        case "$event" in
                goingToScreenSaver*)
                        do_ScreenSaver;;
                wakeupFromSuspend*)
                        wake_up;;
                readyToSuspend*)
                        ready_suspend;;
        esac
done;

the script is also attached

see https://github.com/yparitcher/kindle-zmanim for example usage

Brand new PW3 - 5.12.1

$
0
0
Yesterday UPS delivered a brand new PW3 that I got from Woot. I booted it up and got it all setup, and before I could even get to MR to research jail breaking, it had updated itself to 5.12.1.

I have not gone through this process since I got my Kindle Keyboard, many years ago, so for all intents and purposes I'm a complete noob at this once again. I've been trying to search and wade through the various threads but am not having any luck getting started. I've downloaded all the zips and tars from the "Snapshots of NiLuJe's hacks" thread for the PW3. I am now in airplane mode. So for instance ";merchant" has no effect that I can see.

So is there a tutorial, or other reference that I can use to get started correctly; that will walk me through this? Do I need to first do a downgrade firmware? Not looking for anyone to hold me hand so much as a reference, or list there of to get me on my way. Unless someone really wants to hold my hand.

:rolleyes:

:help:

PW3 Kernel development / no kexec syscall

$
0
0
Hi,

so my PW3 is on firmware 5.10.1.1 currently, and the kexec syscall is disabled (it seems like it was enabled some time ago https://wiki.mobileread.com/wiki/Kin...el_Development ). So ideally I'd like a solution that doesn't require flashing to boot another kernel (so that it can be distributed without bricking people's devices), but it should also work without a pc.

To start out I'd also like to try the tethered variant as well (I can't find it right now but I read somewhere that using the bootloader a kernel can also just be written into RAM and booted from there). This is probably the most stupid question but in this guide
Quote:

Bring the Kindle into bootloader mode by:
- Pressing the power button until power LED goes off.
- Keep on pressing power button and start pressing the "magic" key.
- Release power button while still pressing "magic" key.
- Release "magic" key.
what is the "magic key" (which seemingly was the home button on older models) on a PW3 which only has literally 1 button - the power one?

To boot another kernel without a kernel and without the kexec syscall enabled, there seems to be the possibility to make kexec a module, which can then be loaded. See this: https://github.com/amonakov/kexec-module
But I just can't get the .ko out of it. I cloned the repo besides the kernel folder (the latter I build already) and modified the Makefile for the kernel part in the following way:
Code:

[simon@yogal390 kernel]$ cat Makefile
KDIR ?= ../../linux-3.0.35
ARCH ?= arm
MYPWD ?= /home/simon/Downloads/gplrelease/kexec-module/kernel

default: orig
        $(MAKE) -C $(KDIR) -I$(MYPWD)

orig:
        mkdir $@
        ln -s $(KDIR)/arch/$(ARCH)/kernel/relocate_kernel.S
        ln -s $(KDIR)/arch/$(ARCH)/kernel/machine_kexec.c $@/
        ln -s $(KDIR)/kernel/kexec.c $@/

And can actually compile like this (which is pretty much amazing considering this was made for another kernel version):
Code:

[simon@yogal390 kernel]$  make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
make -C ../../linux-3.0.35 -I/home/simon/Downloads/gplrelease/kexec-module/kernel
make[1]: Verzeichnis „/home/simon/Downloads/gplrelease/linux-3.0.35“ wird betreten
  CHK    include/linux/version.h
  CHK    include/generated/utsrelease.h
make[2]: „include/generated/mach-types.h“ ist bereits aktuell.
  CALL    scripts/checksyscalls.sh
  CHK    include/generated/compile.h
  Kernel: arch/arm/boot/Image is ready
  SHIPPED arch/arm/boot/compressed/lib1funcs.S
  AS      arch/arm/boot/compressed/lib1funcs.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  Building modules, stage 2.
  MODPOST 36 modules
make[1]: Verzeichnis „/home/simon/Downloads/gplrelease/linux-3.0.35“ wird verlassen
[simon@yogal390 kernel]$ ls
built-in.o  kexec.c      kexec-mod.h      Makefile  relocate_kernel.S
Kbuild      kexec-drv.c  machine_kexec.c  orig

But no built module to be found... But maybe that's because I don't quite grasp how it should build, and it doesn't do anything with that code from the repository.

What this approach stems from is the kindle fire actually: https://forum.xda-developers.com/ama...-ford-t3270272

Has anybody toyed with stuff like this since the kexec syscall is gone? How have you gone about it? Essentially I just want to boot a kernel with the risk of permanent damage :blink:

Kindle Paperwhite gen1 bootloops

$
0
0
I've just reset my paperwhite gen1 and go to jb it. However I mis-see the Update_jailbreak_1.15.N_uninstall.bin as an installation file.
Then, reboot it...
The device keeps freeze & reboot on the 'man under a tree'.

Now I plug in usb the device is not shown. Any way to remove the .bin??
:help:

KT2 Kindle 7th generation software jailbreak?

$
0
0
I have received a new(ish) Kindle 7th generation. It has been in storage for a while, so it's at Kindle firmware 5.9.4. Any possibility for a software-based jailbreak that involves a downgrade to factory firmware or something?
I know that it normally cannot be done, but what about the "special exceptions"?

I want to open the new Kindle, but I don't have access to a serial cable at all (not even online), so I have to look for somebody with a Raspberry Pi.

I looked for take-it-apart guides, and the best written guides were @knc1's KT2 Exposed thread and iFixit's teardown.
iFixit says that it's easy, mild adhesive, no hairdryer heat needed, only credit-card-opener, while @knc1's post says that it's difficult, delicate, strong adhesive, and specifically warns about using a credit-card-opener. Which one is it? I tried sliding a credit card, but the Kindle's frame won't budge.

Hardware Serial port questions

$
0
0
Dear friends,

I have a couple of questions regarding the connection of the Kindles to the serial port pad.

1. How in hell does the 7th generation Kindle open up? The first step in each and every guide, especially this forum's own KT2 Exposed thread, is to start at an upper corner and slide something made of plastic, like a credit card, in there. There is simply no gap for that. I even (foolishly) tried inserting a small surgical blade, an approach which worked with the Kindle Touch, but didn't work here, and only left me with awesome holes and scratches in the bezel.


2. Can you confirm, once and finally, whether the (a) Kindle 7th generation and (b) Kindle Touch are 3.3v-tolerant? My FTDI FT232 serial port connector board only supplies 3.3v or 5v, without a 1.8v position, nor I can find 1.8v anywhere. I can't use a level-shifter circuit, because that would need resistors and more electrical knowledge, and I have none of both.
I have read this forum extensively, but (for the 7th gen Kindle) some people use resistors (of which I have none and none are in close proximity) and some people use the 3.3v source directly, and yet others recommend using a 1.8v point on the motherboard.
So TL;DR? Can I just wire the serial board's 3.3v to the Kindle?

Thanks a lot!

Trying to get Stock .otf files out of my PW3.

$
0
0
Hi, I'm trying to get the stock helvetica.otf files out of the stock firmware bin for the PW3. I a long time ago somehow got the helvetica nue LT 75 Bold.otf out of the device somehow and now I want to get the LT medium 65 otf now. I made it a ttf and use it on my Boyue devices but would like a non bold variant now. I have so far used the Kindletool to extract the factory bin and cant find a single .otf in there. Where are the stock fonts actually on the PW3 it self, I was under the impression they were in usr/share/fonts?
I also have the PW3 still jailbroken on 5.9.2 with KUAL for reference if you know how to get them out of it.
Any help would be appreciated.
Malcolm

Kindle Paperwhite Died - Can't figure problem

$
0
0
Used a Kindle Paperwhite 3 from 2014 until a few weeks ago, it died while using,
Tried to charge it with socket connection

Tried to charge it with usb cable and a PC

Left it connected for days

Drained Battery tried to charge it again

Tried a soft reset (8 secs power button)

Tried a hard reset (40 secs power button)

Was pretty sure it was the battery then took it apart, no loose cables no swollen battery no signs of any damage or anything looking bad.

Checked battery with a multimeter seems good, checked the battery connection with a multimeter while connected to a power source also looks good.

No idea what else could it be.

SVG or HTML alternative to eips

$
0
0
I am using a KT4 with 5.12.1, and checking what options I have to render graphics to the screen from a shell script.

I can think of using a SVG render engine to create a PNG and print with eips, or to piggyback on the Kindle original browser to render HTML directly.

Any suggestions where to start?

Thanks!

Find out wakeup reason

$
0
0
After wakeup from sleep (echo mem > /sys/power/state), is there a reliable way, beside parsing dmesg, of finding it the wakeup was due to Button, RTC, or USB power?

OS is 5.12 (Linux 4.1).

Thanks!

PW3 Jailbreaking PW3 5.12.1

$
0
0
Hi all, I am new to jailbreaking,
I saw all the wonderful things you can do with it, and I was wondering if I could jailbreak a paperwhite 3 with the firmware version 5.12.1. I don't think it is possible, this firmware just came out some months ago... Sorry if this question is stupid. And please don't say that my grammar is bad, english is not my native language.

PSA: Fake registration on 5.12.1, no Wi-Fi can drain battery in particular condition

$
0
0
I've recently noticed that on my KT2, the battery goes down very rapidly ... something like 20% per hour of reading.
At first, I ignored it, thinking that I have tough luck with batteries on used Kindles ...
But it became so severe that I decided to check whether it was after all a software issue.

First, I booted into diags and chose the Gas Gauge option. Strangely, the battery discharged very slowly.

Then, I booted into main and ran top. A process running as the framework user was eating up to 90% CPU. Even weirder.

Stumped, I checked dmesg for anything that may be odd. Nothing at all.

This left me with one choice before giving up: the /var/log/* directory, where the framework stores its logs.

Viewing the log at /var/log/messages gave me a very unpleasant surprise: Something was being executed over and over and again (and failing) every few seconds:

Code:

[...]
190924:221232 cvm[4409]: I WhisperSyncV2PaginateServiceImpl:Information:: Init Commiting datset
190924:221232 cvm[4409]: I WhisperSyncV2PaginateServiceImpl:WhisperSyncV2INFO: Module = DataSetSync :Apps:Device:SettingsDeviceSettings
190924:221232 cvm[4409]: E WhisperSyncV2HttpClient:Error:: Exception while ensuring wifi connection - Could not connect to wireless
190924:221232 cvm[4409]: E WhisperSyncV2PaginateServiceImpl:failure=GetConnectionFailed:reason=getting connection failed while creating a dataset:
190924:221232 cvm[4409]: I WhisperSyncV2PaginateServiceImpl:Information::datset changes upload DeviceSettings
190924:221232 cvm[4409]: I WhisperSyncV2PaginateServiceImpl:Information:: Deleting pending datasets
190924:221232 cvm[4409]: I AbstractSyncController:Information:: Dataset uploading fail for empty updates link DeviceSettings
190924:221232 cvm[4409]: I WhisperSyncV2PaginateServiceImpl:Information:: Firing nonpaginateclients  datset sync completed event
190924:221232 cvm[4409]: E WhisperSyncV2HttpClient:Error:: Exception while ensuring wifi connection - Could not connect to wireless
190924:221232 cvm[4409]: E WhisperSyncV2PaginateServiceImpl:failure=GetConnectionFailed:reason=getting connection failed while creating a dataset:
190924:221232 cvm[4409]: I WhisperSyncV2PaginateServiceImpl:Information:: Init Commiting datset
190924:221232 cvm[4409]: I WhisperSyncV2PaginateServiceImpl:WhisperSyncV2INFO: Module = DataSetSync :Apps:Device:SettingsDeviceSettings
190924:221232 cvm[4409]: E WhisperSyncV2HttpClient:Error:: Exception while ensuring wifi connection - Could not connect to wireless
190924:221232 cvm[4409]: E WhisperSyncV2PaginateServiceImpl:failure=GetConnectionFailed:reason=getting connection failed while creating a dataset:
190924:221232 cvm[4409]: I WhisperSyncV2PaginateServiceImpl:Information::datset changes upload DeviceSettings
190924:221232 cvm[4409]: I WhisperSyncV2PaginateServiceImpl:Information:: Deleting pending datasets
190924:221232 cvm[4409]: I AbstractSyncController:Information:: Dataset uploading fail for empty updates link DeviceSettings
190924:221232 cvm[4409]: I WhisperSyncV2PaginateServiceImpl:Information:: Firing nonpaginateclients  datset sync completed event
190924:221232 cvm[4409]: E WhisperSyncV2HttpClient:Error:: Exception while ensuring wifi connection - Could not connect to wireless
190924:221232 cvm[4409]: E WhisperSyncV2PaginateServiceImpl:failure=GetConnectionFailed:reason=getting connection failed while creating a dataset:
[...]

So, I decided to unregister the Kindle by removing the file at /var/local/java/prefs/reginfo and rebooting.
And after rebooting, the difference was night and day. It's actually back to advertised Kindle levels!
CPU usage now never exceeds 5%, and all is fine!

After reading through the log that I have, it seems that the issue is caused by something related to Settings -> Device Options. I do distinctly remember having tried to rename the Kindle using the Device Name option in Settings -> Device Options. It told me that I'm not connected to Wi-Fi, which I then ignored ... and it seems to have bitten me back now.

Note that my fake registration was done when the Kindle was on firmware 5.9.4. I gave it an OTA update to 5.12.1 yesterday, and today, I have deleted the fake registration info to fix that issue as stated above.

Trying to re-register it again using that hack no longer works. It would throw you to the setup screen (which you can skip) and ignore the whole fake reginfo file and all my existing items except KUAL won't open.

usbnet requiring password, no telnetd started

$
0
0
Hi, I know there are bunch of threads with similar titles, but I did not find a solution for my problem.

I'm unable to log into my PW2 via telnet or ssh over usb.
Telnet returns "Connection refused." SSH requires a password.

I have airplane mode on, so wifi should be disabled.
Firmware version 5.4.3.2
K5 JailBreak version 1.15.N-r16256
Usbnet version 0.22.N-r16474
md5sums are correct
Device is unregistered if that makes a difference.

Nmap reports only port 22 open, nothing on port 23.
Telneting to port 22 says it's SSH-2.0-OpenSSH_8.0 - don't know if that's really openssh or dropbear.


In desperation I tired manually creating a authorized_keys file in usbnet/etc as described here: https://www.mobileread.com/forums/sh...27&postcount=4 But that's not working either; still asking for a password. Maybe amazon has a factory ssh process that's not being replaced by usbnet? Anyway I really didn't want to have to setup a password or ssh key.

Any help would be much appreciated. :)

[HELP]Transferring collections from K5 to KT4

$
0
0
I have an old Kindle Touch (K5) with all my books sorted in neat collections. I only use calibre and never synchronised it with my Amazon account.

I am looking for a way to transfer the collections to my new Kindle (KT4) and got lost in all the CM and LibrarySync threads in this forum. It this is even possible, any instructions on what to use with which device would be greatly appreciated.

Both devices are jailbroken.

Thank you!

I wrote a file browser

$
0
0
I recently wrote a file browser for my stock KT3.

Demo:

Unsure of model and how to Jailbreak

$
0
0
Hi! I'm new to the forums. I'm unsure of the model of Kindle I acquired recently and how to jailbreak it.

It's 6", white, no buttons except the power/sleep button, and does NOT have a serial number on the back. The serial number starts with G000 KA05 XXXX XXXX. Firmware version 5.12.1. Wifi Capable (Not 3G).

My research says it the following model...

Kindle E-reader (Previous Generation - 8th) - Black, 6" Display, Wi-Fi, Built-In Audible - Includes Special Offers

Found here... https://www.amazon.com/Amazon-Kindle...017JG41PC?th=1

Someone said something about it being the New Kindle Version 2016? It's NOT a PW3 as far as I can tell.

Just trying to find the right page with info on how to jailbreak. I want the Kindle to be wht "I need", not what Amazon wants it to be. HAHA.

Thanks!

lipc sendEvent to execute binaries still works?

$
0
0
I see for example in:

https://github.com/AerisDev/KindleMe...emenupage.html

Code:

nativeBridge.setLipcProperty("com.lab126.system", "sendEvent", "; su -c 'killall show_alert.sh; /mnt/us/extensions/kindlemenu/bin/sh/show_alert.sh " + status + " 3 &'");
But I've been unable to execute shell scripts / binaries with this approach.

Is there a equivalent way of doing it in recent versions?

Thanks

DX(G) Kindle DXi 2.5.8 to 3.2.1 version

$
0
0
I've just bought Kindle DXi and would like to upgrade it to a 3.2.1 version.
I live outside the US and therefore it is hard for me to get a Kindle 3.
Could anyone help me and provide an update_kindle_3.2.1.bin file?
I believe there is no such kind of file for 3.4.2 version?

Thank you in advance.

updata fireware to 5.12.2, my KV lost JB

$
0
0
this morning, I updata my KV fireware to 5.12.2, lost JB,
search forum, found :Update_jailbreak_hotfix_1.16.N_install.bin
tried hotfix, but it dose not work....:rofl::rofl::rofl::rofl::rofl::rofl::rofl: :rofl::rofl::rofl::rofl::rofl::rofl::rofl:

K3 Dusted off my K3G, any updates to be aware of?

$
0
0
outside of having to manually sideload 3.4.3 OFW, how should i go about making sure everything else is upto date ? (jailbreak/Screensaver Hack/USBNetworking/KUAL)

how do i know which versions my K3G is using?

and yes, i choose to keep it around for the audiobook functionality/MP3 (something i havent double-checked in recent Kindle models, as sofar this is still perfect for me.)
Viewing all 4433 articles
Browse latest View live