// Path: opsxpro/src/main/java/com/zzzmode/appopsx/OpsxManager.java
// public static class Config {
// 
//   public boolean allowBgRunning = false;
//   public String logFile;
//   public boolean printLog = false;
//   public boolean useAdb = false;
//   public boolean rootOverAdb = false;
//   public String adbHost = "127.0.0.1";
//   public int adbPort = 5555;
//   Context context;
// }


import android.content.Context;
import android.content.res.AssetFileDescriptor;
import android.os.Build;
import android.text.TextUtils;
import com.zzzmode.android.opsxpro.BuildConfig;
import com.zzzmode.appopsx.OpsxManager.Config;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.security.SecureRandom;
      int len = -1;
      fis = new FileInputStream(srcFile);

      while ((len = fis.read(buff)) != -1) {
        fos.write(buff, 0, len);
      }
      fos.flush();
      fos.getFD().sync();
    } catch (IOException e) {
      e.printStackTrace();
    } finally {
      try {
        if (fos != null) {
          fos.close();
        }
      } catch (IOException e) {
        e.printStackTrace();
      }

      try {
        if (fis != null) {
          fis.close();
        }
      } catch (IOException e) {
        e.printStackTrace();
      }
    }
  }


// Path: opsxpro/src/main/java/com/zzzmode/appopsx/OpsxManager.java
// public static class Config {
// 
//   public boolean allowBgRunning = false;
//   public String logFile;
//   public boolean printLog = false;
//   public boolean useAdb = false;
//   public boolean rootOverAdb = false;
//   public String adbHost = "127.0.0.1";
//   public int adbPort = 5555;
//   Context context;
// }


// Path: opsxpro/src/main/java/com/zzzmode/appopsx/AssetsUtils.java
import android.content.Context;
import android.content.res.AssetFileDescriptor;
import android.os.Build;
import android.text.TextUtils;
import com.zzzmode.android.opsxpro.BuildConfig;
import com.zzzmode.appopsx.OpsxManager.Config;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.security.SecureRandom;

      int len = -1;
      fis = new FileInputStream(srcFile);

      while ((len = fis.read(buff)) != -1) {
        fos.write(buff, 0, len);
      }
      fos.flush();
      fos.getFD().sync();
    } catch (IOException e) {
      e.printStackTrace();
    } finally {
      try {
        if (fos != null) {
          fos.close();
        }
      } catch (IOException e) {
        e.printStackTrace();
      }

      try {
        if (fis != null) {
          fis.close();
        }
      } catch (IOException e) {
        e.printStackTrace();
      }
    }
  }


  static void writeScript(Config config){