ADB operates mobile phone calls, text messages

Source: Internet
Author: User

When we use the ADB command to operate the phone often error

650) this.width=650; "title=" capture. PNG "alt=" wkiom1vww0th1u0zaacr_r4u4ea848.jpg "src=" http://s3.51cto.com/wyfs02/M01/6C/EE/wKiom1VWw0Th1U0zAACr_ R4u4ea848.jpg "/>

This error is usually the ADB port (5037) is occupied, resulting in the ADB server can not start, the solution is to see which program occupies the ADB debug port, and then end it on the line.

    1. Find out which process is consuming port 5037

Netstat-aon|findstr "5037"

650) this.width=650; "title=" capture. PNG "alt=" wkiol1vwxnbqurqpaajoefqs0ru915.jpg "src=" http://s3.51cto.com/wyfs02/M00/6C/E9/ Wkiol1vwxnbqurqpaajoefqs0ru915.jpg "/>

2. Closing the corresponding process

Can see the PID of 12500 of the program occupies 5037 Port, open Task Manager to find the process corresponding program Sjk_daemon.exe, the process is Jinshan poison PA comes with the Jinshan mobile phone assistant, the force will automatically restart after the end, only remove the Golden Hill poison PA or temporarily close the Golden Hill poison PA

650) this.width=650; "title=" capture. PNG "alt=" wkiom1vwxdwcoplpaaku053sax0576.jpg "src=" http://s3.51cto.com/wyfs02/M02/6C/EF/ Wkiom1vwxdwcoplpaaku053sax0576.jpg "/>


3. Verification

Successful start of ADB server login phone after end process

650) this.width=650; "title=" capture. PNG "alt=" wkiom1vwx3kskmz7aacqv9wzmkw915.jpg "src=" http://s3.51cto.com/wyfs02/M01/6C/EF/ Wkiom1vwx3kskmz7aacqv9wzmkw915.jpg "/>


4. Call and SMS via ADB command

Call command for: ADB shell service call phone 2 s16 888888888888888 (called number)

Where phone indicates the service name, 2 means the call action

You can also use this command:adb shell am start-a android.intent.action.CALL tel:8888888888888

650) this.width=650; "title=" capture. PNG "alt=" wkiom1vw3ppwmdf9aaa-apyz92a815.jpg "src=" http://s3.51cto.com/wyfs02/M01/6C/EF/ Wkiom1vw3ppwmdf9aaa-apyz92a815.jpg "/>

650) this.width=650; "title=" Device-2015-05-16-140508.png "alt=" wkiom1vw3kogsxa9aakorppsetg200.jpg "src="/HTTP/ S3.51cto.com/wyfs02/m00/6c/ef/wkiom1vw3kogsxa9aakorppsetg200.jpg "/>



Texting is a little troublesome, when sending text messages to ensure that the phone screen is open no standby , divided into the following three steps:

1. ADB shell am start-a android.intent.action.sendto-d sms:10086--es sms_body Hello

Open the SMS app with the current focus in the text box

650) this.width=650; "title=" Device-2015-05-16-161254.png "alt=" wkiol1vw_d-hzrvnaad8tidc3ga257.jpg "src="/HTTP/ S3.51cto.com/wyfs02/m02/6c/ea/wkiol1vw_d-hzrvnaad8tidc3ga257.jpg "/>


2.ADB Shell Input keyevent 22 focus go to send button


650) this.width=650; "title=" Device-2015-05-16-161545.png "alt=" wkiol1vw_kpyx8jsaadpnllz17g416.jpg "src="/HTTP/ S3.51cto.com/wyfs02/m01/6c/ea/wkiol1vw_kpyx8jsaadpnllz17g416.jpg "/>


3.ADB Shell Input KeyEvent 66 back to the car, just press the Send button

Send success, receive reply

650) this.width=650; "title=" Device-2015-05-16-161719.png "alt=" wkiom1vw_spzi8zeaalr7cv0oaa434.jpg "src="/HTTP/ S3.51cto.com/wyfs02/m01/6c/f0/wkiom1vw_spzi8zeaalr7cv0oaa434.jpg "/>



This article is from the "dream belongs to the brave-Skywalker" blog, please be sure to keep this source http://tianxingzhe.blog.51cto.com/3390077/1651897

ADB operates mobile phone calls, text messages

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.