Hi,
I have trouble with monodroid when my app is in /system/app
(in rom)
when android start my apk, logcat have this:
I/ActivityThread( 701): Pub Kiosk.Kiosk.mono.MonoRuntimeProvider.__mono_init__: mono.MonoRuntimeProvider
D/AndroidRuntime( 701): Shutting down VM
W/dalvikvm( 701): threadid=1: thread exiting with uncaught exception (group=0x409f11f8)
E/AndroidRuntime( 701): FATAL EXCEPTION: main
E/AndroidRuntime( 701): java.lang.UnsatisfiedLinkError: Couldn't load monodroid: findLibrary returned null
E/AndroidRuntime( 701): at java.lang.Runtime.loadLibrary(Runtime.java:365)
E/AndroidRuntime( 701): at java.lang.System.loadLibrary(System.java:535)
E/AndroidRuntime( 701): at mono.MonoPackageManager.LoadApplication(MonoPackageManager.java:24)
E/AndroidRuntime( 701): at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:22)
E/AndroidRuntime( 701): at android.app.ActivityThread.installProvider(ActivityThread.java:4237)
E/AndroidRuntime( 701): at android.app.ActivityThread.installContentProviders(ActivityThread.java:3992)
E/AndroidRuntime( 701): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3946)
E/AndroidRuntime( 701): at android.app.ActivityThread.access$1300(ActivityThread.java:123)
E/AndroidRuntime( 701): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
E/AndroidRuntime( 701): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 701): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 701): at android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime( 701): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 701): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 701): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime( 701): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime( 701): at dalvik.system.NativeStart.main(Native Method)
I've try to add monodroid lib to /system/lib
but fail with this log:
I/ActivityThread( 795): Pub Kiosk.Kiosk.mono.MonoRuntimeProvider.__mono_init__: mono.MonoRuntimeProvider
W/dalvikvm( 795): JNI WARNING: received null jstring
W/dalvikvm( 795): in Lmono/android/Runtime;.init:(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/lang/String;[Ljava/lang/String;)V
(GetStringUTFChars)
I/dalvikvm( 795): "main" prio=5 tid=1 NATIVE
I/dalvikvm( 795): | group="main" sCount=0 dsCount=0 obj=0x40a01460 self=0x12800
I/dalvikvm( 795): | sysTid=795 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1074275464
I/dalvikvm( 795): | schedstat=( 41022476 115353080 172 ) utm=0 stm=4 core=0
I/dalvikvm( 795): at mono.android.Runtime.init(Native Method)
I/dalvikvm( 795): at mono.MonoPackageManager.LoadApplication(MonoPackageManager.java:32)
I/dalvikvm( 795): at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:22)
I/dalvikvm( 795): at android.app.ActivityThread.installProvider(ActivityThread.java:4237)
I/dalvikvm( 795): at android.app.ActivityThread.installContentProviders(ActivityThread.java:3992)
I/dalvikvm( 795): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3946)
I/dalvikvm( 795): at android.app.ActivityThread.access$1300(ActivityThread.java:123)
I/dalvikvm( 795): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
I/dalvikvm( 795): at android.os.Handler.dispatchMessage(Handler.java:99)
I/dalvikvm( 795): at android.os.Looper.loop(Looper.java:137)
I/dalvikvm( 795): at android.app.ActivityThread.main(ActivityThread.java:4424)
I/dalvikvm( 795): at java.lang.reflect.Method.invokeNative(Native Method)
I/dalvikvm( 795): at java.lang.reflect.Method.invoke(Method.java:511)
I/dalvikvm( 795): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
I/dalvikvm( 795): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
I/dalvikvm( 795): at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm( 795):
E/dalvikvm( 795): VM aborting
F/libc ( 795): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1)
I/Process ( 143): Sending signal. PID: 795 SIG: 3
I/dalvikvm( 795): threadid=3: reacting to signal 3
I/dalvikvm( 795): Wrote stack traces to '/data/anr/traces.txt'
I/DEBUG ( 637): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 637): Build fingerprint: 'softwinners/apollo_mele/apollo-mele:4.0.4/IMM76D/20120924:eng/test-keys'
I/DEBUG ( 637): pid: 795, tid: 795 >>> Kiosk.Kiosk <<<
I/DEBUG ( 637): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d
I/DEBUG ( 637): r0 00000000 r1 000a65f0 r2 00000000 r3 00000000
[.....]
I/DEBUG ( 637): becaef5c 00000000
I/DEBUG ( 637): becaf060 00000000
I/DEBUG ( 637): becaf064 becaf17c [stack]
I/DEBUG ( 637): becaf068 408a3b5b /system/lib/libdvm.so
I/DEBUG ( 637): becaf06c 408543f3 /system/lib/libdvm.so
I/DEBUG ( 637): #01 becaf070 00000000
I/DEBUG ( 637): becaf074 4085441f /system/lib/libdvm.so
I/Process ( 143): Sending signal. PID: 795 SIG: 3
I/dalvikvm( 795): threadid=3: reacting to signal 3
I/dalvikvm( 795): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 143): Sending signal. PID: 795 SIG: 3
I/dalvikvm( 795): threadid=3: reacting to signal 3
I/dalvikvm( 795): Wrote stack traces to '/data/anr/traces.txt'
I/ActivityManager( 143): Process Kiosk.Kiosk (pid 795) has died.
W/ActivityManager( 143): Force removing ActivityRecord{4120ec30 Kiosk.Kiosk/cisviewer.kiosk}: app died, no saved state
Any help ?
Best regards (sorry for my bad english ;))