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

Root CM12.1 SENSORS

hroark13

Android Expert
Recognized Developer
HI All

So one of the harder issues I had to overcome in CM12.1 is the Sensors and sensor HALS

It seems there are different version of the ZMAX hardware, and they have either different sensors or something

The sensor HAL and drivers from the stock 444 ROM freeze in CM12.1 and cause the a freeze when you turn on the screen, and they basically just do not work right

The sensor HAL and drivers from the stock 442 ROM cause the phone to boot loop

So I had to find other HALS that work on CM12.1

Well I found 2, but some people will need to use one and other will need to use the other

Anyway on my phone which is the Univision 442 model, that I fully updated to 444, I have to use the Sony Flamingo HAL, this HAL did not work for some people so I put them on the HAL that I had in Beta 2 which is the ZTE V5 Redbull HAL

So I am putting links in this thread for both version, so that we can keep sensor related issues out of the main CM12.1 thread


here are the two HALS

Sony Flamingo HAL
https://www.mediafire.com/?yedtk0mg6e2w6o9

ZTE V5 RedBull HAL
https://www.mediafire.com/?mmzxoi5zpsofmwn




If I have helped you, and you like my work, please click on the Thanks Button and give my thread a rating by clicking on the stars above.

If you would like to buy me a beer , you can click on the PayPal button

 
Last edited:
About 4 hours ago I did a clean install of rc1 along with the gapps that are recommended for cm12.1 which I found on the CyanogenMod website. I have the MetroPCS 4.4.4 version and when I flashed rc1 tonight I had the problem with my sensor working back asswards. Just figured I'd report this since I haven't seen anybody with the Metro version report it yet. I'll update my post after trying the fix.

[UPDATE] I flashed the redbull hal and my proximity sensor works perfectly now. Thank you sir
 
Last edited:
That's because chrome doesn't know what the hell its talking about. If you install lookout it will flag every app in the ROM as malware or "riskware". Its a bunch of friggin bs
Have you notice how you have through go through like 20 captchas just to download an ROM on mediafire? I tried Adblock plus and it just doesn't download anything until i disabled it. I even formatted my computer and network thinking it was a virus XD. Maybe it's just me.
 
Have you notice how you have through go through like 20 captchas just to download an ROM on mediafire? I tried Adblock plus and it just doesn't download anything until i disabled it. I even formatted my computer and network thinking it was a virus XD. Maybe it's just me.
I have unlimited 4G LTE high speed data with MetroPCS so I just download everything straight to my phone and then check the md5. I almost never have to enter captcha.
 
Have you notice how you have through go through like 20 captchas just to download an ROM on mediafire? I tried Adblock plus and it just doesn't download anything until i disabled it. I even formatted my computer and network thinking it was a virus XD. Maybe it's just me.
yea u need to disable abp on mediafire
 
About 4 hours ago I did a clean install of rc1 along with the gapps that are recommended for cm12.1 which I found on the CyanogenMod website. I have the MetroPCS 4.4.4 version and when I flashed rc1 tonight I had the problem with my sensor working back asswards. Just figured I'd report this since I haven't seen anybody with the Metro version report it yet. I'll update my post after trying the fix.

[UPDATE] I flashed the redbull hal and my proximity sensor works perfectly now. Thank you sir
Just flashed RC2 and sensors are backward I'm also on metro version I'll flash and see if it corrects the issue.
 
uhm if im correct thats already included in the rom dude
Well I opened the redbull sensor zip and it makes changes to the persist partition so I'm not really sure how things would work out if I went back to stock because I have been running cm as a daily driver for over a week now.
 
Well I opened the redbull sensor zip and it makes changes to the persist partition so I'm not really sure how things would work out if I went back to stock because I have been running cm as a daily driver for over a week now.


that file in the persist partition is sns.reg

it could be deleted and it will be generated after reboot on stock ROM

but on cm12 the file that gets generated is not good and sensors are wacked because we are not using the stock HAL files, so I have to copy a file that works

I really wish the stock HAL file would work on CM12 with out freezing, would have saved me a whole lot of head aches, that whole issue kind of burnt me out to be honest
 
I'm sorry to hear that. I'd like to see video recording get fixed before you move on but that's up to you and either way I'm grateful for the work you've done. I've been using your ROM every day since beta 2 and still haven't encountered any bugs that would be enough to make me want to go back to stock. You've really done an awesome job with this ROM. Other than video recording everything is perfect.
 
I'm sorry to hear that. I'd like to see video recording get fixed before you move on but that's up to you and either way I'm grateful for the work you've done. I've been using your ROM every day since beta 2 and still haven't encountered any bugs that would be enough to make me want to go back to stock. You've really done an awesome job with this ROM. Other than video recording everything is perfect.


remove this line in the /system/build.prop

qcom.hw.aac.encoder=true


that should fix camera
 
Thanks for this. I can confirm this works. Could we possibly get this baked into the next release? Thanks, man!
 
Yep, worked like a charm. I know I've said this many times but you are awesome! Yay now I can use the CM & Google camera again instead of this dumbass camu camera app. @hroark13 you are tha shiznit!
 
Last edited:
I haven't had any luck on the censors. I'm running CM12.1 Rc2, (Amazing ROM BTW) on Originally metro 4.4.4, and ive tried flashing both hal files provided and haven't noticed a difference in the censors. They still continue to freeze, and its becoming a pain to force reboot 5 times a day. I wonder if its something wrong on my part. Any help would be appreciated.
 
I haven't had any luck on the censors. I'm running CM12.1 Rc2, (Amazing ROM BTW) on Originally metro 4.4.4, and ive tried flashing both hal files provided and haven't noticed a difference in the censors. They still continue to freeze, and its becoming a pain to force reboot 5 times a day. I wonder if its something wrong on my part. Any help would be appreciated.
Both of the hal files provided in this thread are for the proximity sensor only. That is the sensor that turns off the phones screen when you get a call and put the phone up to your ear. If you are having problems with the screen freezing and becoming unresponsive and the only fix is to force reboot then you need the kernel for touchscreen fix. It is in the op of the main thread for cm12.1
 
Back
Top Bottom