Thread: JBPatch
View Single Post
Old 10-12-2012, 05:10 AM   #821
arikfunke
Enthusiast
arikfunke is an enigma wrapped up in a mystery.arikfunke is an enigma wrapped up in a mystery.arikfunke is an enigma wrapped up in a mystery.arikfunke is an enigma wrapped up in a mystery.arikfunke is an enigma wrapped up in a mystery.arikfunke is an enigma wrapped up in a mystery.arikfunke is an enigma wrapped up in a mystery.arikfunke is an enigma wrapped up in a mystery.arikfunke is an enigma wrapped up in a mystery.arikfunke is an enigma wrapped up in a mystery.arikfunke is an enigma wrapped up in a mystery.
 
Posts: 36
Karma: 41848
Join Date: Mar 2011
Device: iRex
Quote:
Originally Posted by ixtab View Post
On the Kindle Touch:
- the entire system is based on Concierge OSGi.
Thanks for the extensive explanation. As far as I can tell, K3 does not use OSGi. (Maybe somebody can confirm this?)

If that is indeed the case, I imagine, the JBPatch code would require some more extensive adaptation for the patching class loader to work on K3, right?

In case it helps, on K3 the framework is started as follows:

jvm_opt="$jvm_heap_options \
-Dsun.awt.exception.handler=$EVENT_QUEUE_EXCEPTION_ HANDLER \
-Xbootclasspath/a:$java_locale_data:$java_charset_data \
-Dsun.boot.library.path=$java_home/lib \
-cp $clazzpath:$ebook_home/lib/portability-impl.jar"

app_opt="
-Ddebug=1 \
-Dcheck_comm_stack=true \
-Dsun.net.client.defaultReadTimeout=120000 \
-Dhttp.keepalive.timeout=60000 \
-DUI_TIMEOUT=0 \
-Dhttp.maxConnections=16 \
-Dallow_demo=false \
-Djava.awt.SyncOnPaint=false \
-Dextkeyboard=false \
-Dconfig=$configdir/framework.luigi.conf \
-DPLATFORM_CLASS_FILE=/opt/amazon/ebook/config/platform.conf \
-DENABLE_SEARCH_INDEXING_THREAD=true \
-Dpolicy.home=$securitydir \
-Djava.security.manager \
-Djava.awt.DebugPaint=false \
-DUSE_KWGRAPHICS=false"

opts="$jvm_opt $jit_opt $jvmpihprof_opt $jvmtihprof_opt $debug_opt $app_opt"

app=com.lab126.linux.arm.LuigiServiceProvider

LD_PRELOAD=$java_home/lib/libmicrowindowsawt.so $java $opts $app 2>&1


List of java archive files on the device:
[root@kindle ebook]# find / -name *.jar
/opt/amazon/ebook/booklet/XymlBooklet.jar
/opt/amazon/ebook/booklet/Search.jar
/opt/amazon/ebook/booklet/PictureViewer.jar
/opt/amazon/ebook/booklet/AudioPlayer.jar
/opt/amazon/ebook/booklet/MobiReader.jar
/opt/amazon/ebook/booklet/msp.jar
/opt/amazon/ebook/booklet/AudiblePlayer.jar
/opt/amazon/ebook/booklet/Home.jar
/opt/amazon/ebook/booklet/Browser.jar
/opt/amazon/ebook/booklet/KindletBooklet-1.2.jar
/opt/amazon/ebook/booklet/language.jar
/opt/amazon/ebook/sdk/lib/xercesImpl.jar
/opt/amazon/ebook/sdk/lib/log4j-1.2.15.jar
/opt/amazon/ebook/sdk/lib/xml-apis.jar
/opt/amazon/ebook/lib/framework-impl.jar
/opt/amazon/ebook/lib/json_simple-1.1.jar
/opt/amazon/ebook/lib/KindleDeviceServicesAbstraction-1.0.jar
/opt/amazon/ebook/lib/framework-api.jar
/opt/amazon/ebook/lib/JFEP-0.1.0.jar
/opt/amazon/ebook/lib/xyml.jar
/opt/amazon/ebook/lib/utilities.jar
/opt/amazon/ebook/lib/MobipocketCoreReader.jar
/opt/amazon/ebook/lib/jdbm.jar
/opt/amazon/ebook/lib/KindleDeviceServicesShasta-1.0.jar
/opt/amazon/ebook/lib/lucene-analyzers-2.4.1.jar
/opt/amazon/ebook/lib/portability-impl.jar
/opt/amazon/ebook/lib/KindletImplementation-1.2.jar
/opt/amazon/ebook/lib/ReaderSDK.jar
/opt/amazon/ebook/lib/portability.jar
/opt/amazon/ebook/lib/icu4j.jar
/opt/amazon/ebook/lib/lucene-snowball-2.4.1.jar
/opt/amazon/ebook/lib/lucene-core-2.4.1.jar
/opt/amazon/ebook/lib/kxml2.jar
/opt/amazon/ebook/lib/PDFReader-impl.jar
/opt/amazon/ebook/lib/SearchSDK.jar
/opt/amazon/ebook/lib/KindleGUIAbstraction-1.0.jar
/opt/amazon/ebook/lib/KindleGUIShasta-1.0.jar
/opt/amazon/ebook/lib/backport-util-concurrent-3.1.jar
/opt/amazon/ebook/lib/MobiCore-impl.jar
/opt/amazon/ebook/lib/Kindlet-1.2.jar
/opt/amazon/ebook/lib/json.jar
/opt/amazon/ebook/lib/booklet.jar
/opt/amazon/ebook/lib/KindletBookletDRM-1.0.jar
/opt/amazon/ebook/lib/kindlePageNumbersDeviceReader.jar
/opt/amazon/ebook/lib/Journal-update.jar
/opt/amazon/ebook/lib/mobi8sdk.jar
/opt/amazon/ebook/lib/HTMLReader-impl.jar
/usr/java/lib/jaas.jar
/usr/java/lib/sunrsasign.jar
/usr/java/lib/charsets.jar
/usr/java/lib/security/local_policy.jar
/usr/java/lib/security/US_export_policy.jar
/usr/java/lib/localedata.jar
/usr/java/lib/jce.jar
/usr/java/lib/jsse-cdc.jar
/usr/java/lib/ext/sunjce_provider.jar
/usr/java/lib/basis.jar
arikfunke is offline   Reply With Quote