I was wondering if there is a way to receive an SMS from Android emulator, perhaps on a TCP port. I know it\'s possible to send SMS to emulator by opening a TCP socket on th
Friend, refer to this answer provided in a blog (with additional info from authentication token does not match ~/.emulator_console_auth_token)
Just connect the emulator using telnet and there we can emulate SMS. Below are the steps to emulate SMS:
Step 1: Start the emulator (with any desired options). Open a new terminal / command shell and type :
adb devices
Note the number after emulator (emulator-5554). This is the port number.
Step 2: Connect to the console using the telnet command:
telnet localhost 5554
Step 3: You will then need to authenticate the session. Find the auth_token in ~/.emulator_console_auth_token and copy the text in the file. Return to the telnet console and enter:
auth {contents_of_token_file}
Step 4: After you have authenticated the shell you can emulate SMS with the command:
sms send
For More Info Refer to this link
If you send SMS from the emulator, see this http://mobiforge.com/developing/story/sms-messaging-android