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