title: Android System.loadLibrary stalls while loading native library
body: <p>I have a rather large shared library file (= 12megabytes) which does not contain any JNI code whatsoever.</p>
  
  <p>When calling <code>System.loadLibrary("some_file")</code> the method <strong>never returns</strong> and no relevant output is generated. Also, Windows Taskmanager reports that the emulator instance is not hogging all the CPU power.</p>
  
  <p>I have a class with the following code:</p>
  
  <pre><code>static 
  {
      System.out.println("Trying");
      System.loadLibrary("some_file");
      System.out.println("Works");
  }
  </code></pre>
  
  <p>Here is the output given from LogCat:</p>
  
  <pre><code>I/System.out(534): Trying
  D/dalvikvm(534): Trying to load lib /data/data/app/lib/libsome_file.so 0x40643c20
  </code></pre>
  
  <p>If I upload a native test application that uses the library libsome_file.so and run this from the emulator shell, then the application works.</p>
  
  <p>Is there any method to debug what System.loadLibrary is doing or does anyone have some hints why System.loadLibrary might never return?</p>