INNER CODE UNIT · Java

copyFileByCp

Tencent/VasDolly · command/src/main/java/com/tencent/vasdolly/command/Util.java:353

    private static void copyFileByCp(File baseApk, File destApk) {
        try {
            String command = "cp " + baseApk.getAbsolutePath() + " " + destApk.getAbsolutePath();
            Runtime.getRuntime().exec(command);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    /**
     * 使用文件流copy文件
     *
     * @param source
     * @param dest
     * @throws IOException
     */
    public static void copyFileUsingStream(File source, File dest) throws IOException {
        FileInputStream is = null;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…