Cyanogenmod 12.1 for the HTC One M8s (m8ql_ul)

Search This thread

voidzero

Inactive Recognized Developer
Dec 11, 2007
343
553
The Netherlands
ROM Updated: July 20, 2016 - Update notes
This post Updated: April 24rd, 2016
If you have been here before, or if you know what to do, go right ahead and skip to the last pages for the most recent update notes. Or, if you need a bit of a starting point or got stuck along the way, it might be useful to read the remainder of this post first. Understandably the installation of this ROM didn't immediately go smooth for everyone, so if you run into troubles don't skip to the end but rather spend some time to read through the entire thread. And you can always use the search function. Doing this will probably be quicker than waiting for someone to solve your problem, especially if it's not a new problem. Plowing through the thread is probably the faster alternative.

So that all being said - Hiya! Welcome to the one and only place where you can find info and support for my unofficial port of Cyanogenmod 12.1, for the HTC One M8s. This phone is very different from the M8 and no one really knows why the folks at HTC decided to give it this name; the looks may be similar to both phones, but the M8s comes with an octa-core snapdragon 615, a 13MP camera, and a stronger battery than the M8. Under the hood you can find an msm8939, and unfortunately not as much memory as one would hope. Still, the phone works pretty good, and at least this ROM (in my opinion) is faster and snappier than HTC's original Sense ROM.

Although this ROM is not supported by the Cyanogenmod project in any official capacity, I did get some great help from some of the CM developers and from other people. Special props to @root-expert, @Rashed97, @invisiblek, @intervigil and @uberlaggydarwin for helping, and providing me with some moral support when despair was getting the best of me.

So that all said and done, let's get to it!

Port Information

All the stuff you would hope would work, works: the mobile radio, camera, wifi, GPS, NFC, audio, notification LED, sensors, Bluetooth, and the power consumption is pretty low, which is good.

There are a few things missing; the #1 requested feature is "wake phone on double tap", but I have no idea how to add support for it. I'll need someone to let me know how, and while I'm not actively searching for this myself, if someone knows, drop me a line.

Apart from this, the Dotview case thing isn't supported. And the same applies here: if someone knows how to add support, drop me a line.

My plan for many months was to get this ROM ready to be included officially by Cyanogenmod. This is not on my todo list anymore, but if someone else still wants to do the legwork, you're free to go ahead. Please keep me posted in that case.

Finally, I haven't gotten around to getting SELinux done, and I doubt I ever will. There is just not enough demand, no one requested this feature, and it's a pain in the ass to get to work.

From january of 2016 I took some time off and from april 2016 I will bring out updates at a slower pace. It's not that I stopped having an interest for this ROM, but the developers of CM are focusing less and less on version 12.1, they're putting most of their efforts in CM13 these days. Apart from this I don't think that the demand for anything missing or new is that important to merit the amount of research it demands from me. Adding to this, is that HTC provides no dev support, and the information lying around on the Internet for this phone is not exactly stellar either. So: starting from April 2016, and when time allows, I will continue to provide small updates, once a month at the very least.

So... what about CM13?

I don't have a clear answer for this. As of april 2016 we have still not heard anything officially from HTC other than "HTC will support the update to Android Marshmallow for the HTC One M8s." They have said this for a long time, and until they have released the relevant components like the kernel and their own ROM, I don't think it's possible to get CM13 to work - too much proprietary stuff is required. So until HTC delivers, I can't answer this.

CM12.1
If you are looking for the repository and/or a log of changes take a look at Github. There you can find the M8s-dev organisation and the device tree I use to build the updates.

The juicy stuff

Please make a donation if you value all the work and dedication I've put into this port. It took more than 6 full time months for me to produce, so believe me when I say it was no easy thing to create. I'm sharing it for free and hosting it myself. So a donation really does make all the difference.

And here you go:

Download CM12.1.

Adios,
-voidzero :cowboy:
 
Last edited:

is77gal

Member
Oct 26, 2009
44
4
here is cm 11 thread but don't know about m8s .
http://forum.xda-developers.com/showthread.php?t=2743579

"all i can really do , is stay out of my own way and let the will of heaven be done"

Hate to contradict you but there is a very fundamental difference between m8 and m8s, meaning the chipset is different...the topic you pointed is for m8 and I doubt the compatibility with m8s

Sent from my HTC One M8s using XDA Free mobile app

---------- Post added at 08:46 AM ---------- Previous post was at 08:45 AM ----------

Also the cm install app says m8s is not supported

Sent from my HTC One M8s using XDA Free mobile app
 

voidzero

Inactive Recognized Developer
Dec 11, 2007
343
553
The Netherlands
Not much response yet. I'm going to try and build CM11 and CM12, even if it's just for myself. Who knows, this might become a popular phone one day.

But it seems that this is not the case right now. So I'll play with this at an easy pace, But if anyone wants to chime in later, feel free to ping me. Or take over, if you already have experience building CM11/CM12.
 
Last edited:

is77gal

Member
Oct 26, 2009
44
4
Small and unfortunate update: I've posted on cyanogen fb page about our model and the response was that there is no plan on developing a Rom for us...yey, no

Sent from my HTC One M8s using XDA Free mobile app
 
  • Like
Reactions: DACATA

voidzero

Inactive Recognized Developer
Dec 11, 2007
343
553
The Netherlands
Small and unfortunate update: I've posted on cyanogen fb page about our model and the response was that there is no plan on developing a Rom for us...yey, no

Sent from my HTC One M8s using XDA Free mobile app

Ok.. "no plan" might just mean "maybe someday", and maybe it will help if we do a bit of work first.

We could also use a separate forum on xda for the m8s, because it is a different phone, and a quick search for "htc m8s" on Twitter tells me that the phone is being used by more and more people. It will probably become a popular phone, and why not, the octacore processor is pretty nice, so is the 13MP camera...

So we can just continue, although I will admit, due to the hot weather where I live I haven't done anything so far yet. :cool:

Experts who have ported CM before, make yourselves known if you would like to help... :good:
 
  • Like
Reactions: ex-peria

voidzero

Inactive Recognized Developer
Dec 11, 2007
343
553
The Netherlands
CM12 or anything like this would be very nice for the m8s. Unfortunately I don't know anything about "cooking" a custom rom.
On my M7 I had AICP and I loved it very much

Agreed. I had not built CM12.1 before, only CM11. I don't think it's easy to support CM11 for the M8S, I tried to do it, but got stuck when trying to compile it... after I merged config files etc I found out that it's not easy to support this hardware (arm64-v8a).

It'll be optimal if someone more advanced will take over from me at some point, and for this week I'm a bit low on free time, but I have finally synchronised my repository and built CM12.1 succesfully for my supported HTC One S (ville). So now I can see about porting the M8S, for that I will take a look at the sources for the M8 and M9 and it will probably take a lot of trial and error. So please bear with me... :)
 
  • Like
Reactions: eltasmanico

jd1001

Senior Member
Nov 24, 2011
1,356
571
Agreed. I had not built CM12.1 before, only CM11. I don't think it's easy to support CM11 for the M8S, I tried to do it, but got stuck when trying to compile it... after I merged config files etc I found out that it's not easy to support this hardware (arm64-v8a).

It'll be optimal if someone more advanced will take over from me at some point, and for this week I'm a bit low on free time, but I have finally synchronised my repository and built CM12.1 succesfully for my supported HTC One S (ville). So now I can see about porting the M8S, for that I will take a look at the sources for the M8 and M9 and it will probably take a lot of trial and error. So please bear with me... :)

Hey man, I just wanted to say thanks very much for starting this thread. I will help and support in anyway I can, just got an M8s yesterday. Good luck and I'll stay tuned to this thread for anything I can help with.
 
  • Like
Reactions: voidzero

babakhad

Senior Member
Nov 18, 2009
360
18
Hi
Why can not change dpi by editing build.prob file
I need 280 dpi but in display setting just see 320 for minimum
Is there any way for android 5.1.1
Thanks

Sent from my One M8 using XDA Free mobile app
 

maduwaXtreme

Member
Apr 28, 2015
10
3
I also have a m8s. But i do not know anything Bout these rom making.. looking forward for your assistance guys. Please tell me why the hell this ir blaster is not working!
 

voidzero

Inactive Recognized Developer
Dec 11, 2007
343
553
The Netherlands
@jd1001 thanks for the kind words. You gave me some extra motivation! Heh, I wrote a reply earlier but it got discarded by the damn mobile app. In short, last week other tasks kept me busier than expected, but I intend to spend a lot of time on this project this week starting later today. I'll keep you guys posted. The more I use Sense on this M8s the more I miss Cyanogenmod, so I am definitely gonna continue now that I have more time. Stay tuned! :)

@babakhad I think you've posted in the wrong thread, this is for the M8S, it's different from the M8 you seem to be using!

@maduwaXtreme I don't think the M8S has IR, the M8 does, not sure about the M8S though!
 
Last edited:

rayzor_uk

Senior Member
Apr 15, 2010
71
3
hi all I also have the m8s and now have got twerp recovery and supersu installed rooted ready for a custom rom but I have had no luck in finding one any help would be appreciated
thanks
 

Top Liked Posts

  • There are no posts matching your filters.
  • 30
    ROM Updated: July 20, 2016 - Update notes
    This post Updated: April 24rd, 2016
    If you have been here before, or if you know what to do, go right ahead and skip to the last pages for the most recent update notes. Or, if you need a bit of a starting point or got stuck along the way, it might be useful to read the remainder of this post first. Understandably the installation of this ROM didn't immediately go smooth for everyone, so if you run into troubles don't skip to the end but rather spend some time to read through the entire thread. And you can always use the search function. Doing this will probably be quicker than waiting for someone to solve your problem, especially if it's not a new problem. Plowing through the thread is probably the faster alternative.

    So that all being said - Hiya! Welcome to the one and only place where you can find info and support for my unofficial port of Cyanogenmod 12.1, for the HTC One M8s. This phone is very different from the M8 and no one really knows why the folks at HTC decided to give it this name; the looks may be similar to both phones, but the M8s comes with an octa-core snapdragon 615, a 13MP camera, and a stronger battery than the M8. Under the hood you can find an msm8939, and unfortunately not as much memory as one would hope. Still, the phone works pretty good, and at least this ROM (in my opinion) is faster and snappier than HTC's original Sense ROM.

    Although this ROM is not supported by the Cyanogenmod project in any official capacity, I did get some great help from some of the CM developers and from other people. Special props to @root-expert, @Rashed97, @invisiblek, @intervigil and @uberlaggydarwin for helping, and providing me with some moral support when despair was getting the best of me.

    So that all said and done, let's get to it!

    Port Information

    All the stuff you would hope would work, works: the mobile radio, camera, wifi, GPS, NFC, audio, notification LED, sensors, Bluetooth, and the power consumption is pretty low, which is good.

    There are a few things missing; the #1 requested feature is "wake phone on double tap", but I have no idea how to add support for it. I'll need someone to let me know how, and while I'm not actively searching for this myself, if someone knows, drop me a line.

    Apart from this, the Dotview case thing isn't supported. And the same applies here: if someone knows how to add support, drop me a line.

    My plan for many months was to get this ROM ready to be included officially by Cyanogenmod. This is not on my todo list anymore, but if someone else still wants to do the legwork, you're free to go ahead. Please keep me posted in that case.

    Finally, I haven't gotten around to getting SELinux done, and I doubt I ever will. There is just not enough demand, no one requested this feature, and it's a pain in the ass to get to work.

    From january of 2016 I took some time off and from april 2016 I will bring out updates at a slower pace. It's not that I stopped having an interest for this ROM, but the developers of CM are focusing less and less on version 12.1, they're putting most of their efforts in CM13 these days. Apart from this I don't think that the demand for anything missing or new is that important to merit the amount of research it demands from me. Adding to this, is that HTC provides no dev support, and the information lying around on the Internet for this phone is not exactly stellar either. So: starting from April 2016, and when time allows, I will continue to provide small updates, once a month at the very least.

    So... what about CM13?

    I don't have a clear answer for this. As of april 2016 we have still not heard anything officially from HTC other than "HTC will support the update to Android Marshmallow for the HTC One M8s." They have said this for a long time, and until they have released the relevant components like the kernel and their own ROM, I don't think it's possible to get CM13 to work - too much proprietary stuff is required. So until HTC delivers, I can't answer this.

    CM12.1
    If you are looking for the repository and/or a log of changes take a look at Github. There you can find the M8s-dev organisation and the device tree I use to build the updates.

    The juicy stuff

    Please make a donation if you value all the work and dedication I've put into this port. It took more than 6 full time months for me to produce, so believe me when I say it was no easy thing to create. I'm sharing it for free and hosting it myself. So a donation really does make all the difference.

    And here you go:

    Download CM12.1.

    Adios,
    -voidzero :cowboy:
    12
    Newsflash!

    After much, and I do mean much of testing, rewriting, log reading, screen staring, long days, short nights and not much else in between, the latest news is it finally boots!!

    Woooohoooo

    This is still early stages! So I'm not going to provide a flashable zip yet, it's too early for that.

    So what does and doesn't work? Here's a quick rundown; I'm on mobile right now, taking a long overdo break! So i'll write a summary now and make a new thread for this later.

    • Wifi: works. Builds from source, which is good. But needs further work. By the way, I don't see an option to select either 2.4Ghz, 5Ghz or both. Or was that option removed from Lollipop?

    • Radio: worked half assed, then stopped working. Need to review. Phoning did work, well, i could hear my voicemail. Microphone: unsure.

    • Display: works (lol) but the brightness toggle currently doesn't.

    • Nfc: does not work. Probably an upstream bug.

    • Sound: nada, apart from phone. Some annoying issue regarding adsprpcd. No clue why that happens.

    I also still need to sort the proprietary libraries: which to copy. Doing that by hand atm.

    • Power consumption: needs review. Probably way too high.

    • Kernel: the almost original but slightly improved version works; my much improved version works too. Details in the kernel repo on my Github.

    • System initialization scripts (init): heavily modified by yours truly. Specialized for our phone.

    Sooo yeah! Who would have thought? I sure as hell didn't. As you can see there is much work ahead, but I will say this: that moment when the little guy on the boot screen logo flooped away, and Android suddenly appeared on my screen... I was so surprised that I just couldn't believe it. I probably stared at my screen with open mouth for a whole minute, haha! Then I felt so proud.

    So, again, thank you, everyone who supported me so far for the occasional virtual pat on the shoulder. I would have given up already if it weren't for you.

    To be continued....
    12
    Hi friends and supporters,

    Just a small update to let you know I'm still working on this port every day. At first I have used the Yu Tomato as the base for the One M8S. Recently I have removed a lot of the stuff that was specific to the Tomato, and, I have replaced a lot of stuff: the Tomato inherits settings from various other Cyanogenmod configurations, but because we have a HTC which is a commercial brand, I was told to remove all the inheritances, and instead, copy whatever is required. A lot of that is done. I have also cleaned up a lot of selinux policy duplicates that prevented the image from being assembled, and I have compared a lot of different devices, just to make sure that the order in which the image is built happens correctly.

    Many bumps on the road, still getting lots of errors every day. But that's no problem: every day it feels like I'm a small step closer to a working image. Fingers crossed! I'm working on this thing every day now so even when you don't hear from me for a while, you can assume I'm working on it.

    No idea how long it will take -- I assume it will still take me a looong time -- but hey. Better than never!

    Finally - because I based this port on the Yu Tomato, the name I originally gave to the default branch on github was cm-12.1-tomato. However, recently, because of the many changes I've incorporated, I changed the default to a new branch called cm-12.1-ketchup. Hilarious, right :laugh: Anyway, if you were tracking this repository via github, be sure to update your local branch to keep fetching updates. If none of this means anything to you, that's okay too, although you kind of make me envious...
    12
    Happy new year everyone.

    Two weeks ago my son was born, alive and kicking! This is why I haven't been around, it was a really busy time, and December is already a busy month.

    I do expect to return somewhere this month to pick up where I left off. The only thing that I am uncertain about, is whether to make the port officially supported.

    As it seems from chats I had with CM team members now and then, no current CM dev is interested to take over the port from me and maintain it. And who can blame them? I don't think anyone in the team has an M8s and they already do have enough work as it is. I get where they are cowing from when they're not inclined to support this one.

    On the other hand, I gave it a big thought and decided that I am not interested to become an official CM developer, not even if this would be limited to just this phone. Android is great but way too time consuming. Maintaining this phone for CM in an official capacity demands too much responsibility, and the number of users does not seem particularly high.

    My buddy @root-expert whom I met on this forum is considering to get an M8s. He's not sure yet, but if he will get one we also talked about him taking over from me as leading developer. If that will happen I'll continue to stick around and help out. Just not as much as I have been doing these last six months. We'll keep you posted.

    I will keep you posted, and, I will build a new CM rom soon. Bear with me for a little longer, once the dust has settled I'll return and continue whenever I can.

    Bye for now!
    -- voidzero
    10
    Okayy, we're coming closer every day, because I'm working on it every day! When this is done it should be a Cyanogenmod masterpiece! And the M8s is actually a very good phone, hardware wise.

    The reason why it's taking so long is, our phone is the only HTC phone with this kind of hardware. All the other ported HTCs are very similar so porting for those is pretty easy, most of it is just copy and check!

    But with our phone, it just does a lot of stuff differently, so it's a lot to figure out. And the other CM HTC developers just don't have much experience with this phone, so, not much people who know how to help. Imagine that. At first I thought I'd be making a simple port. Turns out, I need to become Leonardo! I mean da Vinci and not the turtle, of course.

    Right now it looks like we'll need a custom written lights.c file. That's the file which handles the notification LED and the screen's brightness.. The LED is not the most important thing, but it's part of the different sensors package, and we will need that to get a usable phone: gravity (rotation) sensor, proximity sensor, light sensor.... and GPS of course.

    Camera also still on the todo list btw.

    So anyway, the plan in my mind right now is: notification LED, then sensors and GPS and rewrite init, and then i will have an image for everyone to test. It will not be a fully functional image (camera!) but it'll be very usable otherwise. I won't make you wait until the camera also works (LOL) But I do need sensors to work first. I'm so busy working on this phone, that I can't take bug reports yet, so that's why.

    Another thing - Some of you mentioned donations which is very nice, so I've given that a long thought. I'm very thankful to everyone who is offering, that goes without saying!! But I also just don't feel comfortable to receive donations until you can test the image. Sooo: I will add a donation link when the testing image is ready, then you can test and I can have those drinks! Just no alcohol for me, I prefer caffeine hahaha

    Keep you posted!
    -vz
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone