Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to launch 'telnet' console in Android Studio device Emulator?

I was watching a video where the instructor is using a console to type in commands that lead straight to the Emulated Android device. I have the emulated device functioning and I am using Android Studio, but I cannot seem to figure out where he starts the console from. Any ideas?

NOTE: The video is not public so I cannot link it.

like image 605
fantom Avatar asked Apr 18 '14 07:04

fantom


People also ask

How do I access the terminal in Android Studio?

Open a command line—from Android Studio, select View > Tool Windows > Terminal—and navigate to the directory where your unsigned APK is located.


2 Answers

I found a solution to my problem. TelNet needs to be enabled in Windows, before you can use it. It is disabled by default I believe. This site has step-by-step instructions for enabling it (it works for all versions of Windows - Vista - 7 - 8 - 8.1). Once TelNet CLIENT is enabled:

  1. Go to -- C:\Program Files (x86)\Android\android-sdk\tools
  2. SHIFT + RIGHT CLICK on an empty space
  3. Click 'Open Command Window Here'
  4. Type in 'telnet localhost 5554' (port of emulated device)

Now you should be connected to the Emulated Android device through TelNet.

like image 26
fantom Avatar answered Sep 18 '22 13:09

fantom


On Windows 10

  1. In Ask me anything type Cmd
  2. Then Right mouse button on Command Prompt and Run as Administrator
  3. Execute this command dism /online /Enable-Feature /FeatureName:TelnetClient you should get following:

enter image description here

  1. Then type in following cd C:\Program Files (x86)\Android\android-sdk\tools
  2. Then type in telnet localhost 5554 You should get this:

enter image description here

If not I have failed you....

Hope this saves you some time.

like image 110
Matas Vaitkevicius Avatar answered Sep 21 '22 13:09

Matas Vaitkevicius