Skip to content

Instantly share code, notes, and snippets.

@whitipet
Created May 24, 2023 18:18
Show Gist options
  • Save whitipet/01310aa801cd322be98746c0297c3698 to your computer and use it in GitHub Desktop.
Save whitipet/01310aa801cd322be98746c0297c3698 to your computer and use it in GitHub Desktop.
Connect adb to the device that acts as a hotspot
adb connect $(route -n get default | grep gateway | awk '{ print $2 }')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment