Adb-setup-1.3

# Verify $adbTest = & "$TargetDir\adb.exe" version 2>$null if ($adbTest -match "Android Debug Bridge") Write-Host "SUCCESS: ADB installed correctly." -ForegroundColor Green else Write-Warning "ADB test failed. Check PATH or file integrity."

function Uninstall-Adb Where-Object $_ -ne $PathEntry ) -join ';' [Environment]::SetEnvironmentVariable("Path", $newPath, "Machine") Write-Host "Removed from PATH." if ($Uninstall) Uninstall-Adb else Install-Adb if (-not $Silent) Write-Host "`nDone. You may need to restart your terminal." -ForegroundColor Yellow Read-Host "Press Enter to exit" adb-setup-1.3

Add-ToSystemPath