library/src/main/java/com/coolerfall/daemon/Command.java
public static void copyAssets(Context context, String assetsFilename, File file, String mode)
		throws IOException, InterruptedException {
		AssetManager manager = context.getAssets();
		final InputStream is = manager.open(assetsFilename);
		copyFile(file, is, mode);
	}
public static void copyAssets(Context context, String assetsFilename, File file, String mode)
		throws IOException, InterruptedException {
		AssetManager manager = context.getAssets();
		final InputStream is = manager.open(assetsFilename);
		copyFile(file, is, mode);
	}
copy file in assets into destination file

@param context        context
@param assetsFilename file name in assets
@param file           the file to copy to
@param mode           mode of file
@throws IOException
@throws InterruptedException