Program: 21811
Project: 21811
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  String libname="String_Node_Str";
  ActivityInfo ai;
  mIMM=(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
  mInputMethodCallback=new InputMethodCallback(this);
  getWindow().takeSurface(this);
  getWindow().takeInputQueue(this);
  getWindow().setFormat(PixelFormat.RGB_565);
  getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_UNSPECIFIED | WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
  mNativeContentView=new NativeContentView(this);
  mNativeContentView.mActivity=this;
  setContentView(mNativeContentView);
  mNativeContentView.requestFocus();
  mNativeContentView.getViewTreeObserver().addOnGlobalLayoutListener(this);
  try {
    ai=getPackageManager().getActivityInfo(getIntent().getComponent(),PackageManager.GET_META_DATA);
    if (ai.metaData != null) {
      String ln=ai.metaData.getString(META_DATA_LIB_NAME);
      if (ln != null)       libname=ln;
    }
  }
 catch (  PackageManager.NameNotFoundException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
  String path=null;
  if ((ai.applicationInfo.flags & ApplicationInfo.FLAG_HAS_CODE) == 0) {
    File libraryFile=new File(ai.applicationInfo.nativeLibraryDir,System.mapLibraryName(libname));
    if (libraryFile.exists()) {
      path=libraryFile.getPath();
    }
  }
  if (path == null) {
    throw new IllegalArgumentException("String_Node_Str" + libname);
  }
  byte[] nativeSavedState=savedInstanceState != null ? savedInstanceState.getByteArray(KEY_NATIVE_SAVED_STATE) : null;
  mNativeHandle=loadNativeCode(path,Looper.myQueue(),getFilesDir().toString(),Environment.getExternalStorageAppFilesDirectory(ai.packageName).toString(),Build.VERSION.SDK_INT,getAssets(),nativeSavedState);
  if (mNativeHandle == 0) {
    throw new IllegalArgumentException("String_Node_Str" + path);
  }
  super.onCreate(savedInstanceState);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  String libname="String_Node_Str";
  ActivityInfo ai;
  mIMM=(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
  mInputMethodCallback=new InputMethodCallback(this);
  getWindow().takeSurface(this);
  getWindow().takeInputQueue(this);
  getWindow().setFormat(PixelFormat.RGB_565);
  getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_UNSPECIFIED | WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
  mNativeContentView=new NativeContentView(this);
  mNativeContentView.mActivity=this;
  setContentView(mNativeContentView);
  mNativeContentView.requestFocus();
  mNativeContentView.getViewTreeObserver().addOnGlobalLayoutListener(this);
  try {
    ai=getPackageManager().getActivityInfo(getIntent().getComponent(),PackageManager.GET_META_DATA);
    if (ai.metaData != null) {
      String ln=ai.metaData.getString(META_DATA_LIB_NAME);
      if (ln != null)       libname=ln;
    }
  }
 catch (  PackageManager.NameNotFoundException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
  String path=null;
  File libraryFile=new File(ai.applicationInfo.nativeLibraryDir,System.mapLibraryName(libname));
  if (libraryFile.exists()) {
    path=libraryFile.getPath();
  }
  if (path == null) {
    throw new IllegalArgumentException("String_Node_Str" + libname);
  }
  byte[] nativeSavedState=savedInstanceState != null ? savedInstanceState.getByteArray(KEY_NATIVE_SAVED_STATE) : null;
  mNativeHandle=loadNativeCode(path,Looper.myQueue(),getFilesDir().toString(),Environment.getExternalStorageAppFilesDirectory(ai.packageName).toString(),Build.VERSION.SDK_INT,getAssets(),nativeSavedState);
  if (mNativeHandle == 0) {
    throw new IllegalArgumentException("String_Node_Str" + path);
  }
  super.onCreate(savedInstanceState);
}