Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Telnet to Android Emulator with puTTy

I am using windows 7 and I need to Telnet to my android emulator to be able to run a location app. How would I go about doing that? The only tutorials I am finding have been for linux...

like image 389
Tucker Watts Avatar asked Aug 01 '12 13:08

Tucker Watts


People also ask

How do I run an emulator from command prompt?

Starting the emulator Use the emulator command to start the emulator, as an alternative to running your project or starting it through the AVD Manager. Here's the basic command-line syntax for starting a virtual device from a terminal prompt: emulator -avd avd_name [ {- option [ value ]} … ]

How can you send commands to the emulator?

To access the console and enter commands, from a terminal window, use telnet to connect to the console port and provide your authentication token. Each time the console displays OK, it's ready to accept commands. It doesn't have a typical prompt. The emulator window title lists the console port number.

What is Android emulator?

An Android emulator is an Android Virtual Device (AVD) that represents a specific Android device. You can use an Android emulator as a target platform to run and test your Android applications on your PC. Using Android emulators is optional.


2 Answers

Use RAW as Connection Type and not Telnet.
Use the following parameters.
hostname: localhost
port: 5554

like image 164
ichalos Avatar answered Oct 10 '22 12:10

ichalos


You 1st need to enable telnet because windows 7 has it disable by default: http://www.itdoescompute.com/2009/10/29/how-to-enable-telnet-in-windows-7/

Alternative, download Putty @ http://www.putty.org/ and connect to your Android. I believe its "localhost:5554"

You could simply connect to your Android via the ADB Shell instead of online; adb -e shell

How to use ADB Shell: http://www.londatiga.net/it/how-to-use-android-adb-command-line-tool/

Launching an App, Answer by Cristian (view profile) How to start an application using android ADB tools?

like image 33
Dayan Avatar answered Oct 10 '22 13:10

Dayan