FORUMS
Remove All Ads from XDA

[ROM][DISCONTINUED] CyanogenMod 12.1 for HTC One M8 Dual SIM

6,610 posts
Thanks Meter: 19,303
 
Thread Closed Email Thread

CyanogenMod is a free, community built, aftermarket firmware distribution of Android 5.1.x (Lollipop), which is designed to increase performance and reliability over stock Android for your device.

Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps). CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit our Gerrit Code Review. Your changelog is whatever was merged into gerrit.

GPL compliance:

Broken:
  • Nothing!

Working:
  • Everything except 'broken' stuff



Compatibility:
This build is compatible with all M8 Dual SIM variants (m8dug and m8dwg).
It is based off the HTC's Android 5.0.2 firmware, binaries and kernel.

Downloads:
Installation:
Credits & collaborations:
This work is due to efforts from everyone involved in M8 development with some changes from myself. The CyanogenMod team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!

Device wiki:
XDA:DevDB Information
CyanogenMod 12.1, ROM for the HTC One (M8) Dual SIM

Contributors
bgcngm
ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.4.x
ROM Firmware Required: LP firmware
Based On: CM12.1

Version Information
Status: Discontinued

Created 2015-07-26
Last Updated 2016-12-28
The Following 8 Users Say Thank You to bgcngm For This Useful Post: [ View ]
26th July 2015, 11:17 PM |#2  
Junior Member
Flag San DIego
Thanks Meter: 4
 
More
does speaker audio work??
as in no speaker distortion
26th July 2015, 11:24 PM |#3  
bgcngm's Avatar
OP Recognized Developer
Flag Lisbon
Thanks Meter: 19,303
 
Donate to Me
More
Sure, all audio works, except incall audio as stated above. And it is only in a certain condition.
26th July 2015, 11:26 PM |#4  
Junior Member
Flag San DIego
Thanks Meter: 4
 
More
Quote:
Originally Posted by bgcngm

Sure, all audio works, except incall audio as stated above. And it is only in a certain condition.

sorry I meant speaker distortion
26th July 2015, 11:27 PM |#5  
bgcngm's Avatar
OP Recognized Developer
Flag Lisbon
Thanks Meter: 19,303
 
Donate to Me
More
No speaker distortion at all.
26th July 2015, 11:29 PM |#6  
Junior Member
Flag San DIego
Thanks Meter: 4
 
More
Quote:
Originally Posted by bgcngm

No speaker distortion at all.

sweet
27th July 2015, 12:15 AM |#7  
bgcngm's Avatar
OP Recognized Developer
Flag Lisbon
Thanks Meter: 19,303
 
Donate to Me
More
I highly appreciate if any dev wants to join to this effort of bringing full CM support to M8 Dual SIM. Been trying to fix this incall audio issue for a month now, without success.
27th July 2015, 06:24 PM |#8  
bgcngm's Avatar
OP Recognized Developer
Flag Lisbon
Thanks Meter: 19,303
 
Donate to Me
More
Update regarding the strange NFC issue.

An initial logcat pointed this out:
Code:
I/NfcService( 2787): Enabling NFC
D/NFCJNI  ( 2787): Start Initialization
E/NFC-HCI ( 2787): Could not open /vendor/firmware/libpn544_fw.so or /system/lib/libpn544_fw.so
W/NFC     ( 2787): Firmware image not available: this device might be running old NFC firmware!
D/NFCJNI  ( 2787): NFC capabilities: HAL = 8150100, FW = b10129, HW = 620003, Model = 11, HCI = 1, Full_FW = 1, Rev = 41, FW Update Info = 0
D/NFCJNI  ( 2787): phLibNfc_SE_GetSecureElementList()
D/NFCJNI  ( 2787): 
D/NFCJNI  ( 2787): > Number of Secure Element(s) : 1
D/NFCJNI  ( 2787): phLibNfc_SE_GetSecureElementList(): SMX detected, handle=0xabcdef
D/NFCJNI  ( 2787): phLibNfc_SE_SetMode() returned 0x000d[NFCSTATUS_PENDING]
I/NFCJNI  ( 2787): NFC Initialized
The error is gone after taking that proprietary file from the stock ROM:
Code:
D/NFCJNI  ( 2904): Start Initialization
D/NFCJNI  ( 2904): NFC capabilities: HAL = 8150100, FW = b10129, HW = 620003, Model = 11, HCI = 1, Full_FW = 1, Rev = 41, FW Update Info = 0
D/NFCJNI  ( 2904): phLibNfc_SE_GetSecureElementList()
D/NFCJNI  ( 2904): 
D/NFCJNI  ( 2904): > Number of Secure Element(s) : 1
D/NFCJNI  ( 2904): phLibNfc_SE_GetSecureElementList(): SMX detected, handle=0xabcdef
D/NFCJNI  ( 2904): phLibNfc_SE_SetMode() returned 0x000d[NFCSTATUS_PENDING]
I/NFCJNI  ( 2904): NFC Initialized
NFC seems to initialize correctly in both cases, but I can't exchange data with other devices. I was not expecting this kind of issue at all because standard M8 has the same NFC chip.
28th July 2015, 12:48 PM |#9  
bgcngm's Avatar
OP Recognized Developer
Flag Lisbon
Thanks Meter: 19,303
 
Donate to Me
More
Just one clarification regarding the incall audio issue. The noticed pattern is:
  • SIM 1 network mode set to LTE or 3G (SIM 2 network mode is automatically set to 2G) > incall audio works on calls using SIM 1, but not SIM 2
  • SIM 2 network mode set to LTE or 3G (SIM 1 network mode is automatically set to 2G) > incall audio works on calls using SIM 2, but not SIM 1
1st August 2015, 01:41 PM |#10  
bgcngm's Avatar
OP Recognized Developer
Flag Lisbon
Thanks Meter: 19,303
 
Donate to Me
More
New updates on the incall audio issue. I finally got incall audio on the SIM card that is not set to LTE/3G. It was done by forcing a different PCM device to be opened during the call. Now I get the exact opposite behavior, than the one described on previous post.

The source code needs some changes in order to decide which PCM device should be opened, taking into account which SIM is calling and what network mode is set.

EDIT: New update released. Incall audio issues are fixed.
5th August 2015, 11:27 AM |#11  
osm0sis's Avatar
Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,544
 
Donate to Me
More
Can you change that to "by @TKruzze and @osm0sis"? Thanks!
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes