• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM/WIP][CM-13.0/LOS-14.1][6.0.1/7.0.1] CM13.1 or LOS 14.1 - HTC One X

tim687

Senior Member
Jun 4, 2013
205
43
0
Nieuw-Vennep
www.timsappstudio.nl
WARNING: This rom is by far not suitable for daily usage and flashing it is at your OWN RISK! (my HTC One X has survived so far :p)

I've compiled a CM-13.0 from for the HOX.
While it is kind off working, it is very unstable.
Butttttt, when it's stable it's damn fast for what I've experienced so far.

What is broken:
  • audio
  • camera
  • wifi
  • gps (needs to be confirmed)
  • bluetooth (needs to be confirmed)
  • installing an app doesn't make the app appear in the launcher
I've attached the GDB debugger to the mediaserver process to start viewing the breakpoints but I didn't succeed.
(for people that are curious, here is the crashlog: http://pastebin.com/KN9s7C7K)
The only way this rom currently boots is when the GDB is attached and I am slowly stepping trough the main_mediaserver.cpp source code. I think this works because the mediaserver get's started too soon, and thus some of the hardware related things are not ready. If only I had the tegra3 source code for the audio.primary.tegra.so and the camera.vendor.tegra.so files. That would make my life a lot easier since I'd have just changed the code to be compatible with Android 6.0.

If you've got a spare HTC One X and you'd like to test and help me out, you can flash this rom and let me know what is working or not.
There is a build running right now and I'll let you know the results when it's finished.

XDA:DevDB Information
[ROM/WIP][CM-13.0/LOS-14.1][6.0.1/7.0.1] CM13.1 or LOS 14.1 - HTC One X, ROM for the HTC One X

Contributors
tim687, DevUt
Source Code: https://gitlab.com/endeavoru

ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.1.x
ROM Firmware Required: HBOOT 1.72.0000 or higher
Based On: CyanogenMod

Version Information
Status: Testing
Current Stable Version: -
Current Beta Version: -

Created 2017-03-02
Last Updated 2017-05-21
 
Last edited:

tim687

Senior Member
Jun 4, 2013
205
43
0
Nieuw-Vennep
www.timsappstudio.nl
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









 
Last edited:
  • Like
Reactions: DeepScred

tim687

Senior Member
Jun 4, 2013
205
43
0
Nieuw-Vennep
www.timsappstudio.nl
Reserved

How to flash:

For full safety, please do a clean flash everytime a new build has come out!

#1: Extract boot.img from the zip.
#2: Flash the zip
#3: Clear data and cache
#4: Restart in fastboot mode and use fastboot flash boot boot.img to flash the boot image
#5 (optionally): follow the steps in the post above to obtain (boot-)logs



Changelog:
 
Last edited:
  • Like
Reactions: DeepScred

Byrkoet

Member
Aug 9, 2012
40
5
0
Yay, I have a One X, would love to try out the rom, although audio, gps and camera are quite a necessity :p I keep wondering, how difficult is it to fix those kinds of issues?
 

DeepScred

Senior Member
Jan 11, 2015
81
32
0
40
ANGERS
Hello,

Really cool what you do, the One X under Marshmallow is extraordinary, you have all my encouragement and I'm looking forward to testing.

I have a question...why not directly compile a Nougat version?