Android : connecting to AVD using TELNET

TELNET is a A terminal emulation program for TCP/IP networks such as the Internet. Telnet               provided access to a command-line interface on a remote host. Most network equipment and operating systems with a TCP/IP stack support a Telnet service for remote configuration. The Telnet program runs on your computer and connects your PC to a server on the network. You can then entercommands through the Telnet program and they will be executed as if you were entering them directly on the server console. This enables you to control the server and communicate with other servers on the network.

So we can use telnet to connect to the Android Virtual Device (AVD) or the android emulator and perform certain operations that deal with certain environmental values and settings. Here the AVD is running as a localhost. So before connecting, note down the port at which it is running. Generally the top of the AVD gives the port number. Eg. my AVD runs on 5554.

to connect to the  in the terminal use the command:

telnet localhost 5554

if connected successfully  an OK message should be displayed.he various operations that can be performed are-

1. To toggle between the speed of the Internet connection use:
                 network speed edge
    the result is that the network connection is now slow and can be seen on the avd with e marked     with the data pack symbol.
To get the full connection speed type
                network speed full

2.Sending SMS message . you can send to the avd messages :
the syntax is
“sms send <sender’s phone number> <message>”
Eg.   sms send 1234000000  this is good.
This will cause a message to appear in the avd from the phone 123400000 with the message “this     is good”.

3.The charging indicator can be changed to show the amount of charging done including  o for          full. All the input taken is in terms of percentages.

Eg.   power 50  will make the charging to 50%
power 73  will make the charging to 73%

4.  the   help  command will provide a list of  all the operations that can be performed along with        their  option if any. The others include operations like fixing the location(GPS COORDINATE) of        the AVD by using the  geo fix  command, or kill   command to terminate the instance of the            emulator

Here is a summary of the commands and its use:

 help|h|?         print a list of commands
    event            simulate hardware events
    geo              Geo-location commands
    gsm              GSM related commands
    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              manager virtual device state
    window           manage emulator window

 

 

SOURCE : Webopedia , coursera

Advertisements

akshay pai

I am a data science engineer and I love working on machine learning problems. I have experience in computer vision, OCR and NLP. I love writing and sharing my knowledge with others. This is why I created Source Dexter. Here I write about Python, Machine Learning, and Raspberry Pi the most. I also write about technology in general, books and topics related to science. I am also a freelance writer with over 3 years of writing high-quality, SEO optimized content for the web. I have written for startups, websites, and universities all across the globe. Get in Touch! We can discuss more.

3 thoughts on “Android : connecting to AVD using TELNET

  • July 17, 2014 at 8:13 am
    Permalink

    It’s impressive that you are getting ideas from this post as well as from our argument made
    at this time.

    Reply
    • August 3, 2015 at 1:48 am
      Permalink

      Thank you ,been studding nonstop for 2 years , I did a g search on how to manage tcp and telnet , it brought me to you.

      Reply
  • August 3, 2015 at 1:40 am
    Permalink

    If there is a rasberry PI acting as my host it is planted without my nolage i have been trying to shutdown a remote hacker for 2 years I ment cybor stalker! I can’t write the first command , i just lurned about TCP and telnet and just want to know how to stop there access. They must be busy, are i couldn’t write this

    Reply

Leave a Reply

Advertisements
%d bloggers like this: