Skip to content

Instantly share code, notes, and snippets.

@AtlasTheProto
Created October 3, 2021 02:09
Show Gist options
  • Save AtlasTheProto/1f03c3aeac70c4af5b4f2fcd9b9273c0 to your computer and use it in GitHub Desktop.
Save AtlasTheProto/1f03c3aeac70c4af5b4f2fcd9b9273c0 to your computer and use it in GitHub Desktop.
@echo off
cd C:\path\to\adb\tools
adb start-server
adb forward tcp:9943 tcp:9943
adb forward tcp:9944 tcp:9944
ECHO "To stop the server, hit any key"
PAUSE
adb kill-server
@Emir1996-GitHub
Copy link

this shit is awesome

@louden-preble
Copy link

this shit is awesome

agreed

@testc2n14
Copy link

testc2n14 commented Jun 8, 2024

linux version, you have to be quick , only tested on fedora 40 kde, need this package installed https://packages.fedoraproject.org/pkgs/android-tools/android-tools/

#!/usr/bin/env bash
cd /path/to/adb/tools
adb start-server
adb forward tcp:9943 tcp:9943
adb forward tcp:9944 tcp:9944
printf "Press return to exit..." && read -r
adb kill-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment