private void placeRelevantAdb() throws ADBManagerException, IOException {
  if (OS.contains("windows")) {
    String windowsPath="/adb/windows/";
    adbPath=copyAssets(windowsPath,"adb.exe");
    copyAssets(windowsPath,"AdbWinApi.dll");
    copyAssets(windowsPath,"AdbWinUsbApi.dll");
  }
 else   if (OS.contains("linux")) {
    String linuxPath="/adb/linux/";
    adbPath=copyAssets(linuxPath,"adb");
  }
 else   if (OS.contains("mac")) {
    String macPath="/adb/mac/";
    adbPath=copyAssets(macPath,"adb");
  }
 else {
    throw new ADBManagerException("Unsupproted operation system.");
  }
}

private void placeRelevantAdb ( ) throws ADBManagerException , IOException { if ( OS . contains ( "windows" ) ) { String windowsPath = "/adb/windows/" ; adbPath = copyAssets ( windowsPath , "adb.exe" ) ; copyAssets ( windowsPath , "AdbWinApi.dll" ) ; copyAssets ( windowsPath , "AdbWinUsbApi.dll" ) ; } else if ( OS . contains ( "linux" ) ) { String linuxPath = "/adb/linux/" ; adbPath = copyAssets ( linuxPath , "adb" ) ; } else if ( OS . contains ( "mac" ) ) { String macPath = "/adb/mac/" ; adbPath = copyAssets ( macPath , "adb" ) ; } else { throw new ADBManagerException ( "Unsupproted operation system." ) ; } }
selecting the relevant executable adb file / s for copying into the application ' s directory
