[Android Q&A, Help & Troubleshooting] PerecFX:
Sorry in advance if post is not belongs to this forum..

I try to make android java app that uses webkit browser component but in slight different way. My primary goal is to modify the webkit WebViewCore java class method so my android application uses my own WebView which derived from modified WebViewCore and acts as I wish. The problel is that WebViewCore and entire bunch of related classes is not part of public SDK.

So far I tried:

- replaced android.jar from SDK in my project with "full" version (framework.jar)

- copied entire webkit java classes from Android OS to my project and modified the method as I need.

- included in lib/armeabi the libwebcore.so and libchrome_net.so (these I grabbed from rooted phone which I gonna to use for experiments)

- compiled and created apk file with libs included (in the code java layer calls my own libs using System.loadLibrary(..))

- application crashes on launch on device with:

04-18 10:39:23.451: D/dalvikvm(8214): Trying to load lib /data/data/com.tester.webtest/lib/libwebcore2.so 0x2bb4a1c8
04-18 10:39:23.511: D/dalvikvm(8214): Added shared lib /data/data/com.tester.webtest/lib/libwebcore2.so 0x2bb4a1c8
04-18 10:39:23.521: D/dalvikvm(8214): Trying to load lib /data/data/com.tester.webtest/lib/libchromium_net2.so 0x2bb4a1c8
04-18 10:39:23.531: D/dalvikvm(8214): Added shared lib /data/data/com.tester.webtest/lib/libchromium_net2.so 0x2bb4a1c8
04-18 10:39:23.541: D/dalvikvm(8214): No JNI_OnLoad found in /data/data/com.tester.webtest/lib/libchromium_net2.so 0x2bb4a1c8,

skipping init
04-18 10:39:23.551: D/dalvikvm(8214): Trying to load lib /data/data/com.tester.webtest/lib/libwebcore2.so 0x2bb4a1c8
04-18 10:39:23.551: D/dalvikvm(8214): Shared lib '/data/data/com.tester.webtest/lib/libwebcore2.so' already loaded in same CL

0x2bb4a1c8
04-18 10:39:23.551: D/dalvikvm(8214): Trying to load lib /data/data/com.tester.webtest/lib/libchromium_net2.so 0x2bb4a1c8
04-18 10:39:23.551: D/dalvikvm(8214): Shared lib '/data/data/com.tester.webtest/lib/libchromium_net2.so' already loaded in same CL

0x2bb4a1c8
04-18 10:39:23.561: W/dalvikvm(8214): No implementation found for native Lcom/tester/webkit/JWebCoreJavaBridge;.nativeConstructor

()V
04-18 10:39:23.561: W/dalvikvm(8214): threadid=14: thread exiting with uncaught exception (group=0x2b4d61f8)
04-18 10:39:23.561: E/AndroidRuntime(8214): FATAL EXCEPTION: WebViewCoreThread
04-18 10:39:23.561: E/AndroidRuntime(8214): java.lang.UnsatisfiedLinkError: nativeConstructor
04-18 10:39:23.561: E/AndroidRuntime(8214):	at com.tester.webkit.JWebCoreJavaBridge.nativeConstructor(Native Method)
04-18 10:39:23.561: E/AndroidRuntime(8214):	at com.tester.webkit.JWebCoreJavaBridge.<init>(JWebCoreJavaBridge.java:66)
04-18 10:39:23.561: E/AndroidRuntime(8214):	at com.tester.webkit.BrowserFrame.<init>(BrowserFrame.java:237)
04-18 10:39:23.561: E/AndroidRuntime(8214):	at com.tester.webkit.WebViewCore.initialize(WebViewCore.java:236)
04-18 10:39:23.561: E/AndroidRuntime(8214):	at com.tester.webkit.WebViewCore.access$1(WebViewCore.java:230)
04-18 10:39:23.561: E/AndroidRuntime(8214):	at com.tester.webkit.WebViewCore$WebCoreThread$1.handleMessage

(WebViewCore.java:705)
04-18 10:39:23.561: E/AndroidRuntime(8214):	at android.os.Handler.dispatchMessage(Handler.java:99)
04-18 10:39:23.561: E/AndroidRuntime(8214):	at android.os.Looper.loop(Looper.java:137)
04-18 10:39:23.561: E/AndroidRuntime(8214):	at com.tester.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:748)
04-18 10:39:23.561: E/AndroidRuntime(8214):	at java.lang.Thread.run(Thread.java:856)

Maybe I am completely in a wrong direction?

What should I do for making my own independent version of webkit, so I can install it with my application on specific phone without breaking other apps (browsers) behaviour?