02-28-2011, 04:00 PM | #1531 | |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Quote:
|
|
02-28-2011, 04:14 PM | #1532 |
BLAM!
Posts: 13,479
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@yifanlu: linkjail is ran @rc3, before otaup, at which point we can safely compare the *.bin file against the whitelist, and switch keys if needed via a bind mount. It'll be unmounted @rc5 once the update is finished and the framework restarts.
Basically, we have an open window between the 'Update Your Kindle' click and otaup, and the switch is made during that window. We switch back to default keys when the framework restarts (or when the Kindle reboots, since it's a bind mount). Last edited by NiLuJe; 02-28-2011 at 04:18 PM. |
Advert | |
|
02-28-2011, 04:27 PM | #1533 |
Addict
Posts: 260
Karma: 1645894
Join Date: Feb 2011
Location: Connecticut
Device: Kindle Oasis, Kindle Keyboard, iPhone 13 Pro, iPad Air
|
|
02-28-2011, 04:37 PM | #1534 | |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Quote:
What is the rc level at boot? I always though it was rc3. So the Kindle starts at rcsomething, then when you click update, it switches to rc3, and when it's done it's rc5? So to be clear: Kindle update goes to rc3. Change keys if needed at rc3. Kindle does update & calls rc5. Change keys back at rc5. This way, if a user wants amazon update or hacks, they can just put the update file and it will work (no restart before updating needed?) just like old jailbreaks? Last edited by yifanlu; 02-28-2011 at 04:49 PM. |
|
02-28-2011, 05:00 PM | #1535 |
BLAM!
Posts: 13,479
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@yifanlu:
Yep, that's it . Here's the runlevel breakdown on a K3: rcS is the low level boot runlevel rc0 is the shutdown runlevel rc1 is the single user runlevel (probably useless/broken on a Kindle) rc2 is the diagnostic runlevel rc3 is the updater runlevel rc4 is the reboot diagnostic runlevel rc5 is the boot (framework) runlevel rc6 is the reboot runlevel So, yeah, we're usually on rc5, the update process switches to rc3, and goes back to rc5 once it's done (and when the update script doesn't trigger a reboot, like official updates with kernel updates, in which case it just goes from rc3 to reboot. The 3.x updates are even weirder, they drop a temporary init script early during rc5 that'll call otaup from there, and reboot [ie. that's why there's been a shitload of reboots needed for every 3.x official updates]). Last edited by NiLuJe; 02-28-2011 at 05:07 PM. |
Advert | |
|
02-28-2011, 06:42 PM | #1536 |
Junior Member
Posts: 1
Karma: 10
Join Date: Feb 2011
Device: Kindle
|
Hi everyone,
Sorry if this has been discussed before (I tried to go through the pages to check, but there's 100+!) but has anyone notied reduced battery life with the screensaver hack? My thinking is that if I have too many screensavers, the Kindle has to work too hard to randomise them and so battery life is reduced (however, I also thought that every time the Kindle reboots completely, the random order for screensavers is set once and then followed until the next full reboot). I have roughly 70 screensavers - is this too many? I got a little carried away... [If anyone is interested, my first 63 backgrounds are viewable here: http://dark-angel-13.deviantart.com/...vers-198495691 . Once I get permission from the original artists, I'll probably make them available for download] Thanks for any help you can give me! |
02-28-2011, 06:58 PM | #1537 |
BLAM!
Posts: 13,479
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@AoifeUnudottir: Nope, it'll only churn for a few seconds more at *boot*, so there's virtually no impact.
|
02-28-2011, 07:57 PM | #1538 |
I <3 my Kindle
Posts: 528
Karma: 51332
Join Date: Nov 2010
Location: United States
Device: Kindle 3G + WiFi
|
Then what is pubprodkey01.pem? It's located in the same directory, and as far as I can tell, it's the same as pubhackkey01.pem.
I have 3.1, but it's not jailbroken yet. I just wanted to uninstall the original jailbreak before I install the new one. |
02-28-2011, 08:24 PM | #1539 |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Thanks for teaching me about the kindle runlevels. I have updated my jailbreak to use this method. However, I also went another step and removed a need for whitelists. My script reads the signature for the update before amazon's updater does and changes keys accordantly.
Also, I don't know if this is just on my kindle but running: grep "^fsp /etc/uks/pubprodkey01.pem" /proc/mounts doesn't return anything. On my kindle it's listed as "/dev/root /etc/uks/pubprodkey01.pem ext3 rw,noatime,nodiratime,data=ordered 0 0" so I'm using: grep "/etc/uks/pubprodkey01.pem" /proc/mounts to check. |
02-28-2011, 09:01 PM | #1540 |
BLAM!
Posts: 13,479
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@kranu: That's amazon's default pubkey. It obviously *souldn't* be the same as our custom pubkey on a vanilla Kindle. (Note that the latest version *still* includes the custom one there since it can be moderately useful for FW 3.0.x users).
@yifanlu: Nice! You're mounting from the ext3 / dir, and I'm mounting from the crazy fuse over loop over fat32 userstore, that explains the inconsistency in our proc/mounts outputs . Last edited by NiLuJe; 02-28-2011 at 09:10 PM. |
03-01-2011, 09:07 AM | #1541 |
BLAM!
Posts: 13,479
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Meh. Bump JailBreak to v0.6.N, with a slightly less braindead *uninstall* process (it wasn't switching back to default keys immediately, you'd have to reboot).
|
03-01-2011, 09:12 AM | #1542 |
Addict
Posts: 260
Karma: 1645894
Join Date: Feb 2011
Location: Connecticut
Device: Kindle Oasis, Kindle Keyboard, iPhone 13 Pro, iPad Air
|
|
03-01-2011, 09:29 AM | #1543 |
Groupie
Posts: 157
Karma: 1777
Join Date: Sep 2010
Location: Minsk, Belarus
Device: Kindle 4
|
@NiLuJe: Could you please add this hacks to whitelist:
update_loc_ru update_loc_cz update_loc_cz2 update_loc_pl update_loc_ukr update_loc_bg update_backup update_reginfo |
03-01-2011, 09:31 AM | #1544 |
BLAM!
Posts: 13,479
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@Hollow Man: Only the uninstall script has been changed, you don't need to update anything .
@Sir Alex: Will do, thanks . |
03-01-2011, 09:48 AM | #1545 | |
Addict
Posts: 260
Karma: 1645894
Join Date: Feb 2011
Location: Connecticut
Device: Kindle Oasis, Kindle Keyboard, iPhone 13 Pro, iPad Air
|
Quote:
-HM |
|
Tags |
fonts, fw3, hack, jailbreak 3.1, niluje's hacks, screensavers, usbnet |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
USB network can't connect | Slusho64 | Kindle Developer's Corner | 22 | 01-23-2013 09:00 PM |
USB Network help? | XxKryoxX | Kindle Developer's Corner | 6 | 12-31-2012 08:47 AM |
Is there a hacks to install Time to read feature in other Kindles ? | Biberkopf | Kindle Developer's Corner | 1 | 11-27-2012 04:08 PM |
Hacks DXG Font hacks ? | nimblem | Amazon Kindle | 2 | 09-21-2010 03:35 PM |
Font Hacks | wildchild06241 | Introduce Yourself | 5 | 06-24-2010 08:08 PM |