Ubuntu uses eclipse to connect a hammer phone for development

Source: Internet
Author: User

The hammer phone I used is the 3G version of the model is SM701.

Step one: Set up your phone for USB debugging

Open Phone Settings-"Advanced Settings-" developer Options-"USB debugging open;

Step Two: Create the Rules file

$lsusb

The above command to find the phone id:29a9:701b

sudo gedit/etc/udev/rules.d/51-android.rules adds the following text to the open file:
subsystem== "USB", attrs{idvendor}== "29a9", attrs{idproduct}== "7019", mode= "0666"
subsystem== "Usb_device", attrs{idvendor}== "29a9", attrs{idproduct}== "7019", mode= "0666"

Note that the above ID is changed based on the previous step of your own phone ID

Step three: Run under Platform-tools

[Email protected]:/home/work/android-sdk-linux/platform-tools#./ADB Kill-server

* Daemon started successfully *
List of devices attached
Plug in your phone, please.

[email protected]:/home/work/android-sdk-linux/platform-tools#./ADB devices

Command enter the opportunity pop-up message box "whether to allow USB debugging", click "OK"

List of devices attached
47a14420 Device
Output above statement indicates successful connection

Eclipse on window-"Show view-" other-"Devices, under the window (Smartisan device has been identified):


Fourth step: Mobile phone synchronization run debugging HelloWorld program

Right-click on the project-"Run as-" Run configurations, set the target in the configuration to the always prompt to pick device (purpose to adjust the operating environment), then click Apply, then click Run, select the mobile device


Click OK, wait a moment the phone appears the following screen



Reference:

Http://www.miui.com/thread-1051309-1-1.html

Ubuntu uses eclipse to connect a hammer phone for development

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.