Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-23-2016, 11:44 AM   #1
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
JBpatch - continued

The original project thread is here:
https://www.mobileread.com/forums/sho...d.php?t=175512
The original repository is here:
https://bitbucket.org/ixtab/jbpatcher

The repository of this fork of JBpatch is at:
https://bitbucket.org/knc1-admin/jbpatcher/overview

The Serp project on SourceForge appears to be dead, a backup copy of that code, as of 11.23.2016, is at (no CVS history, code only):
https://github.com/janetizzy/serp
And it appears to be updated for Java8 (which is what firmware 5.8.x is using).

The initial goal of re-opening this dead project:
  • Update the patching classloader for the 5.8 series firmware, if required
    (it may not require any changes - not yet tested).
  • Update the margins patch.
  • Create a patch to take control of OTA downloader, once and forever.
    (Mostly because 5.8.5 can **almost** defeat our current OTA blocker.)
Various tools
Spoiler:

Note 1:
I haven't coded anything in Java for 20 years, help will be require from current Java coders or this project will remain dead.

Note 2 (5.8.5 built for the KT3):
Code:
[root@kindle us]# /usr/java/bin/cvm -version
CVM Capabilities set
java version "1.8.0_06-ea"
Java(TM) SE Embedded Runtime Environment (build 1.8.0_06-ea-b00, profile compact1, headless)
Java HotSpot(TM) Embedded Minimal VM (build 25.06-b00, mixed mode)
Note 3 (procyon-decompiler-0.5.30.jar renamed to procyon.jar and placed in */esys (our extension system's directory) ):
The procyon decompiler, version 0.5.30 requires Java-7 or later to run, so this isn't much of a test, but:
Code:
[root@kindle esys]# /usr/java/bin/cvm -jar procyon.jar
CVM Capabilities set
Usage: <main class> [options] <type names or class/jar files>
  Options:
- - - snip - - -
Drat!
It seems I can't follow our own instructions ( https://github.com/janetizzy/KUAL-buttons ).
Before I screw up our plan again, make things look like this:
Code:
[root@kindle us]# tree esys
esys
├── bin
│   └── tree
├── java
│   ├── bin
│   │   └── procyon.jar
│   └── lib
└── lib

5 directories, 2 files
of course you will need an:
Code:
[root@kindle us]# export PATH=/mnt/us/esys/bin:$PATH
somewhere along the line.
How / If you automate that for ssh logins is up to you (there is a thread on that somewhere - since root's home directory is normally on tmpfs).

tree isn't pre-installed, attached is the one from Debian/Jessie/ARMel, works fine (at least over ssh).
The .bin is to keep the forum uploader happy, you can rename it on the Kindle as shown above.

Note 4: The "original" engima (renamed from enigma-v0.10.4.beta):
*/esys looks like this now:
Code:
[root@kindle esys]# tree .
.
├── bin
│   └── tree
├── java
│   ├── bin
│   │   ├── enigma.jar
│   │   └── procyon.jar
│   └── lib
└── lib

5 directories, 3 files
And for a quick check on that (again, KT3-fm-5.8.5):
Code:
[root@kindle esys]# /usr/java/bin/cvm -cp java/bin/enigma.jar cuchaz.enigma.CommandMain
CVM Capabilities set
command is required
Enigma - 0.10.4 beta
Usage:
	java -cp enigma.jar cuchaz.enigma.CommandMain <command>
	where <command> is one of:
		deobfuscate <in jar> <out jar> [<mappings file>]
		decompile <in jar> <out folder> [<mappings file>]
		protectify <in jar> <out jar>
Note: enigma also has a GUI mode.

Note 5: Going to need readelf for the next script (shown after renaming from readelf.bin to keep the forum uploader happy).
Code:
[root@kindle esys]# tree .
.
├── bin
│   ├── readelf
│   └── tree
├── java
│    ├── bin
│    │    ├── enigma.jar
│    │    └── procyon.jar
│    └── lib
└── lib

More bits and pieces to come as I gather them together.
Attached Files
File Type: jar procyon-decompiler-0.5.30.jar (1.68 MB, 159 views)
File Type: bin tree.bin (74.0 KB, 159 views)
File Type: jar enigma-v0.10.4.beta.jar (5.41 MB, 297 views)
File Type: zip lib-list.zip (1.3 KB, 159 views)
File Type: bin readelf.bin (401.2 KB, 156 views)

Last edited by knc1; 11-27-2016 at 08:54 AM.
knc1 is offline   Reply With Quote
Old 11-26-2016, 10:22 AM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
First post overflow area.

Issues:
IAW forum policy of: "No more public lessons for Amazon/Lab126", example code solutions when found will not be posted here.
  • Patching signed jar files.
    Heard from the author (ixtab) and he doesn't have a clue. Must be a post-doc subject.
  • Dealing with 'protected' execution environments.
    This is for certain one subject that I am not going to give public lessons on to certain commercial groups.

Last edited by knc1; 11-27-2016 at 01:20 AM.
knc1 is offline   Reply With Quote
Advert
Old 03-02-2017, 02:40 PM   #3
gocho8
Junior Member
gocho8 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2017
Device: Kindle PaperWhite 3 (5.8.5 JB)
I havent understood very well but... there is no .azw file to download? Sorry if i am like retard
gocho8 is offline   Reply With Quote
Old 03-02-2017, 03:18 PM   #4
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by gocho8 View Post
I havent understood very well but... there is no .azw file to download? Sorry if i am like retard
This is dead because nobody is interested in working on it.
And it will remain that way until some Java guru shows up here with time on their hands.
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
JBPatch ixtab Kindle Developer's Corner 1860 04-12-2021 05:02 PM
Cannot install JBPatch john4545 Kindle Developer's Corner 3 04-23-2015 10:00 AM
JBPatch 3.x.x cristbo Amazon Kindle 22 01-31-2014 02:23 PM
Continued Problems with Calibre crutledge Sigil 1 05-16-2010 07:09 PM


All times are GMT -4. The time now is 09:32 PM.


MobileRead.com is a privately owned, operated and funded community.