#!/usr/bin/env node
const { execSync } = require('child_process')
const path = require('path')

// Get adb path relative to project root
const projectRoot = path.resolve(__dirname, '..')
const adbPath = path.join(projectRoot, 'exe', 'adb', 'adb.exe')

// Connect to Android device via TCP/IP
const deviceIp = '192.168.2.5'
const devicePort = 5555
const command = `"${adbPath}" connect ${deviceIp}:${devicePort}`
const output = execSync(command, { encoding: 'utf-8' })
console.log(output.trim())
