Skip to content

Instantly share code, notes, and snippets.

@tkhduracell
Last active September 29, 2020 07:39
Show Gist options
  • Save tkhduracell/283b8a7ccb7fa500b61aa536dfc96135 to your computer and use it in GitHub Desktop.
Save tkhduracell/283b8a7ccb7fa500b61aa536dfc96135 to your computer and use it in GitHub Desktop.
Android Dev: Set up really reeeeally low network on your emulator

Open terminal

telnet localhost 5554

As described read the ‘$HOME/.emulator_console_auth_token' file to get the token.

Use auth command to log in

  auth 7kTWr7__________

Use help to get all commands

    event            simulate hardware events
    geo              Geo-location commands
    gsm              GSM related commands
    cdma             CDMA related commands
    crash            crash the emulator instance
    kill             kill the emulator instance
    network          manage network settings
    power            power related commands
    quit|exit        quit control session
    redir            manage port redirections
    sms              SMS related commands
    avd              control virtual device execution
    qemu             QEMU-specific commands
    sensor           manage emulator sensors
    finger           manage emulator finger print
    debug            control the emulator debug output tags
    rotate           rotate the screen clockwise by 90 degrees

Set network speed to 1 KB/s, read more at https://developer.android.com/studio/run/emulator-console.html#netspeed

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