← back to code snippets


Using Telnet to change the settings on an Android emulated device

Posted on March 5th, 2015 in Android by Graeme

When the android emulator is running, having been launched from eclipse, to change settings on the emulated phone, you can simply use the terminal and telnet:

telnet localhost 5554

This connects you to the port the emulator is running from on localhost - it says the port number in the top toolbar of the emulator.

Then you can run commands from telnet such as these:

power capacity 5

power status not-charging

There’s more somewhere..anyway you can type these commands in, and the emulator reacts…for e.g. ‘power capacity 5’ sets the battery level really low…