• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root CM12.1 Unofficial Beta

Mofo,

made a little headway with the emotional_led situation (home button ring light.) seems that its controlled through /sys/class/i2c-adapter/i2c-2/2-0032/leds/, and there are three main folders we care about called R, G, and B.

with:

echo 25 >/sys/class/i2c-adapter/i2c-2/2-0032/leds/R/brightness on stock kernel using adb shell, i can get the emotional led to turn on with a red light, and substituting G and B also provides green and blue lights.

Im working right now on writing (copying) a liblights from somewhere, and compiling it with CONFIG_LEDS_LP5521=y in kernel config to see if i can get cm11 to display ring lights.

Exciting!
 
Upvote 0
btw, the update fixed some apps that stopped working from the last update.

I'm also getting the lock problem and I wasn't on the previous version. I was glad that vibration was fixed, but I don't want to restart my phone constantly so i'm going back to the zv5 rom until that's settled out.
just go back a version in the rom, it didn't have this issue until this last update
 
Upvote 0
Hey guys, I really need some help here I have no clue what else to do! So since all these new Roms have been coming out and being developed for this phone (Thanks Devs!!) I've been flashing Roms a lot, I've been on the deodexed ZV5 that's my daily driver. So anyway, today I wiped everything but external SD, then I flashed the deodexed ZV5 and then flashed the Boost APN fix along with the ZV5 Radio, booted up and haven't been able to connect to any Data, I've tried the dial codes no luck, I tried completely resetting nothing I just keep getting can't establish data connection, I'm kinda worried right now hopefully I'll be able to resolve this! PS. Sorry for random placement I just didn't know where else to post
 
Upvote 0
Hey guys, I really need some help here I have no clue what else to do! So since all these new Roms have been coming out and being developed for this phone (Thanks Devs!!) I've been flashing Roms a lot, I've been on the deodexed ZV5 that's my daily driver. So anyway, today I wiped everything but external SD, then I flashed the deodexed ZV5 and then flashed the Boost APN fix along with the ZV5 Radio, booted up and haven't been able to connect to any Data, I've tried the dial codes no luck, I tried completely resetting nothing I just keep getting can't establish data connection, I'm kinda worried right now hopefully I'll be able to resolve this! PS. Sorry for random placement I just didn't know where else to post
If all else fails, you could always do the LG restore. I've been having issues with calls not being acknowledged by my phone. 90% of the time someone calls me it will ring for a while on their end and then go to voicemail. If they leave a voicemail, it will push to my phone. If they don't leave a message, I have no idea they ever called (doesn't ring, pop up the answer/decline dialog, or show up in call logs). It's really strange. I've tried ##UPDATE# several times and nothing. It's an annoyance, but not enough for me to justify restoring it at this point. If CM12 never gets the data issues fixed, I will probably do the restore as calls come through just fine when running CM12.
 
Upvote 0
If all else fails, you could always do the LG restore. I've been having issues with calls not being acknowledged by my phone. 90% of the time someone calls me it will ring for a while on their end and then go to voicemail. If they leave a voicemail, it will push to my phone. If they don't leave a message, I have no idea they ever called (doesn't ring, pop up the answer/decline dialog, or show up in call logs). It's really strange. I've tried ##UPDATE# several times and nothing. It's an annoyance, but not enough for me to justify restoring it at this point. If CM12 never gets the data issues fixed, I will probably do the restore as calls come through just fine when running CM12.
Can you do a lg restore with a custom recovery?
 
Upvote 0
Hey guys, I really need some help here I have no clue what else to do! So since all these new Roms have been coming out and being developed for this phone (Thanks Devs!!) I've been flashing Roms a lot, I've been on the deodexed ZV5 that's my daily driver. So anyway, today I wiped everything but external SD, then I flashed the deodexed ZV5 and then flashed the Boost APN fix along with the ZV5 Radio, booted up and haven't been able to connect to any Data, I've tried the dial codes no luck, I tried completely resetting nothing I just keep getting can't establish data connection, I'm kinda worried right now hopefully I'll be able to resolve this! PS. Sorry for random placement I just didn't know where else to post
Did you try going back to ZV3? For what it's worth, I'm having a problem that I haven't been able to fix even with flashing a ROM as well, I keep on getting this error in an app: <Exception>java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.</Exception>

Are there any partitions that are not cleared in the process of flashing a ROM?
 
Upvote 0
I'm about to try this. I'll let you know if it works for me.
Actually don't try it. I ended up restarting my phone at least a dozen times today. It seemed like it worked at first but it didn't, and I ended up just reverting to my backup of the stock ROM — until this lock or deep sleep issue gets sorted out, I'm gonna hold off on CM12 for a while, because between work and a clingy girlfriend, I have to have a reliable daily driver :/
 
Upvote 0
Did you try going back to ZV3? For what it's worth, I'm having a problem that I haven't been able to fix even with flashing a ROM as well, I keep on getting this error in an app: <Exception>java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.</Exception>

Are there any partitions that are not cleared in the process of flashing a ROM?
Thanks so so much im hoping i can get it to work, ill try going back to zv3 thanks for the advice ill probably need it again lol. And the only thing I'm not wiping is external sd
 
Upvote 0
Mofo,

Thanks to cyanogenmod and the lg g3, I made way more headway on the lights situation. Its 90% fixed. We are going to build lights.msm8226.so from source from now on, and you will have to look through my device tree to catch the changes. Red, green, blue, purple and yellow notification and charging lights are working now on my cm11 build, and the only things not working with it right now is just pulsing like the stock rom does but im working on it.

Basically, you are gonna need to copy my liblight from my device tree in the 2nd post of the new cm11 rom thread i created. Also, in your Boardconfig.mk, add the following:

# Lights
TARGET_PROVIDES_LIBLIGHT := true

(not sure if its absolutely needed but it works so i wont question success.)

Also, in device_x5.mk, make sure there is only one reference to lights.msm8226, mine looks like the below:

# HAL
PRODUCT_PACKAGES += \
copybit.msm8226\
gralloc.msm8226 \
hwcomposer.msm8226 \
lights.msm8226 \
nfc.msm8226 \
memtrack.msm8226 \
power.msm8226

Go into vendor/lge/x5/x5-vendor-blobs.mk and remove the line:

vendor/lge/x5/proprietary/lib/hw/lights.msm8226.so:system/lib/hw/lights.msm8226.so \

which means we can just delete the lights.msm8226.so file out of the vendor tree completely also since we are building from source now. Dont forget to go into your out directory and delete lights.msm8226.so so we know for sure the one being built into the rom is correct.

And finally, in kernel/lge/msm8226/arch/arm/configs/cm11_x5_defconfig, this: CONFIG_LEDS_LP5521=y

That should get you notification lights on your lollipop roms, and put us a step further in getting finished roms out!

Edit so i dont forget, also you will need to enable the cyanogenmod led control in overlay/frameworks/base/core/res/res/values/config.xml. These are the relevant lines, hopefully by this point cm12 has gotten far enough to add it back into the lollipop source, if not no biggie because xposed and XLED module can be used to control lights:

<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveNotificationLed">true</bool>

<!-- Is the battery LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveBatteryLed">true</bool>

<!-- Does the battery LED support multiple colors? Used to decide if the user can change the colors -->
<bool name="config_multiColorBatteryLed">true</bool>

<!-- Default LED on time for notification LED in milliseconds. -->
<integer name="config_defaultNotificationLedOn">1000</integer>

<!-- Default LED off time for notification LED in milliseconds. -->
<integer name="config_defaultNotificationLedOff">1000</integer>

Edit 2: I knew i was going to forget something in this crazy long ramble.

Basically when the device boots, somewhere in the init scripts in ramdisk it tells the emotional_led to trigger the constant led pattern that we know and hate (lol.) There is a script in my device tree also in prebuilt/etc/init.d/ called 10lightfixer that echoes 0 to that trigger to turn that led pattern off when init.d kicks in.
So i guess im saying make sure you have that in there too, and add the relevant line to device_x5.mk to copy it to the rom zip while building. (kind of like the old 10nfcchecker that quarx's w7 device tree had)
 
Last edited:
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones