First, open your Android device, connect to your computer, and enable the USB debugging function in the developer options in the settings.
Then, according to the android developer website (http://developer.android.com/tools/device.html) to do some preparation work. In this exampleAndroidmanifest. xml
In the fileAndroid: debuggable = "true"
Add<Application>
Element. Then, use the text editor to write the. Rules file, and then use the CHMOD command.
The last thing to do is to let Ubuntu recognize your Android device. Here, the most important thing is that you must first enter the root mode (if you do not enter the root mode, the following will be displayed ???????????? No permissions ). The access method is to first set your root permission password: sudo passwd Root
Enter your password and then confirm it again. Enter the su command to enter the root mode. You can notice that the @ symbol in front of your user name has an additional root.
Finally, go to the platform-tools directory under the SDK directory of the android development kit you downloaded. Use./ADB kill-server first
Then use./ADB start-Server
Use./ADB Devices
In this way, you can see that your device is connected. Open your ADT and now you can perform real-machine joint debugging.