Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,731,698 Members 49,462 Now Online
XDA Developers Android and Mobile Development Forum

[FIX] Wake Issue (Android OS) - Combination of Radio/PRI/NV/Wimax/GPS !Solved!

Tip us?
 
JBabey
Old
(Last edited by JBabey; 27th June 2011 at 04:41 PM.)
#1  
Senior Member - OP
Thanks Meter 148
Posts: 248
Join Date: Jun 2006
Location: Los Angeles
Default [FIX] Wake Issue (Android OS) - Combination of Radio/PRI/NV/Wimax/GPS !Solved!



Thread has shed some light on new issues and some other fantastic developers have chimed in with a lot more insight into this issue than I had originally anticipated when I started this thread. Please read the below post in FULL, and skip to page 31 for where this discussion picks up. ~> http://forum.xda-developers.com/show...128135&page=31

Quote:
Originally Posted by DaKlown View Post
First I would like the thank the OP for bringing some attention to the issue. This thread seems to have started going in the wrong direction so I will make an attempt to clear some things up and shed some light on the situation with my findings. In my tests so far I cannot really find a combination of radios and pri to solve any of the problems mentioned in this thread. All my findings are using and testing aosp roms. Cm7 really but most aosp roms are based off of cm so this post should be helpful if you use an aosp rom and are having a unreleased pokelock caused by the dialer and/or high android system in the battery usage after phone calls. If you use a sense rom I do not recommend any of these fixes for you. If you use these on a sense rom you will probably mess something up and/or experience boot loops and lots of other problems. That being said lets get started:
Problem 1: The pokelock not being released after a phone call is made or received. This problem comes from the phone app and not the radios as far as I can tell from my tests.
Solution: http://www.mediafire.com/?xzw0zhonmnjw1xs
This file is a flashable zip of a new phone app that releases the wakelock after making a phone call the way its supposed to. I take no credit for this new phone app. It was made by Scott Brady (The same dev that fixed the mms problems on the evo in the cm nightlies about a month ago). I just got this from him. We haven't thoroughly tested it yet so please FLASH AT YOUR OWN RISK. Make a nandroid. I will say this though. In my current tests I have made about 40 calls with no pokelock and it seems to work wonderfully. The only reason I'm posting it early is because if you're like me and you know something is wrong then you want an immediate fix. Also using the killall command in terminal emulator or adb after every call can get tiresome... I have also tested with multiple radios In case anyone was wondering.
Problem 2: Android system spikes in the battery use in settings after a phone call is made or received.
Solution: I'm close but not finished yet...
Please read what I am about to say all the way through. What I have found is that the current proximity drivers for the evo are causing the android system in the battery use to go bonkers. I'm not really sure how much it affects your battery because it seems that it causes all your apps to not even show up in your battery stats. Proof? I have supplied two files in a zip:
http://www.mediafire.com/?mxks9k60shlckk5
THIS IS NOT A FLASHABLE ZIP. USE AT YOUR OWN RISK. One file is "sensors.supersonic.so" where I edited it so that android cannot find the drivers for your proximity sensor so it never comes on. The second file is "sensors.supersonic.so.bak" which is a backup of the original .so file that you can use if you want to turn your proximity back on. When I edited my sensors.supersonic.so file so the proximity wouldn't come on android system no longer spiked in my battery stats after a phone call!!! Also I tried to add a command to the build.prop first to disable the proximity sensor which would have been better practice but the command didn't work. Not sure if that's because cm overrides it or what. I can pretty much guarantee that this is an aosp problem and not a sense problem so if you use a sense rom you don't even need to worry about this. I doubt HTC has faulty proximity drivers on a stock rom... I could be wrong but I doubt it, they have screwed up in the past...
So what now? Well if you're on an aosp rom and the current proximity drivers work for you then you know what they say, "If it ain't broke don't try to fix it." For the rest of us I am in the process of trying to find some proximity drivers that don't make battery stats go haywire. Lets try to keep the thread relevant to findings so that we as a community can come closer to a fix instead of all the repetitive questions and things that don't help us get closer to a true fix... Don't forget the thanks button if you found this useful =P
Thanks for your time.

Edit: I would also like to add that I am on the most current radios, nv, and pri with no wakelock or spike in my android stats. And If you flashed the combo from the Calkulin thread you are probably missing the newest NV file because its not in there.
I have left the previous OP in-tact so if you would like to follow from the beginning you may. At this time, I can no longer recommend the below steps!!!, but I can still let you know that the GPS driver files below are pretty damned awesome.

~J

++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++
I believe I have FINALLY figured out how to solve the infamous "Wake-Lock" or "Keep Awake" of Android OS that seems to drain the battery on end. It took several hours of reading forum posts, several DAYS of testing on 5 different EVO's (I work at Sprint) and have tested the fix across a multitude of ROM's, including Sense.

I will post a short history of the issue as I know it here for those of you hitting this thread for the first time, skip below for the solution I have found.

Requirements:
-Radio S-OFF
-AmonRA Custom Recovery
-Android System always at or near the top in your battery usage

History
To the best of my knowledge the issue first started to appear in AOSP ROMS when the Cyanogen team stopped using HTC Blobs to control the driver for the GPS, As a great many custom roms utilize cyanogen for many of their own enhancements and fixes the problem began to propagate out to the community at an alarming rate. Restoring your system back was a hit or miss on if it actually solved the issue or not, and more RADIO files were getting leaked/posted online and many people were flashing a multitude of firmwares to their handset making the issue confusing and seemingly with no correlation on handsets with the people having issues.

I came across ViRuS Kingdom ROM and read about 1000 pages of posts and the conclusion from their team was that the PRI needed to be downgraded to 1.77 and behold, it worked......(mostly)......

I wondered how the PRI had anything to do with the fix, and mixed that with many, many other forums I have read on the issue realized myself that there was a correlative cause and that we all did indeed have something in common. Everyone was on a different radio/pri/nv/wimax combination. I decided to run some tests myself as I have access to ****loads of handsets being a Sprint employee and here is what I have found.

I have found exactly 1 combination that has fixed the issue on every single handset I have tried it on, hands down across the board on a great cross-section of ROMS.
-Cyanogen
-Kingdom
-MIUI
-SavagedZen
-Synergy
-Mik's
-Sense 3.7 build
-Sense 4.22 build
-FreshEVO 3.5
-FreshEVO 4.1

__________________________________________________ ____________

THE FIX!
The fix is a combination of...
Radio: 2.15.00.05.02
PRI: 1.77_003
NV: 1.90_003
WiMAX: 27243
GPS: HTC VISION GPS ".so" file

-Download the below PC36IMG.zip It is a custom Combo Radio installation I created that will set your Radio/Pri/NV/WiMAX to the above settings

-Move the PC36IMG.zip file to the root of your SD-Card and reboot the phone into bootloader. It will load the file and prompt you for an update, you will see on the left 3 items that will be upgraded on your handset. Hit volume up to accept

-Reboot the phone after the Radio update, go ahead and remove the PC36IMG.zip file from the sd-card and put it in a safe place

-Download "GPS_FIX_Flashable_Vision.zip" and put on your SD-Card

-Reboot into Recovery (I highly recommend AmonRA 2.3)

-Wipe Cache & Dalvik Cache. Now wipe them again just to be safe

-Choose "Install zip file from SDCard"

-Navigate to GPS_FIX_Flashable_Vision.zip and choose install

-Once installed go down to "Other" and "Fix UID mismatches"

-Reboot the phone
__________________________________________________ ____________

Now heres the weird and tricky part so listen closely. At this time you will still see the Android System in your battery stats. This is normal. To see the fix, you need to charge your phone fully to 100%.... and honestly give it an extra 10-15m on the charger after it says its full. Now..... REBOOT the phone when you pull it off the charger. Use the phone a little bit, make a phone call... it may still pop up around 5%.... again this is normal..... after 2-3 hours however it will be gone, completely and utterly gone... it will never show up again.

I have tested this on 5 handsets hardware revision 0002 0003 & 0004, and about 6-7 ROMS both AOSP & Sense and have yet to see Android OS re-appear. This is not to say that it will work for everyone, but I think that after my testing, there's an excellent chance that this will work for you.

Please leave feedback if this works or does not work for you please so that everyone can benefit from your experience, either good or bad. Please, please please, follow the final instructions carefully, it does literally take a few hours to test and get the old stat to wipe from the battery history, that is why I started this, literally 2 weeks ago, and am just posting now. I tried TONS of combination's and this is the one that struck gold, then I needed to test this combination on all of the phones I had sitting in the back for this. If mirrors are needed please let me know, and I will upload.

Good Luck!


PC36IMG.zip
Radio: 2.15.00.05.02
PRI: 1.77_003
NV: 1.90_003
WiMAX: 27243

http://www.multiupload.com/HJOWHOLW4G

Qualcomm Vision GPS Driver
Sense GPS Driver File from Qualcomm Vision
http://www.multiupload.com/11IWQ99VKH


EDIT:
A few reports on certain ROMS of excessive CPU usage after Android OS has dropped off the list
Please use one of the two below GPS drivers if you experience 100% CPU usage (Source: http://forum.xda-developers.com/show....php?t=1132412 )

~>AOSP<~
CyanogenMOD 7 Nightly 39 GPS Driver (HTC Blob File Compiled)
http://www.multiupload.com/NIJEKWGDEQ

~>SENSE<~
KingdomROM GPS Driver FIX
Sense GPS Driver File from EVO 3D aka "Kingdom"
http://www.multiupload.com/ZMOXSDJBOE


EDIT: It has come to my attention from a few members in PM, that the issue doesn't always "take" right away. People have reported that it can take 2 or 3 attempts, and 9 different people have reported that they have run the 1.77_003 NV after flashing the radio, and then running the GPS to resolve the issue.

---------------If the above fails for you after a 2nd attempt. Please follow these Modified Instructions

-Download the below PC36IMG.zip It is a custom Combo Radio installation I created that will set your Radio/Pri/NV/WiMAX to the above settings

-Move the PC36IMG.zip file to the root of your SD-Card and reboot the phone into bootloader. It will load the file and prompt you for an update, you will see on the left 3 items that will be upgraded on your handset. Hit volume up to accept

-Reboot the phone after the Radio update, go ahead and remove the PC36IMG.zip file from the sd-card and put it in a safe place

-Download "GPS_FIX_Flashable_Vision.zip" and put on your SD-Card

--MODIFIED STEP-- Download "EVO_NV_1.77_003" ~> http://www.mediafire.com/file/i1p436...V_1.77_003.zip (source: http://forum.xda-developers.com/showthread.php?t=715485) & put the file on your SD-Card

-Reboot into Recovery (I highly recommend AmonRA 2.3)

-Wipe Cache & Dalvik Cache. Now wipe them again just to be safe

-Choose "Install zip file from SDCard"

--MODIFIED STEP-- Navigate to EVO_NV_1.77_003.zip and choose install, once installed you will see a note at the bottom to reboot the phone. Choose the "Reboot Phone" option in AmonRA and let the phone reboot

-You will see the screen blink, go into recovery and hang, this is completely normal, just wait about 30 seconds and the phone will Automatically put you back into your recovery

-Choose option Flash zip file from SD-Card

-Navigate to GPS_FIX_Flashable_Vision.zip and choose install

-Once installed go down to "Other" and "Fix UID mismatches"

-Reboot the phone

Pickup the rest of the steps from above. PLEASE REPORT back your experience!
++++++++++++++++++++++++++++
The Following 43 Users Say Thank You to JBabey For This Useful Post: [ Click to Expand ]
 
shakuyi
Old
#2  
Senior Member
Thanks Meter 34
Posts: 354
Join Date: Apr 2007
Location: encino
wow sounds like it could work but im too busy with work...hopefully this thread will get more people to try this fix and see if it works for them....my fingers are definitely crossed!
 
dgrobe2112
Old
#3  
Member
Thanks Meter 4
Posts: 72
Join Date: Mar 2010
thanks for this.. i will try it out.. i currently allready have the 1.77 on my phone.. dont know bout the radios.. last time i tried to flash radios i had net closing issues..
 
JBabey
Old
#4  
Senior Member - OP
Thanks Meter 148
Posts: 248
Join Date: Jun 2006
Location: Los Angeles
Quote:
Originally Posted by dgrobe2112 View Post
thanks for this.. i will try it out.. i currently allready have the 1.77 on my phone.. dont know bout the radios.. last time i tried to flash radios i had net closing issues..
I have had issues like this as well, but only when I do the radio's through the recovery partition. That is why I enclosed it as a PC36IMG.zip file so that it could be done by the "official" HTC update method. I have had no issues doing it this way. Good luck, looking forward to hearing that your issue is resolved.
 
glennpettit
Old
#5  
Member
Thanks Meter 2
Posts: 48
Join Date: Sep 2010
Location: SB\VTA\LA California
Fails to install Can't find update script... any ideas??

CM7.0.3.1
 
dgrobe2112
Old
#6  
Member
Thanks Meter 4
Posts: 72
Join Date: Mar 2010
Quote:
Originally Posted by JBabey View Post
I have had issues like this as well, but only when I do the radio's through the recovery partition. That is why I enclosed it as a PC36IMG.zip file so that it could be done by the "official" HTC update method. I have had no issues doing it this way. Good luck, looking forward to hearing that your issue is resolved.
i dont have to reflash my rom do i?
 
dgrobe2112
Old
#7  
Member
Thanks Meter 4
Posts: 72
Join Date: Mar 2010
downloading now, should i clear battery stats?
 
JBabey
Old
#8  
Senior Member - OP
Thanks Meter 148
Posts: 248
Join Date: Jun 2006
Location: Los Angeles
Quote:
Originally Posted by glennpettit View Post
Fails to install Can't find update script... any ideas??

CM7.0.3.1
Use AmonRA, the update script is not in EDIFY (I may have to fix that later)

Quote:
downloading now, should i clear battery stats?
You shouldn't need to. If you are clearing your battery stats, do that for the reasons its intended, and make sure you follow the top off/drain instructions when doing so or it could lead to false readings.
Quote:
i dont have to reflash my rom do i?
No, you are only updating your radio and thus will not lose your data or have to reflash your ROM. Please remember to follow the short instructions at the end for charging/reboot/2 hours before reporting back here please.
 
CheesyNutz
Old
#9  
CheesyNutz's Avatar
Senior Member
Thanks Meter 2947
Posts: 11,149
Join Date: Oct 2010
Location: Springfield
flash the virus gps fix even if your not on the kingdom rom ?
Copy Cloud storage https://copy.com?r=cgXMEB
DropBox Cloud storage http://db.tt/UnygTbN
 
glennpettit
Old
#10  
Member
Thanks Meter 2
Posts: 48
Join Date: Sep 2010
Location: SB\VTA\LA California
I am using RA.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes