[Android] real machine debugging

Source: Internet
Author: User

After searching, there are n methods:

Http://www.eoeandroid.com/thread-30252-1-1.html

1. [show the feasibility]

In eclipse, select window-show view-other-Android-devices.
When the device icon appears, you can see the logcat information...

 

2. Open ddms and click the process under a real machine to have logcat information...

 

3. Open CMD and enter the tools directory (if the environment is configured, the path will not matter)
Input: ADB kill-Server
Enter ADB devices.
The current devices information will be listed. If the real machine is connected, the information will be displayed.
You can also use ADB logcat> log.txt to input loginformation to the log.txt file in toolslogs (updated in real time)

 

IV,

Problem: after connecting the mobile phone to the computer, make sure that the driver is installed and the debug mode is enabled. The process information is displayed in ddms, but no information is output in logcat.
Cause: logcat is disabled by default in some rom
Problem description: In ddms, the display of the device name as a question mark does not affect, that is, the display of ADB get-serialno as a question mark does not affect.
Solution:
1. Root permission required (not required for some rom)
2. Open logcat and set the level
ADB Shell
Echo 1>/sys/kernel/logger/log_main/enable // here is a comment, write 1 to the switch file, 1 to open, 0 to off
Echo 2> In/sys/kernel/logger/log_main/Priority //, the comment is used to write level 2 to the priority file.
3. Restart ADB. If eclipse is used, disable eclipse, restart ADB, and then start eclipse.
ADB kill-Server
ADB start-Server
4. At this time, 70% of logcat should work properly. If logcat still does not work at this time, update ADB (only one command, no need to connect to the Internet, and the execution is completed soon)
Android update ADB
5. Repeat Step 1. At this time, the 3rd logcat should work properly.
6. If logcat still does not work
Find the android directory in your home directory, for example, C: \ Documents and Settings \ lypoint \. Android.
Find the adb_usb.ini file in this directory. The content of the file is only three lines by default, all of which are comments. Add a line after it and the content is 0x12d1.
7. Repeat Step 3. At this time, 90% of logcat should work properly.
8. To be continued...
9.g ke studio original www.gker.net, reprinted please note.

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.