[HTC Desire X] TheArc:
TUTORIAL ON ADB AND LOGCAT : JDMC : Just doing my contribution.

This is part of TeamAscend, so if you are going to post this Tutorial on other forums please credit me, visit our website : I AM AWESOME!

Hello this is just to teach newbie users on how to install adb and get it working, I will also teach you how to use logcat to help devs with particular issues, okay lets get into it, I will try to be as formal and understandable is I can, I'm still a 15 year old so bare with my written language, not that its bad but we Kiwi's use weird slangs...

Setting up ADB

1. Okay first of all we need to enable Android debugging.

1a. To do so, head into Settings > development and check android debugging, If you're on CM10 + you will need to set Developer Options to "ON" then select Android Debugging.

2. Get a usb adapter and connect it to your pc and connect your device. Let it install drivers "If it's the first time.

​3. Download "SDK Tools". and install it to your desktop for now, you can move it later when you want.

4. Now create a new folder on the desktop and copy all SDK contents into it so its neat and tidy.

5. Open "SDK Manager" and un-check everything except "Android SDK Platform-Tools" and click install packages, wait till it's done then close the window, now you should be in the folder that contains the SDK Tools etc... if you see the "platform-tools" folder you're good to go.

6. Now open the "platform-tools" folder and copy the destination output at the top.

7. Now we need to set the new destination to CMD, click the start button type "cmd".

8. When it opens type "cd" obviously without the ", now hit space and click paste now your command should look something like this...

"cd C:\Users\Your PC name\Desktop\the folder that contains the sdk tools name\platform-tools" here's mine : "cd C:\Users\Lenovo\Desktop\ADB\platform-tools". Now hit enter, your target folder will change.

9. Once its done type " adb devices", make sure your phone is connected! now hit enter and it'll show your device, now you know ADB Is up and running! If doesn't show your device continue to the next step, if it does continue from step "11".

10. Download the HTC drivers and install it, plug your phone again and wait for it to install all components, if MTP fails to install just ignore it. (If your storage is on MTP), now repeat the procedure from "7" again.

11. Now lets Logcat, Now there are 2 different approaches to the logcat, I will be showing you how to do both in this tutorial. Neither one is more correct than the other, it is 100% personal preference. Feel free to try both and see where you get.

LOGCAT PROCEDURE

Doing logcat from inside the CMD window.

1. Make sure your phone is plugged in and debugging is on, now repeat procedure "7" to set target folder if it isn't already done. ie : cd _____________________________ <-- your folder destination.

2. Type "adb logcat" without the " and hit enter. It will then print a list of random writing, whether you understand or not, it doesn't matter, it's not for your use ;).

3. To save the logcat for devs to use, once the logcat is running, please RECREATE the bug/issue you are having. so that it logs the error into it, now to stop the logcat hit "ctrl" + "C".

4. Once this is done please RIGHT CLICK choose "Select All" then press "Enter" on your keyboard this will copy the entire log to the clipboard. You can then paste it into a .txt file to upload and show to devs.

Doing logcat to text file.

1. Now repeat procedure "7" to set target folder if it isn't already done, make sure your phone is plugged in and usb debugging mode is enabled. Once this is done we are going to type the following command "adb logcat > logcat.txt" without the ", this should initiate the logcat, it will appear as though nothing is happening, this is correct!!! So don't worry.

2. Once the logcat is running, please RECREATE the bug/issue you are having. To stop the logcat on your keyboard press "ctrl" + "C".

3. Now you've done logging, note the logcat.txt file will be located in the platform-tools folder, just open it and you will see logcat.txt, upload it for the dev and he/she will investigate.

More ADB Commands for various logcats Thanks to "Tcpaulh" from Modaco.

External adb folder, just needed thanks man : Download

1. radio logcat for Wifi issues.

adb logcat -b radio > radiolog.txt

2. kernel logs.

adb shell

su

cat /proc/kmsg > /sdcard/kmsg.txt

exit

adb pull /sdcard/kmsg.txt

3. kernel message buffer (on request).

adb shell

dmesg > /sdcard/dmesg.txt

exit

adb pull /sdcard/dmesg.txt

This was a tutorial I wrote up for my old device, users found it easier to understand then most, I cleaned this one up a bit which should be suitable for the Desire X, note, I may ask allot of question like a noob on the Q & A but HTC is so confusing. :P

Hopefully, users start using this so we can help out our devs, our sweet sweet devs, so they can whip u some magic.

If this helped, hit the thanks meter, no need for donations.