Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 891
Sai Raman Kilambi Avatar asked Dec 24 '22 04:12

Sai Raman Kilambi


2 Answers

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>
like image 198
Daniel Puiu Avatar answered Dec 28 '22 07:12

Daniel Puiu


Just copy the token from inside the file .emulator_console_auth_token and run the command

auth your-token-here

In order to check if everything went well just run the "help" command, you'll see much more commands available on the list. I don't know if it's the best bet to solve this problem but, this solution worked for me.

like image 24
Bruno Ferrari Avatar answered Dec 28 '22 07:12

Bruno Ferrari