03-28-2023, 04:59 PM | #1 |
Developer
Posts: 29
Karma: 15056
Join Date: Mar 2023
Device: Kindle Paperwhite 3G (Keyboard), Used
|
How to create a BIN update file from a developer keystore?
Hello,
I've recently been trying to build a Kindlet. I have my azw2 file and my developer.keystore file, but I was wondering how I can merge it with the existing developer.keystore on my device through an update. I've tried USB Networking and Lauchpad, both of which unfortunately do not work for me. I have a Kindle 3G. Thank you in advance! |
03-28-2023, 08:02 PM | #2 |
Junior Member
Posts: 8
Karma: 84
Join Date: Mar 2023
Device: Kindle Paperwhite 2
|
It's recommended to just use the
Code:
dktest Code:
ditest Code:
dntest |
Advert | |
|
03-28-2023, 08:11 PM | #3 |
Junior Member
Posts: 8
Karma: 84
Join Date: Mar 2023
Device: Kindle Paperwhite 2
|
Ok my last message didn't post for some reason but anyways; you should really just use the merged developer keystore (https://www.mobileread.com/forums/sh...d.php?t=152294) and use the "test" keys in it because it gets installed with the jailbreak for everyone.
|
03-28-2023, 08:25 PM | #4 |
Developer
Posts: 29
Karma: 15056
Join Date: Mar 2023
Device: Kindle Paperwhite 3G (Keyboard), Used
|
Hi,
Thank you for your quick response! I am already using the merged keystore, and I did install the Dev Certificates with MKK, however it still does not work. |
03-29-2023, 02:52 PM | #5 |
Developer
Posts: 29
Karma: 15056
Join Date: Mar 2023
Device: Kindle Paperwhite 3G (Keyboard), Used
|
Hi,
I figured it out (here's my code to build the update). Thanks! Edit: My fixes didn't seem to work Last edited by mrfakename; 04-25-2023 at 04:45 PM. Reason: Change formatting |
Advert | |
|
03-30-2023, 12:20 PM | #6 |
BLAM!
Posts: 13,494
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
You should *absolutely* not need to use a custom keypair, and doing so will only spell trouble for you (maintenance and support-wise) down the line .
Check how KUAL itself is built for reference (or @ixtab's Collection Manager). |
03-30-2023, 12:22 PM | #7 |
BLAM!
Posts: 13,494
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Specifically, on the Java side, for ant: https://bitbucket.org/ixtab/kindlela...ild.properties
And on the Kindle side, for KindleTools: https://bitbucket.org/ixtab/kindlela...ild-updates.sh |
04-25-2023, 05:31 PM | #8 |
Developer
Posts: 29
Karma: 15056
Join Date: Mar 2023
Device: Kindle Paperwhite 3G (Keyboard), Used
|
Hello!
(I haven't been working on my Kindlet for a while because my device broke, but I'm trying again now!) I'm unable to install my Kindlet because I keep getting an error message about the Kindlet not being signed by a registered developer. I've tried using several different keystores, but none of them work. - I tried the merged developer keystore, but got the same error message - I tried KindleNote's keystore (I have KindleNote installed, so the same keystore should work, right?) - https://github.com/proDOOMman/Kindle...aster/keystore - but still got the same error - I tried KUAL's keystore (https://bitbucket.org/ixtab/kindlela...loper.keystore) but got the same error. Any assistance would be greatly appreciated. |
04-25-2023, 05:36 PM | #9 |
BLAM!
Posts: 13,494
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
There may be weird Java caching involved... somewhere, so, make sure you delete the Kindlet *from the UI* before replacing it, and I would add a reboot in the mix just to be safe.
If you've got KUAL running and you sign stuff as we do like I linked above, there's no reason for it not to work. |
04-26-2023, 07:30 PM | #10 |
Developer
Posts: 29
Karma: 15056
Join Date: Mar 2023
Device: Kindle Paperwhite 3G (Keyboard), Used
|
Hi @NiLuJe,
Thank you so much for your assistance! I've tried deleting the app from the UI, restarting the Kindle, and copying the azw2 back onto the device, but I'm still getting the same message ("The title is not signed by a registered developer.") KUAL and KindleNote continue to launch properly. |
04-26-2023, 11:52 PM | #11 |
BLAM!
Posts: 13,494
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Then you might be signing it wrong?
(I don't do java, but I imagine there's a way to check how a jar is signed?) Last edited by NiLuJe; 04-29-2023 at 12:05 PM. |
04-28-2023, 06:50 PM | #12 |
Developer
Posts: 29
Karma: 15056
Join Date: Mar 2023
Device: Kindle Paperwhite 3G (Keyboard), Used
|
Thank you for your suggestion @NiLuJe!
I'm a complete beginner at Java, but I did a basic internet search and found the "jarsigner" command. Here's my output: Code:
% jarsigner -verify kindlet.azw2 jar verified. Warning: This jar contains entries whose certificate chain is invalid. Reason: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target This jar contains entries whose signer certificate is self-signed. The DSA signing key has a keysize of 1024 which is considered a security risk. This key size will be disabled in a future update. This jar contains signatures that do not include a timestamp. Without a timestamp, users may not be able to validate this jar after any of the signer certificates expire (as early as 2025-09-12). Re-run with the -verbose and -certs options for more details. Here is my script to build + sign the jar: Code:
KEYSTORE=developer.keystore JAR=kindlet.azw2 MANIFEST=main.manifest ant jar cp HelloWorld.jar $JAR jarsigner -keystore $KEYSTORE -storepass password $JAR dktest jarsigner -keystore $KEYSTORE -storepass password $JAR ditest jarsigner -keystore $KEYSTORE -storepass password $JAR dntest |
04-29-2023, 04:09 AM | #13 |
Evangelist
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
This is the script I used some time ago when I wrote some kindlets. Try it out.
|
Tags |
certificate, kindlet |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Jailbroken Kindle won't accept a legit .bin update file | Ruskie_it | Kindle Developer's Corner | 2 | 10-31-2020 10:33 AM |
Merged Developer Keystore | PoP | Kindle Developer's Corner | 94 | 06-30-2016 11:08 AM |
Kindle developer keystore resetting every reboot? | cyclops0000 | Kindle Developer's Corner | 7 | 12-29-2014 01:33 PM |
Merged developer.keystore deleted after internet connection | spl0it | Kindle Developer's Corner | 15 | 07-19-2012 10:42 AM |
Firmware Update Installing 2.5 Update bin file | Sheikspeare | Amazon Kindle | 13 | 05-02-2010 12:40 PM |