Disable Fast Dormancy to prevent com.android.phone wakeups - AT&T LG Optimus G

Like many others I was seeing many wakeups by com.android.phone, and as noted by others this is because of fast dormancy. Or rather, because of LG's implementation of it.
I'm not gonna go into too much detail, but the offending implementation can be found in com/android/internal/telephony/LgeFDHandlerInterfaceImpl . This class is in /system/framework/com.lge.core.jar . After data activity on HSPA networks they use AlarmManager to periodically wake up and check the number of bytes transmitted over the network interface. This goes on until some time after it stops changing, and the connection is considered dormant.
This periodic checking is what's waking the device, and for every new byte transferred the wakeup/polling period is extended and device doesn't sleep. The chattier apps are, the more awake time you'll get.
Enough of the boring details, here's how I disabled it and got rid of the com.android.phone wakeups. Root required.
Code:
$ adb shell
# su
# sqlite3 /data/data/com.android.providers.telephony/databases/telephony.db
update dcm_settings set fastdormancy="0" where numeric="310410";
.quit
# reboot
This helped me, hope it does the same for you.
Edit 2:
I've written a quick and dirty app that tries to handle this setting without need for terminals or root. Try it and report issues here: http://forum.xda-developers.com/showthread.php?t=2021248
Edit 1:
In essence you need to change a value in a sqlite database and there are many ways to do it. There are apps, use adb shell etc. Whatever works for you. If someone wants to write an app that makes this easier, be my guest
Reversal is restoring the original value "1,0,0,1000,5000,60000,3000,5000,1,8" and reboot:
Code:
update dcm_settings set fastdormancy="1,0,0,1000,5000,60000,3000,5000,1,8" where numeric="310410";
This database is not there after a wipe, so future ROM chefs wanting to include it by default should edit /etc/dcm_settings.xml as this is where the initial database contents come from. Just replace the original value with "0" for ATT.
Code:
<profile>
<siminfo
operator="ATT"
country="US"
mcc="310"
mnc="410"
extraid=""
/>
<settings
fastdormancy_param="1,0,0,1000,5000,60000,3000,5000,1,8"
ipmtu="1410"
/>
</profile>

Holy Hell!!!
so far so good...it's a shame I can only thank so much!!!

jonasl said:
Like many others I was seeing many wakeups by com.android.phone, and as noted by others this is because of fast dormancy. Or rather, because of LG's implementation of it.
I'm not gonna go into too much detail, but the offending implementation can be found in com/android/internal/telephony/LgeFDHandlerInterfaceImpl . This class is in /system/framework/com.lge.core.jar . After data activity on HSPA networks they use AlarmManager to periodically wake up and check the number of bytes transmitted over the network interface. This goes on until some time after it stops changing, and the connection is considered dormant.
This periodic checking is what's waking the device, and for every new byte transferred the wakeup/polling period is extended and device doesn't sleep. The chattier apps are, the more awake time you'll get.
Enough of the boring details, here's how I disabled it and got rid of the com.android.phone wakeups. Root required.
Code:
$ adb shell
# su
# sqlite3 /data/data/com.android.providers.telephony/databases/telephony.db
update dcm_settings set fastdormancy="0" where numeric="310410";
.quit
# reboot
This helped me, hope it does the same for you.
Click to expand...
Click to collapse
I use Comand prompt and copy these codes?

Thanks a lot for this, can you please explain how to use this code, i am rooted and am trying to run this on my computer with adb and i get a message sqlite3 not found

I plugged my phone in as charge only and ran this code using cmd.
After the end of each line simply press enter and it prompts for the next.
When you prompt for reboot, it takes a couple of seconds, for those who get confused when their phone sits there.
Anyway, the code seems to work for me, looking forward to results.
Hope this helped.

Im getting a no sqlite3 found error as well

pfoxdizzle said:
Im getting a no sqlite3 found error as well
Click to expand...
Click to collapse
I just used sqlite editor from the market and edited the value to "0". I can confirm that this process works, i have been struggling with this wakelock for 2 weeks now and have tried so many things but this is the only thing that has worked. Kudos to the OP!!:fingers-crossed:

Are you both rooted and have unlocked bootloader? Not sure why you're getting errors. Did any of you retry this process via computer cmd with USB debugging?
Sent from my LG-E970 using xda app-developers app

rooted yes. Unlocked no.

Unlock. It literally takes no time.
Sent from my LG-E970 using xda app-developers app

unlocking should not affect this. And there isnt anything worth unlocking for yet. So i will keep my warranty

Warranty is kinda meh unless you're prone to breaking your phone. But everyone does things their own way.
Are you sure that you have sqlite3 on your phone and/or are you typing the code correctly in cmd? Via computer is the easiest way.

Ok, I have my LGOG rooted and unlocked and been trying to run this and can't get it to take. I'm not a noob, and I've used cmd prompt plenty for other phones. I had to use it a ton for my HTC One X. For some reason I can't get it to recognize the phone. Any suggestions?

What's the output from the cmd prompt?
Sent from my LG-E970 using xda app-developers app

pfoxdizzle said:
Im getting a no sqlite3 found error as well
Click to expand...
Click to collapse
Something not mentioned, you are in a command prompt within the folder containing these tools right?

NVM

I'm assuming this fix was properly applied on my end?

Yoreo said:
I'm assuming this fix was properly applied on my end?
Click to expand...
Click to collapse
That's what I got, too.
I think yes, that took care of it.

LTE issues
I'm guessing this fix won't necessarily disable LTE when available and the phone would be able to switch back to LTE from DC-HSPA+ when it sees that LTE is available in the area?

Murasakiii said:
What's the output from the cmd prompt?
Sent from my LG-E970 using xda app-developers app
Click to expand...
Click to collapse
Hopefully the image is coming through on the errors I'm getting while trying this. I'm sure I'm tired and doing something stupid, I just can't figure it out.

Related

[How To][Fix] Improve Battery Life By Removing "Cell Service" ORIGONAL THREAD.

[How To][Fix] Improve Battery Life By Removing "Cell Service" ORIGONAL THREAD.
Improve Battery Life By Removing Cell Standby:
Explanation:
Cell Standby is the service that your phone, in this case the nook color, uses to communicate with the cell tower. It has three main components, two of witch are located on the nook color: Mms.apk, Phone.apk, TelephonyProvider.apk. This service regulates the communication of the device with a GSM or CDMA based mobile network. The nook color doesn't have a need for this because of the lack of a cell radio. If we remove both Phone.apk, and TelephonyProvider.apk from the nook color, the service will no longer drain battery, and the device will still run!​
Method One: backs up both files in c:/
adb pull /system/app/Phone.apk c:/
adb pull /system/app/TelephonyProvider.apk c:/
adb shell
mount -o remount,rw /dev/block/mmcblk0p5 /system
rm /system/app/Phone.apk
rm /system/app/TelephonyProvider.apk
reboot​
Method Two: renames both files so they are no longer active.
adb shell
mount -o remount,rw /dev/block/mmcblk0p5 /system
mv /system/app/Phone.apka
mv /system/app/TelephonyProvider.apka
reboot​
Method Three: use root explorer
Pick witch method you like, back up or rename, and simply do it in root explorer. Just remember to reboot when your done.​
Questions and Answers:
Q: I did this but i still see the "Phone Idle" service running, what's up with that?
Phone Idle is the service that keeps the phone going when nothing is happing, like sitting with your car in neutral the engine still pumps small amounts of gas into the pistons to keep it going. Cell standby is the only service that I know of associated with actual specific phone to cell network communication.​
Nice find. However, I had no mms.apk which may be due to the rooting method I used. I used RootExplorer to rename phone.apk and TelephonyProvider.apk to new filenames with a .bak extension. Rebooted and I can see the service is no longer running.
Yes, I have done this and also didn't have mms.apk. Great find! And, when checking running services, I see something called "IN-STORE SERVICE". Is it possible that this can be stopped? I think it's an app watching for a possible update?
docfreed said:
Yes, I have done this and also didn't have mms.apk. Great find! And, when checking running services, I see something called "IN-STORE SERVICE". Is it possible that this can be stopped? I think it's an app watching for a possible update?
Click to expand...
Click to collapse
I also found yesterday (while sniffing for WEP on laptop) that the wifi sends probes for something like "attwifibarnesnobles". It must be linked to that service. Didn't find a way to disable it yet.
Unless you're paranoid, why would you want to disable it? That service is how B&N detects your device in-store to be able to give you special treatment, offers, etc when connected to in-store WiFi. It's not doing any harm as far as I'm concerned. Of course, I'm only interested in removing services that are still running even though the associated hardware is missing. Done with that.
boutch55555 said:
I also found yesterday (while sniffing for WEP on laptop) that the wifi sends probes for something like "attwifibarnesnobles". It must be linked to that service. Didn't find a way to disable it yet.
Click to expand...
Click to collapse
If you disable the in store service or the B&N services you will disable the Barnes and Noble services for in-store book reading. If that's not your thing, go for it.
But if you use your Nook for anything B&N that may be something you break. fyi.
mrodlies said:
The nooks system image still has both the Phone.apk and TelephonyProvider.apk
If we remove both of these .apk's the "cell standby" service will never run and drain life.
Must have rooted nook color, adb access/root explorer, and a brain.
1. Type this up in adb or do it in root explorer:
adb pull /system/app/Mms.apk c:/
adb pull /system/app/TelephonyProvider.apk c:/
adb shell
mount -o remount,rw /dev/block/mmcblk0p5 /system
rm /system/app/Mms.apk
rm /system/app/TelephonyProvider.apk
reboot
Its as simples as that. Cell standby no longer runs, and therefore no longer drains valuable battery life, and the old .apk's are backed up if we need them later for some odd reason.
Click to expand...
Click to collapse
I have a feeling poster copied and pasted this from somewhere because notice how his first sentence says "Phone.apk and TelephonyProvider.apk" but then his script says "Mms.apk"....what happened to Phone.apk because there is no Mms.apk in the system folder on any Nook I have. So below is the corrected script and also this entire process in done in dos instead of in adb;
Code:
adb shell mount -o remount,rw /dev/block/mmcblk0p5 /system
adb shell mv /system/app/Phone.apk /system/app/Phone.OLD
adb shell mv /system/app/TelephonyProvider.apk /system/app/TelephonyProvider.OLD
adb reboot
There is no adverse effect from doing this & it's confirmed after while in NookTools there is no Cellstandy service running. Your files are just renamed instead of removed.
Want to undo this process?
Code:
adb shell mount -o remount,rw /dev/block/mmcblk0p5 /system
adb shell mv /system/app/Phone.OLD /system/app/Phone.apk
adb shell mv /system/app/TelephonyProvider.OLD /system/app/TelephonyProvider.apk
adb reboot
Effects on battery life of removing Cell Services
My battery life on the Nook has really been excellent thus far. I have been using it to do all of my web browsing, and have not even turned my laptop on except for using ADB to tinker with the Nook. I am able to get 2 days of substantial use including some gameplay and listening to podcast or music. So it will be interesting to see what effect removing the Cell Services has on battery life.
I too did not have the Mms.apk on my Nook already and instead removed the Phone.apk.
A huge side benefit of using my Nook is that I haven't been tinkering with my Droid hardly at all now. I've offloaded many of the duties that I relied on my phone to handle off on to the Nook Color. This has drastically increased the battery life of my phone and I now can get away with charging it once every other day. I was routinely charging my Droid twice a day previously.
I seem to always be around a WiFi network so I haven't had to really use my Droid WiFi tether to share internet with the Nook.
The nook really has changed how I use all my devices and is now my primary internet access device. Something I totally didn't expect would happen when I purchased the device.
Nice find. Cell standby was using 75% of my battery!
Sent from my NookColor using the XDA app
Nice find but i'm gonna lock this due to incorrect code/
Use http://forum.xda-developers.com/showthread.php?t=888216
Reopened.......although from the findings i see.
You reworded from http://nookdevs.com/NookColor:_Nookie_Froyo_Tips#Removing_Cell_Standby_Battery_Usage
To be honest you cant miss-type phone.apk with mms.apk
So i reopened the thread cause you asked me to.
Although going into someone else thread and commenting the words you did, was/is uncalled for.
He only fixed the commands you "found" and made scripts for the commands.
How about you start linking your source? Cause the source i see has the same mistake.
It happens. We ALL are here to better our Nooks.
Mikey1022 said:
Reopened.......although from the findings i see.
You reworded from http://nookdevs.com/NookColor:_Nookie_Froyo_Tips#Removing_Cell_Standby_Battery_Usage
To be honest you cant miss-type phone.apk with mms.apk
So i reopened the thread cause you asked me to.
Although going into someone else thread and commenting the words you did, was/is uncalled for.
He only fixed the commands you "found" and made scripts for the commands.
How about you start linking your source? Cause the source i see has the same mistake.
It happens. We ALL are here to better our Nooks.
Click to expand...
Click to collapse
My source was my brain. The other posts source was me, and no credit was given.
Sent from my LogicPD Zoom2 using XDA App
OMFG.
Can we just get this re-locked?
mrodlies said:
My source was my brain. The other posts source was me, and no credit was given.
Sent from my LogicPD Zoom2 using XDA App
Click to expand...
Click to collapse
Either it is a HUGE coincidence or the odds of you picking the same 3 files to delete in system folder is astronomical. Since one of the three files never existed
http://forum.xda-developers.com/Revision as of 21:22, 22 December 2010 (view source)http://nookdevs.com/index.php?title=NookColor:_Nookie_Froyo_Tips&diff=4413&oldid=4393
Are you still gonna lie to a mod and the community??
Since your thread was created after the fact......... Yesterday, 04:16 AM
Anyways, have some respect
Mikey1022 said:
Either it is a HUGE coincidence or the odds of you picking the same 3 files to delete in system folder is astronomical. Since one of the three files never existed
http://forum.xda-developers.com/Revision as of 21:22, 22 December 2010 (view source)http://nookdevs.com/index.php?title=NookColor:_Nookie_Froyo_Tips&diff=4413&oldid=4393
Are you still gonna lie to a mod and the community??
Since your thread was created after the fact......... Yesterday, 04:16 AM
Anyways, have some respect
Click to expand...
Click to collapse
if you know anything about the actual android system you would know that on regular android phones that have the "cell standby" service is always three files: Phone.apk, Mms.apk, and TelephonyProvider.apk. So my natural response to removing this service was to try and delete all three of those files. If you want to call me a lie, i cant change what you think, but if you want the truth, i didnt copy it from any where, it was just head knowledge of messing with android for 2+ years.
some people just like a good ol witch-hunt for credit
i read the OP and moved out what was there and have some pretty damn good battery life.
thx to the OP
nice find dude don't worry about the haters
Thanks OP! I tried it last night and already I can tell a difference!
Sent from my rooted Nook Color using XDA App
I am the person who added this information to the Wiki and I did it specifically for the Nookie Froyo build, which is why it includes the Mms.apk.
I could care less one way or the other who uses it or for what purpose, I am just glad that we can use it on our devices using the stock software as well as the Froyo build.
It is perfectly reasonable to expect that more than one person could come to the same conclusion about the impact of removing these services, so please ease up on mrodlies and lets get on with life..
In addition, this "trick" has been documented several times in threads for different tablet devices without cell based services....
-Robert
BertoJG said:
I am the person who added this information to the Wiki and I did it specifically for the Nookie Froyo build, which is why it includes the Mms.apk.
I could care less one way or the other who uses it or for what purpose, I am just glad that we can use it on our devices using the stock software as well as the Froyo build.
It is perfectly reasonable to expect that more than one person could come to the same conclusion about the impact of removing these services, so please ease up on mrodlies and lets get on with life..
In addition, this "trick" has been documented several times in threads for different tablet devices without cell based services....
-Robert
Click to expand...
Click to collapse
Leave it to Dr. Bunson Honeydew to put it all in perspective.

How to change Data Usage Policy - CM7

I am putting this one outside of the CM7 thread only because it seems to have been asked with no answer.
I have used beta #2 and #4 and in both instances i get a Data has exceeded limit warning and my speed gets throttled down to 300kb/s I am looking for a way to edit these settings but am yet to find it.
Any help would be greatly appreciated.
EDIT FIX Found!
Dug through some files with root explorer
data/data/com.android.providers.settings/databases/settings.db
(need to have a db editor on your device)
open secure
What i changed was throttle_threshold_bytes
and added 000 on the end of the number. increased the limit to 3gb upon reset which is fine by me. I am sure you can play with those settings a bit more i just chose not too.
I have also been having this issue. Did this make the notification go away?
yes just have to reboot after. with my exact changes it will come back if I use more than 3GB in a day (highly unlikely)
I have an unlimited data plan so I wasn't experiencing any loss of data speed but the notification was annoying!
I did this and it worked for me. Ill add this to the CM7 issue I started on the website as a temp fix
it seemed to effect me, but it couldn't have been placebo due to the area i work in. Oh didn't see your issue there or I would have posted there as well.
y2whisper said:
it seemed to effect me, but it couldn't have been placebo due to the area i work in. Oh didn't see your issue there or I would have posted there as well.
Click to expand...
Click to collapse
Its issue 126 I think.
For anyone else looking at this: I used root exprlorer
This changes the throttling but does not get rid of the notification.
Thanks for the tip anyway.
There has to be a way to disable.
Update:
A bit more digging around in database the OP mentioned led me to set throttle_polling_sec to 0. This seemed to disable the policy after a restart. It no longer shows in settings and I don't get the notification anymore.
Sent from my MB860 using xda premium
Had the same issue with the official BETA of CM7. Don't know why it does that because no one report the issue... I did try to change the throttle_threshold_bytes with my contract data plan 1 gig (1073741824) and rebooted. I confirm it solve the issue
Many thanks!
Are there any free DB editors you could recommend?
cbc5714 said:
Are there any free DB editors you could recommend?
Click to expand...
Click to collapse
Here ya go.. just copy the settings.db to your pc and edit it and push it back..
http://sqliteadmin.orbmu2k.de/

FINALLY! Roam only under Mobile Networks

Okay, well, using MrGregs info in the Hero forum, I have managed to get Roam Only built into the Phone apk. This should allow you to switch to Roam only from Roaming under Wireless & Networks - Mobile Networks.
Issues:
when you select Roam Only, the button does not stay pressed, it is selected, but does not show it, the other 2 options stay checked, just not this one.
It takes a while to switch to Roam Only
Without using the prl trick, you will only be using 1X data...while I believe this is true, I have found that sometimes while roaming, I will have the 3g icon.
This was done to the synergy Phone.apk, so you should be using that Rom. If any other developers want support, I can lay out what I did. This was done with MrGregs info, but I was having issues getting the Phone.apk to decompile to edit. I figured out how to use 2 tools to accomplish this...again, I deserve no credit, as I did not figure out the edits myself.
To enable this, dump Phone.apk to the same directory as adb. Open a command prompt and change directory to your adb folder.
Code:
adb shell sysrw
adb shell mount (check and make sure system is rw)
adb shell rm /system/app/Phone.apk
adb push Phone.apk /system/app/Phone.apk
adb shell
cd /system/app
chmod 644 Phone.apk
ls -l (check and make sure that all your files are -rw-r--r--
reboot
when your phone reboots, you can go to Wireless & networks -> Mobile Networks -> Roaming -> Roam Only
Wait for the triangle to appear
Open Phone and dial *2 - Sprint Zone should come up (if it doesnt its because you dont have it installed) and your voice and data should be green. Click on call sprint and it should give you a prompt for a voice roaming call. Done. I had a red mark for voice until I rebooted, then it was green. To switch back, change Roam Only to Automatic or Sprint Only.
Hope someone finds this useful
If there is an issue, let me know. I know I cant fix it, but if I can get some devs to jump on this, maybe they can fix whatever is wrong. There is one thing that worries me and that is the original Phone.apk I used is 1MB larger than this one, maybe better compression?
Method for doing this yourself:
1. Download phone.apk.diff.zip from here
2. Also download baksmali, smali, and apktool - google should find these pretty easily, if there is a comment, I can post links (remove the -1.2.8 from the jar files).
3. Move these to a location (from here on, I will refer to this location as ANDW)
4. From you rom, grab Phone.apk, com.htc.resources.apk, framework-res.apk and move these to ANDW.
5. Make a backup of Phone.apk -> Phone.bak
6. Extract classes.dex from Phone.apk (only that file is needed, so I opened Phone in 7zip and dragged classes.dex to ANDW)
7. Extract phone.apk.diff.zip (should have 3 files)
8. Open an elevated command prompt and run this command from your location:
Code:
java -Xmx512m -jar baksmali.jar classes.dex
9. Goto out\com\android\phone
10. Open CdmaRoamingListPreference$MyHandler.smali in a text editor (preferably Notepad ++)
11. Search for
Code:
const/4 v3, 0x3
and change to
Code:
const/4 v3, 0x1
12. Save file
13. Open CdmaRoamingListPreference.smali
14. Search for
Code:
const/4 v2, 0x3
and change to
Code:
const/4 v2, 0x1
14a. for each of these const/4 v2, 0x* MrGreg made comments for each one 2=automatic, 4=sprint only, 1=roam only, you can make these comments is you want, also make them for the pswitch grouping a few lines down if you are going to do that. His changes are in the diff.zip
15. Save file
16. Go back to your elevated command prompt and run this command
Code:
java -Xmx512m -jar smali.jar out -o classes.dex
apktool if framework-res.apk
apktool if com.htc.resources.apk
apktool d -s Phone.apk
17. Goto Phone\res\values and open arrays.xml in your editor
18. Search for
Code:
<string-array name="cdma_system_select_choices_sprint">
and add a new line after "Sprint Only"
19. Insert this line in the new line
Code:
<item>Roam only</item>
20. Search for
Code:
<string-array name="cdma_system_select_values_sprint">
and insert this in a new line under "0"
Code:
<item>3</item>
21. Save file
22. Run this from an elevated command prompt
Code:
apktool b Phone
22. Goto Phone\dist and open Phone.apk in 7zip.
23. Open Phone.bak in 7zip also...so you should have an explorer window set to your location and 2 7zip windows (one with the newly created Phone.apk from apktool and Phone.bak that is a backup of Phone.apk original from your rom)
24. In the explorer window, drag your newly created classes.dex into the Phone.bak 7zip window and drop (yes overwrite...if you want, delete both classes.dex and resources.arsc, that way there isnt an issue)
25. In your Phone.apk 7zip window, drag resources.arsc to the Phone.bak 7zip window and drop
26. Save Phone.bak and change the extension to Phone.apk
27. You are now done and can cleanup everything but your new Phone.apk
I am doing most of this from memory as I want to get this out for those that want to do this...I will be redoing the edits with these instructions and see if everything is correct.
The reason you want to drag and drop into your original Phone.apk/bak is because you can not resign system apks...this method bypasses that issue.
Please give credit to MrGreg
Hmm nice, ill give this a try when i get home.
I tried this and I get a recording from the nice Verizon lady saying she cant authenticate my phone . Any suggestions ?
Sent from my PG86100 using xda premium
Definitely nice but I already bought his app long time ago since no one got this going on the og Evo
Sent from my PG86100 using xda premium
cbrown245 said:
I tried this and I get a recording from the nice Verizon lady saying she cant authenticate my phone . Any suggestions ?
Sent from my PG86100 using xda premium
Click to expand...
Click to collapse
What are you doing when you get the recording. If you are using the Sprint Zone app, it will not authenticate, but if you are calling...lets say your significant other...it should just have a prompt saying you are making a roaming call, and once you hit okay, it should connect. I mainly did this for the data roaming.
Another issue I noticed is it seems real finicky depending on how you hold the phone and whether or not it loses roaming service - does not affect when you are not roaming, only when roaming...could have something to do with tweaks in the rom, but figured I would let everyone know.
Also, jkcpsal...this is not to take away sales from MrGregs Roam Control app as I am sure it offers more features or will as it can be updated. I would suggest buying the app for those who can.
Roam control ape also does not require root for select HTC devices, like the 3D.
Sent from my HTC Evo 3D
cbrown245 said:
I tried this and I get a recording from the nice Verizon lady saying she cant authenticate my phone . Any suggestions ?
Sent from my PG86100 using xda premium
Click to expand...
Click to collapse
I've posted this a few other times as a response to this question (though no one seems to listen) as I had the EXACT same problem as you. Call sprint, get to tech support and have them do an hrl refresh (reset, reload, etc....) and that should do the trick.
I'd appreciate you detailing the changes that allow that option. I like to edit my own files for my ROM.
edit - does this also roam 3g data? I've used Roam Control some and it seems to always be 1x data (could be my location though).
Thanks for this! I personally bought roam control but found it not really reliable at all! Thanks to this tweak I can just trigger it and it goes to roaming perfectly fine without any glitching out or needing a reboot.
Sent from my PG86100 using Tapatalk
I am glad people are saying this works as that was my biggest fear when I was posting this.
To mwalt2, this will only allow 1x from my testing, I have not gone to an area where I can roam 3g yet (though I think the only reason I can in this one spot is because of an agreement Sprint has). This should only allow 1x. The way to get 3g roaming is by using a Verizon prl. tecknofile (sp?) had one posted in the EVO 4g forum. You get that and update your prl and you should get 3g roaming. This method does require extra work as I had to restart the phone every time I changed my prl, even if it was the original. So, if you are going to roam a short while, I would not recommend the prl method.
I have not heard of the prl issue or having to call Sprint for anything other than the s-off method for the EVO 3d. I am glad you said something in case I get that issue, I will know what to do. I figured since he had not posted a comment, I answered his question, but still good to hear your suggestion.
I will post the method as soon as i am at a pc. You do need to have apktool, smali, and baksmali so go ahead and download those. Also grab a copy of Phone.apk, place it in the same spot as apktool and the other 2 files. Open the apk in 7zip and pull out classes.dex. The rest will come later today.
Sent from my PG86100 using XDA App
Hey, is there anyway to make it possible to make the phone use 2G/3G respectfully? I miss that from my touch pro.
Sent from my PG86100 using Tapatalk
mwalt2 said:
I'd appreciate you detailing the changes that allow that option. I like to edit my own files for my ROM.
edit - does this also roam 3g data? I've used Roam Control some and it seems to always be 1x data (could be my location though).
Click to expand...
Click to collapse
X2
Can you document the changes?
Thanks
Should Root Explorer work to replace phone.apk instead of using ADB?
letsgoflyers81 said:
Should Root Explorer work to replace phone.apk instead of using ADB?
Click to expand...
Click to collapse
Yes just be sure to fix permissions
Sent from my PG86100 using xda premium
sumredhed567 said:
I've posted this a few other times as a response to this question (though no one seems to listen) as I had the EXACT same problem as you. Call sprint, get to tech support and have them do an hrl refresh (reset, reload, etc....) and that should do the trick.
Click to expand...
Click to collapse
I just asked the rep to do that. She had no idea what I was talking about. >_<
I'm wondering why nobody has asked this yet, but here goes... Why, and when would constant roaming be useful?
Sent from my PG86100 using XDA App
oohaylima said:
I just asked the rep to do that. She had no idea what I was talking about. >_<
Click to expand...
Click to collapse
I believe you are supposed to ask for a prl update - not hrl...dunno what hrl is
The reason some want roaming only is so that the phone does not keep searching for a sprint tower when you know there isnt one around.
First post will be updated shortly for the method of doing this...please stay tuned...I was trying to get the method posted earlier for everyone, but did not have a chance while working.
jthein1989 said:
I'm wondering why nobody has asked this yet, but here goes... Why, and when would constant roaming be useful?
Sent from my PG86100 using XDA App
Click to expand...
Click to collapse
If you are in an area of poor sprint coverage, but ok verizon, it can save your phone from switching back and forth / searching for towers (saves battery). It'd be nice to get 3g roaming working. I'm pretty sure I've roamed 3g on verizon in the past with my ns4g. I was surprised as I thought it was always 1x, but read that they updated roaming agreements or something.
With prl 11115 I can get 3g roaming with roam control...
Sent from my PG86100 using Tapatalk
jstn76rs said:
With prl 11115 I can get 3g roaming with roam control...
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
Where did you get that prl?
Also, first post now complete with method and I ran through a test myself.

Team Speak 3

I used the TS3 app before I rooted my phone and it worked fine. I now have root by way of Zedomaxs method, installed TS3, it worked for like 5seconds and now when I open the app I get a blank screen. Anyone else having this issue?
Sent from my EVO using xda premium
William said:
I used the TS3 app before I rooted my phone and it worked fine. I now have root by way of Zedomaxs method, installed TS3, it worked for like 5seconds and now when I open the app I get a blank screen. Anyone else having this issue?
Sent from my EVO using xda premium
Click to expand...
Click to collapse
Not specifically familar with this app, but since none of the general troubleshooting steps have been mentioned, I'll throw those out with a hope they'll resolve the issue.
Having been on both sides of this situation, as the user and as the developer, I mention the following suggestions.
First, I'd make a backup before I started experimenting.
If you suspect the issue is related to gaining root access, perhaps "unroot" and see if that fixes the app. Luckily, it is still not the norm for apps to not work on rooted devices.
Otherwise, I'd start with the specific application's data directory, essentially where it stores all its settings/cache. I'd erase this directory, which would be similar to uninstalling/reinstalling the app.
If wiping the app's specific data directory didn't work, I would uninstall/reinstall the app. If that still didn't work, I would reach out to the developers of the specific application and supply them all the troubleshooting steps which have been taken, type of your specific device, and request assistance.
One of the additional pieces of information which can be very helpful for troubleshooting and for developers is a copy of the logcat off the device showing the application and error occurring.
Hope that helps!
Nice checklist! Shortly after posting this I was messing round w/my phone. I pressed my volume up button and noticed that instead of my ringer volume meter I was getting the media volume meter. So I went into my task manager to see what could possibly be running that would be characterized as media and found nothing. Next thing I did was reboot my phone, opened TS3 and everything's fine now. I keep forgetting to reboot my phone after I in/uninstall anything on it. I always do this w/any computer I'm using/working on. Guess the same goes w/phones now. But thanks again for the useful intel!
Sent from my EVO using xda premium

[Workaround] Slacker Freeze on Phone Reboot

Hello,
Does anyone have trouble the first time they use Slacker after a re-boot?
I rooted my phone and everything works well except Slacker. I can live with this one issue, I like CM10 a lot.
Workaround (thanks to MDMOWER)
Do these one at a time, don't try to copy/paste the whole thing:
./adb root
./adb remount
./adb shell
# Make sure you have a # prompt now. If $ prompt, the following will not work.
sed -i 's/Multimedia3/MultiMedia3/g' /system/etc/snd_soc_msm/snd_soc_msm_2x
sed -i 's/lpa\.decode=false/lpa\.decode=true/g' /system/build.prop
exit
./adb reboot
wait for phone to reboot
./adb pull /data/app/com.slacker.radio-1.apk ./
#From the phone, Uninstall Slacker
./adb install -s com.slacker.radio-1.apk
Do your own thing.
This might be related to the problem with media playback in general after a reboot. If you try playing audio using a different app after a reboot you will likely experience the same issue. I first came across it using Google Music and reported it in the CM thread. I don't think there's been any progress on it.
altayh said:
This might be related to the problem with media playback in general after a reboot. If you try playing audio using a different app after a reboot you will likely experience the same issue. I first came across it using Google Music and reported it in the CM thread. I don't think there's been any progress on it.
Click to expand...
Click to collapse
Thanks for the info. I'll widen my search to more generic media.
Thanks for the hint.
I found a build.prop modification that seems to work: lpa.decode=truefalse
Reboot and Slacker worked first try. Any idea what lpa.decode is responsible for?
Sum Dumb Guy said:
I found a build.prop modification that seems to work: lpa.decode=true
Click to expand...
Click to collapse
Setting it to true fixed the problem completely? Did it have any side effects?
Sum Dumb Guy said:
Reboot and Slacker worked first try. Any idea what lpa.decode is responsible for?
Click to expand...
Click to collapse
It looks like it's an option to enable low power audio. This and this were all I could find about it.
altayh said:
Setting it to true fixed the problem completely? Did it have any side effects?
It looks like it's an option to enable low power audio. This and this were all I could find about it.
Click to expand...
Click to collapse
At this point I haven't encountered any ill effects. Granted, I mainly use my "phone" for music, GPS, text and email (in that order) and all have continued to work as needed.
Sum Dumb Guy said:
Thanks for the hint.
I found a build.prop modification that seems to work: lpa.decode=true
Reboot and Slacker worked first try. Any idea what lpa.decode is responsible for?
Click to expand...
Click to collapse
lpa.decode is already set to true. Do you mean you set it to false? Was it sufficient or did you also have to change lpa.use-stagefright?
My bad, you're correct, it should say lpa.decode=false. I haven't changed anything else in the build.prop. Are there other adjustments that might be beneficial? What is the lpa.use-stagefright all about? It's not in my current build.prop.
Sum Dumb Guy said:
My bad, you're correct, it should say lpa.decode=false. I haven't changed anything else in the build.prop. Are there other adjustments that might be beneficial? What is the lpa.use-stagefright all about? It's not in my current build.prop.
Click to expand...
Click to collapse
A logcat that captures the crash would be helpful. Keeping low-power-audio enabled is generally a good idea. While you're at it, also grab dmesg.
mdmower said:
A logcat that captures the crash would be helpful. Keeping low-power-audio enabled is generally a good idea. While you're at it, also grab dmesg.
Click to expand...
Click to collapse
Will do.
I'll work on getting those reports this weekend. In the meantime, I'll set my build.prop back to default.
Sum Dumb Guy said:
Will do.
I'll work on getting those reports this weekend. In the meantime, I'll set my build.prop back to default.
Click to expand...
Click to collapse
No need to provide a logcat, I've reproduced the issue. Seems LPA isn't working right now, so setting lpa.decode=false is the best thing to do for now.
mdmower said:
No need to provide a logcat, I've reproduced the issue. Seems LPA isn't working right now, so setting lpa.decode=false is the best thing to do for now.
Click to expand...
Click to collapse
Great, I'm glad you've reproduced the issue. Is there any onther setting I should consider besides lpa.decode=false?
BTW, I tried the PAC rom from goo. Didn't like it much, my phone rebooted randomly. Back to CM10.1RC2.
Thanks,
dafteed and
mdmower said:
No need to provide a logcat, I've reproduced the issue. Seems LPA isn't working right now, so setting lpa.decode=false is the best thing to do for now.
Click to expand...
Click to collapse
mdmower,
Since you've reproduced the issue, have you been able to determine if it's a CM10.1 issue or an Incredible 4g issue? Also, I've seen a couple posts about LPA and stagefright but not a lot of real info as to what they do or the consequences of turning them on or off. I currently have lpa.use-stagefright=true and lpa.decode=false. Should I expect reduced battery life or lack of DSP control? I can't hear any difference with stagefright not included, true, or false. I don't know if that's related to the LPA.decode=false or not.
Thanks,
J
Sum Dumb Guy said:
mdmower,
Since you've reproduced the issue, have you been able to determine if it's a CM10.1 issue or an Incredible 4g issue? Also, I've seen a couple posts about LPA and stagefright but not a lot of real info as to what they do or the consequences of turning them on or off. I currently have lpa.use-stagefright=true and lpa.decode=false. Should I expect reduced battery life or lack of DSP control? I can't hear any difference with stagefright not included, true, or false. I don't know if that's related to the LPA.decode=false or not.
Thanks,
J
Click to expand...
Click to collapse
It is a fireball issue. For now, the lpa.decode=false fix is sufficient and a good idea. It should have negligible impact on battery life.
mdmower said:
It is a fireball issue. For now, the lpa.decode=false fix is sufficient and a good idea. It should have negligible impact on battery life.
Click to expand...
Click to collapse
Is this likely to be incorporated into the next build, or will it remain unchanged to keep the CyanogenMod ROM pure?
EDIT: I see you already addressed this in the CyanogenMod thread. I take it you'll make the change in an upcoming build.
Slacker Current Status
I started using RC4 this weekend. It seems to be pretty good: Slacker has been +95% stable. One time it didn't want to play or update the cache but a force close and reopen solved that issue. Another of my other apps that was a little unstable (TDA Trader) is working without any problems.
MDMower: Thanks for your support and work on CM10
It seems a couple typos messed up low power audio (Multimedia instead of MultiMedia) - thanks go to intervigil for finding the error. This bug is quite easy to fix.
Step 1) Settings > Developer options > Root access: Apps and ADB
Step 2) Type these lines one at a time at a command prompt (do not copy/paste the whole block at once):
Code:
adb root
adb remount
adb shell
# Make sure you have a # prompt now. If $ prompt, the following will not work.
sed -i 's/Multimedia3/MultiMedia3/g' /system/etc/snd_soc_msm/snd_soc_msm_2x
sed -i 's/lpa\.decode=false/lpa\.decode=true/g' /system/build.prop
exit
adb reboot
It should be safe to perform even if you're unsure of whether lpa.decode is currently set to true or false.
mdmower said:
It seems a couple typos messed up low power audio (Multimedia instead of MultiMedia) - thanks go to intervigil for finding the error. This bug is quite easy to fix.
Step 1) Settings > Developer options > Root access: Apps and ADB
Step 2) Type these lines one at a time at a command prompt (do not copy/paste the whole block at once):
Code:
adb root
adb remount
adb shell
# Make sure you have a # prompt now. If $ prompt, the following will not work.
sed -i 's/Multimedia3/MultiMedia3/g' /system/etc/snd_soc_msm/snd_soc_msm_2x
sed -i 's/lpa\.decode=false/lpa\.decode=true/g' /system/build.prop
exit
adb reboot
It should be safe to perform even if you're unsure of whether lpa.decode is currently set to true or false.
Click to expand...
Click to collapse
I'm on RC5 now. I did the above and after a re-boot confirmed that lpa was changed to true. I'm not sure how to check if the other command executed correctly. Slacker started and I was able to play a streaming station without any problems.
My cached stations did not work. I received a message: Tuning Error Station not found. I closed (using quit from the slacker menu) and reopened but cached still didn't work. forced close, reopen slacker and both streaming and cached worked. I rebooted a couple of times with the exact same results.
For grins, I forced close Slacker immediately after a reboot and cache worked first time.
Any ideas, do you want a logcat, or should I start something with Slacker?
Thanks,
I think I found a workaround. I uninstalled Slacker and installed through ADB onto the sdcard.
The current setup:
10.1 nightly 7.2.13
Followed your instructions for MultiMedia. I don't know if it's still needed, but I figured out what the command sed was after I ran it.
./adb root
./adb remount
./adb shell
# Make sure you have a # prompt now. If $ prompt, the following will not work.
sed -i 's/Multimedia3/MultiMedia3/g' /system/etc/snd_soc_msm/snd_soc_msm_2x
sed -i 's/lpa\.decode=false/lpa\.decode=true/g' /system/build.prop
exit
./adb reboot
wait for phone to reboot
./adb pull /data/app/com.slacker.radio-1.apk ./
Uninstall Slacker
./adb install -s com.slacker.radio-1.apk
First time opening Slacker it wanted to reset the cache. Select OK.
No problem listening to streaming or cache stations.
Rebooted a couple of times, kept working, no problem.
Weeeeeeeeeeeeeeee!!!!!!!!!!!!!!!!!!!!!!

Categories

Resources