[HTC One X] tim687:
Obtaining device logs

Obtain (boot-) logs

There are a few ways to obtain the bootlogs when the device doesn't (fully) boot.

A recovery with file manager is required (most TWRP's have it)

Get kernel logs:

#1: Boot into recovery (press and hold volume down and press the power button). Then with the volume buttons go down to recovery and press the power button.

#2: Make sure that the sd card is mounted, if not go to the mount menu of TWRP.

#3: Go to Advanced -> File Manager, then navigate to /proc and copy the files last_log and last_kmsg to the sdcard (/sdcard).

#4: Go back to the mount menu, and Enable MTP. (I need to Disable MTP unplug the USB, wait ~5 seconds, Enable MTP and plug the USB in the computer, for the device to show)

#5: Copy the last_log and last_kmsg to your computer and send them in this thread to me (not the actual text, but the files themselves, pastebin is also allowed).

#6: Describe your problem! What is the device doing? Is it still showing the HTC logo, is the CM animation still running or did it froze?

#7: Make sure that you are able to test a new build and be able to reproduce the crash

Get ADB access

If you need to clean flash a new version of this rom, please do that first, so that the files you are placing inside the /data partition don't get erased.

Locate the adbkey.pub file on your computer.

On Windows it is in C:\Users\<username>\.android\​

On Unix (Linux and OSX) it is located under ~/.android​

#1: Make the following directory tree:

misc\adb​

#2: In the adb folder create a file named "adb_keys"

#3: Open the file with any editor.

#4: Paste the contents of the adbkey.pub file in the adb_keys file. If you want to authorize multiple computers, just paste the next key in the line below the first key.

#5: Save the file :p

#6: Boot into recovery (press and hold volume down and press the power button). Then with the volume buttons go down to recovery and press the power button.

#7: Go back to the 'Mount' menu, and Enable MTP. (I need to Disable MTP unplug the USB, wait ~5 seconds, Enable MTP and plug the USB in the computer, for the device to show)

#8: Make sure that the sd card and /data is mounted, if not go to the mount menu of TWRP.

#9: Copy the directory tree you've created in #1 to the sd card of your device.

#10: Go to 'Advanced' -> 'File Manager', then navigate to '/sdcard' and click on the 'misc' folder, then click on 'select' -> 'Copy Folder' -> 'data' -> 'Select' and swipe to confirm.

#11: To start the logs to appear on your screen enter the following command (the same for Windows and Unix users, it requires the ADB binary and executable folder to be in your path):

adb logcat && adb logcat​

You might want to save the log to a (text-) file, you can do that by changing the command to (note: If the file exists, it gets overwritten!)

(adb logcat && adb logcat) > adb_bootlog.txt​

#12: Post the logfile in this thread (not the actual text, but the file, pastebin is also allowed)

#13: Describe your problem! What is the device doing? Is it still showing the HTC logo, is the CM animation still running or did it froze?

#14: Make sure that you are able to test a new build and be able to reproduce the crash