@SuppressWarnings("deprecation") public static boolean install(Context context,String destDir,String filename){
  try {
    File f=new File(context.getDir(destDir,Context.MODE_PRIVATE),filename);
    if (f.exists()) {
      Log.d(TAG,"binary has existed");
      return false;
    }
    copyAssets(context,filename,f,"0755");
    return true;
  }
 catch (  Exception e) {
    Log.e(TAG,"installBinary failed: " + e.getMessage());
    return false;
  }
}

@ SuppressWarnings ( "deprecation" ) public static boolean install ( Context context , String destDir , String filename ) { try { File f = new File ( context . getDir ( destDir , Context . MODE_PRIVATE ) , filename ) ; if ( f . exists ( ) ) { Log . d ( TAG , "binary has existed" ) ; return false ; } copyAssets ( context , filename , f , "0755" ) ; return true ; } catch ( Exception e ) { Log . e ( TAG , "installBinary failed: " + e . getMessage ( ) ) ; return false ; } }
install specified binary into destination directory .
