[Galaxy S 4 Themes and Apps] sorg:
Of course i know it. I've fixed all problematic static initializations in framework. Now i don't have any JNI errors while compiling in ART compiler, but at the end i have unclear exception:

I/Process ( 1063): Sending signal. PID: 1063 SIG: 3
I/dalvikvm( 1063): threadid=3: reacting to signal 3
F/libc ( 7640): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 7640 (main)
I/SELinux ( 348): Function: selinux_android_load_priority [0], There is no sepolicy file.
I/SELinux ( 348):
I/SELinux ( 348): Function: selinux_android_load_priority [1], There is no sepolicy version file.
I/SELinux ( 348):
I/SELinux ( 348): Function: selinux_android_load_priority , loading version is VE=SEPF_SHV-E330S_4.4.2_0011
I/SELinux ( 348):
I/SELinux ( 348):
I/SELinux ( 348): get_selabel_handle: file_contexts is loaded from /file_contexts
I/DEBUG ( 348): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 348): Build fingerprint: 'samsung/ks01ltexx/ks01lte:4.4.2/KOT49H/I9506XXUCNI1:user/release-keys'
I/DEBUG ( 348): Revision: '13'
I/DEBUG ( 348): pid: 7640, tid: 7640, name: main >>> /system/bin/dex2oat <<<
I/DEBUG ( 348): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
I/DEBUG ( 348): r0 84000000 r1 c2000000 r2 fffffeb4 r3 00000000
I/DEBUG ( 348): r4 ad5fa778 r5 00000000 r6 300200c2 r7 2c80e308
I/DEBUG ( 348): r8 b6f063b8 r9 00000000 sl 00000001 fp 00000000
I/DEBUG ( 348): ip b6f00828 sp beffe760 lr b6ea5197 pc b6ea4fcc cpsr 80070030
I/DEBUG ( 348): d0 0000001100000010 d1 0000001300000012
I/DEBUG ( 348): d2 0000001500000014 d3 0000001700000016
I/DEBUG ( 348): d4 47f0464102c4f8df d5 0000000000000000
I/DEBUG ( 348): d6 0000000000000000 d7 0000000000000000
I/DEBUG ( 348): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 348): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 348): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 348): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 348): d16 0000000100000000 d17 0000000300000002
I/DEBUG ( 348): d18 0000000500000004 d19 0000000700000006
I/DEBUG ( 348): d20 0000000900000008 d21 0000000b0000000a
I/DEBUG ( 348): d22 0000000d0000000c d23 0000000f0000000e
I/DEBUG ( 348): d24 0000000000000000 d25 0000000000000000
I/DEBUG ( 348): d26 0000000000000000 d27 0000000000000000
I/DEBUG ( 348): d28 0000000000000000 d29 0000000000000000
I/DEBUG ( 348): d30 0000000000000000 d31 0000000000000000
I/DEBUG ( 348): scr 60000010
I/DEBUG ( 348):
I/DEBUG ( 348): backtrace:
I/DEBUG ( 348): #00 pc 00075fcc /system/lib/libart-compiler.so (art::MIRGraph::DoConstantPropogation(art::BasicBlock*)+67)
I/DEBUG ( 348): #01 pc 00076193 /system/lib/libart-compiler.so (art::MIRGraph::PropagateConstants()+158)
I/DEBUG ( 348): #02 pc 00077eb3 /system/lib/libart-compiler.so
I/DEBUG ( 348): #03 pc 000782d3 /system/lib/libart-compiler.so (ArtQuickCompileMethod+34)
I/DEBUG ( 348): #04 pc 0008a551 /system/lib/libart-compiler.so (art::CompilerDriver::CompileMethod(art::DexFile::CodeItem const*, unsigned int, art::InvokeType, unsigned short, unsigned int, _jobject*, art::DexFile const&, art::DexToDexCompilationLevel)+1200)
I/DEBUG ( 348): #05 pc 0008a9d7 /system/lib/libart-compiler.so (art::CompilerDriver::CompileClass(art::ParallelCompilationManager const*, unsigned int)+494)
I/DEBUG ( 348): #06 pc 0007f39d /system/lib/libart-compiler.so
I/DEBUG ( 348): #07 pc 001a8eed /system/lib/libart.so (art::ThreadPool::Wait(art::Thread*, bool, bool)+136)
I/DEBUG ( 348): #08 pc 0008299f /system/lib/libart-compiler.so
I/DEBUG ( 348): #09 pc 00089d09 /system/lib/libart-compiler.so (art::CompilerDriver::Compile(_jobject*, std::vector<art::DexFile const*, std::allocator<art::DexFile const*> > const&, art::ThreadPool&, art::base::TimingLogger&)+224)
I/DEBUG ( 348): #10 pc 00089e1d /system/lib/libart-compiler.so (art::CompilerDriver::CompileAll(_jobject*, std::vector<art::DexFile const*, std::allocator<art::DexFile const*> > const&, art::base::TimingLogger&)+60)
I/DEBUG ( 348): #11 pc 00008d03 /system/bin/dex2oat
I/DEBUG ( 348): #12 pc 0000b9c5 /system/bin/dex2oat
I/DEBUG ( 348): #13 pc 0000e513 /system/lib/libc.so (__libc_init+50)
I/DEBUG ( 348): #14 pc 00005060 /system/bin/dex2oat
I/DEBUG ( 348):

Google gives some links about similar problems, but don't give any exact solution.

I'm trying it on my SHV-E330S which is very close to SM-G900F by hardware and firmware - so i have more freedom in libraries swapping. I even compiled ART separately from AOSP sources and got the same result. May be some other libraries need to be swapped, but i couldn't track which one.

Actually i was just curious about porting ART feature, without any practical use because it's not compatible with xposed framework. May be i stop now. I'm tired and ran out of ideas...