Search code examples
androidauthenticationcommand-prompt

authentication token does not match ~/.emulator_console_auth_token


I am trying to access android emulator through the console.

Initially I typed telnet localhost 5554,then I see:

screenshot of command line

Next I typed auth auth_token, I got the following error:

screenshot of command line

What is wrong here?

Where can I get this token?

Thanks for the help!


Solution

  • On Windows, the file is located in your current user folder

    c:\Users\<current_user>\.emulator_console_auth_token
    

    You can open the file with notepad and copy the token.

    Now, you can run

    auth <token>