如何在linux中访问Android手机linux手机「如何在linux中访问Android手机」
With an Android-powered device, you can develop and debug your Android applications just as you would on the emulator. There are just a few things to do before you can start.
- Declare your application as "debuggable" in your Android Manifest.
In Eclipse, you can do this from the Application tab when viewing the Manifest (on the right side, set Debuggable to true). Otherwise, in the file, add to the element.
- Turn on "U Debugging" on your device.
On the device, go to the home screen, press MENU, select Applications > Development, then enable U debugging.
- Setup your system to detect your device.
- If you're developing on Windows, you need to install a U driver for adb. Follow the steps below for Installing the WinU Driver.
- If you're developing on Mac OS X, it just works. Skip this step.
- If you're developing on Ubuntu Linux, you need to add a rules file:
- Login as root and create this file: .
For Gusty/Hardy, edit the file to read:
For Dapper, edit the file to read:
- Now execute:
- Login as root and create this file: .
You can verify that your device is connected by executing from your SDK tools/ directory. If connected, you'll see the device name listed as a "device."
If using Eclipse, select run or debug as usual. You will be presented with a Device Chooser dialog that lists the available emulator(s) and connected device(s). Select the device to install and run the application there.
安宁版权声明:本网信息来自于互联网,目的在于传递更多信息,并不代表本网赞同其观点。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,并请自行核实相关内容。本站不承担此类作品侵权行为的直接责任及连带责任。如若本网有任何内容侵犯您的权益,请及时联系我们,本站将会在24小时内处理完毕,E-mail:xinmeigg88@163.com