code: public static AndroidDebugBridge initAdb(File sdk, Duration timeOut) {
      AndroidDebugBridge.initIfNeeded(false);
      File adbPath = FileUtils.getFile(sdk, "platform-tools", "adb");
      AndroidDebugBridge adb = AndroidDebugBridge.createBridge(adbPath.getAbsolutePath(), false);
      waitForAdb(adb, timeOut);
      return adb;
    }
docs: Get an {@link com.android.ddmlib.AndroidDebugBridge} instance given an SDK path.