library/src/main/java/com/coolerfall/daemon/Command.java
@SuppressWarnings("deprecation")
	public static boolean install(Context context, String destDir, String filename) {
		String binaryDir = "armeabi";

		String abi = Build.CPU_ABI;
		if (abi.startsWith("armeabi-v7a")) {
			binaryDir = "armeabi-v7a";
		} else if (abi.startsWith("x86")) {
			binaryDir = "x86";
		}

		/* for different platform */
		String assetfilename = binaryDir + File.separator + 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, assetfilename, 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) {
		String binaryDir = "armeabi";

		String abi = Build.CPU_ABI;
		if (abi.startsWith("armeabi-v7a")) {
			binaryDir = "armeabi-v7a";
		} else if (abi.startsWith("x86")) {
			binaryDir = "x86";
		}

		/* for different platform */
		String assetfilename = binaryDir + File.separator + 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, assetfilename, f, "0755");
			return true;
		} catch (Exception e) {
			Log.e(TAG, "installBinary failed: " + e.getMessage());
			return false;
		}
	}
Install specified binary into destination directory.

@param context  context
@param destDir  destionation directory
@param filename filename of binary
@return true if install successfully, otherwise return false