[How To][Fix] Improve Battery Life By Removing "Cell Service" ORIGONAL THREAD. - Nook Color Android Development

[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.

Related

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.

Wireless Tether for Root Users not available on GS2, any way around this?

Would downloading the .apk from an outside source provide the same results? Also, would AT&T be onto this?
I sideloaded the app because I like the Bluetooth pan tethering capability... Was able to set up a working ad-hoc network but not able to get Bluetooth tethering working.
I prefer the phone's built in wireless tethering as it's a true access point
Just delete tetheringmanager2.apk from /system/app to use the phone's built in tethering.
Sent from my SAMSUNG-SGH-I777 using xda premium
V3nomous said:
I prefer the phone's built in wireless tethering as it's a true access point
Just delete tetheringmanager2.apk from /system/app to use the phone's built in tethering.
Click to expand...
Click to collapse
+1 or if you dont want to delete the file just rename it to tetheringmanager2.ap
On cm7 wireless tethering works perfectly. I hadn't ever tried it until it recently got enabled. I tethered my captivate to it that didn't have a similar card in it just to test it out. I got really good download and upload speeds on the Cappy wifi tethered too.
Sent from My KickAss CM7 Captivate
Alright ill try removing that file, would freezing it give the same results?
Also, I dont wanna get caught by AT&T, ive heard about people getting letters, etc.
Built-in wi-fi hotspot is better becuse it is a true wi-fi AP. Wireless Tether app only gives you adhoc network that a lot of devices, like Android tablet, are not compatible with.
You get caught regardless what app you use. AT&T judge you by the amount of data you use and what's in those data. They could care less what tethering app you use.
CollegeProfesor said:
Alright ill try removing that file, would freezing it give the same results?
Also, I dont wanna get caught by AT&T, ive heard about people getting letters, etc.
Click to expand...
Click to collapse
Freezing it with TiBU is similar to removing in that it will not run, but it is still there incase you need it for something later on.
Good luck with avoiding the letter...
Don
dlwoodjr said:
Freezing it with TiBU is similar to removing in that it will not run, but it is still there incase you need it for something later on.
Good luck with avoiding the letter...
Don
Click to expand...
Click to collapse
Well if im going to run into problems with AT&T im not going to bother.
Thanks though
How do you rename it?
adb shell
cd /system/app
mv TetheringManager2.apk TatheringManager2.ap
mv: can't rename 'TheringManager2.apk': Read-only file system
Before adb shell:
Code:
adb remount
Fluffster said:
How do you rename it?
adb shell
cd /system/app
mv TetheringManager2.apk TatheringManager2.ap
mv: can't rename 'TheringManager2.apk': Read-only file system
Click to expand...
Click to collapse
Or find it with Root Explorer...long press...go down to Rename.
Sent from my SAMSUNG-SGH-I777 using XDA App
tylerdurdin said:
Or find it with Root Explorer...long press...go down to Rename.
Sent from my SAMSUNG-SGH-I777 using XDA App
Click to expand...
Click to collapse
I don't think you read my whole message. This could not be done as it was claiming "READ ONLY" file system.
I also tried this with Root Explorer with the same results, it can not do it. I assume I need to do this from CWM or something else. If someone can help point me in the right direction as to how to do this, that would be awesome.
I did find a fix (temporary) for this using System Tuner, go under apps/system then click TetheringManager and FREEZE it, once you do that you can Wifi Tether with no problem, perm fix? Dont know.. But that is working right now.
Fluffster said:
I don't think you read my whole message. This could not be done as it was claiming "READ ONLY" file system.
I also tried this with Root Explorer with the same results, it can not do it. I assume I need to do this from CWM or something else. If someone can help point me in the right direction as to how to do this, that would be awesome.
I did find a fix (temporary) for this using System Tuner, go under apps/system then click TetheringManager and FREEZE it, once you do that you can Wifi Tether with no problem, perm fix? Dont know.. But that is working right now.
Click to expand...
Click to collapse
Adb remount
Sent from my SAMSUNG-SGH-I777 using XDA App
Fluffster said:
I don't think you read my whole message. This could not be done as it was claiming "READ ONLY" file system.
I also tried this with Root Explorer with the same results, it can not do it. I assume I need to do this from CWM or something else. If someone can help point me in the right direction as to how to do this, that would be awesome.
I did find a fix (temporary) for this using System Tuner, go under apps/system then click TetheringManager and FREEZE it, once you do that you can Wifi Tether with no problem, perm fix? Dont know.. But that is working right now.
Click to expand...
Click to collapse
In Root Explorer, when in /system/app, click the button at the top that says "Switch to R/W." Then rename it.
Entropy512 said:
Before adb shell:
Code:
adb remount
Click to expand...
Click to collapse
That did the trick.. Thanks

Disable Fast Dormancy to prevent com.android.phone wakeups

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.

[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!!!!!!!!!!!!!!!!!!!!!!

Unlimited tethering mod for T-Mobile S5

Well I mostly just cobbled together some older hacks for the S4, Nexus 4, Nexus 5, etc.
and I think I managed to disable the provision check for tethering.
You need root (of course) and know how to follow directions exceedingly well.
First, grab these files and put them into a directory on your computer.
http://www.mediafire.com/download/zy7drzl7plcjz4k/TetheringProvision.apk
http://busybox.net/downloads/binaries/latest/busybox-armv7l
http://d-h.st/Gnd
Download adb + fastboot from here:
http://forum.xda-developers.com/showthread.php?t=2640650
and extract its contents into the same directory
Now you want to upload sqlite3 and busybox-armv7l to /data/local/tmp like so:
adb push sqlite3 /data/local/tmp/
adb push busybox-armv7l /data/local/tmp/
And also TetheringProvision.apk:
adb push TetheringProvision.apk /sdcard/
adb shell
Now after you're at the shell prompt:
Code:
su
(Grant permission on phone)
mount -o remount,rw /system
cd /data/local/tmp
chmod 755 *
./busybox-armv7l sed -i '/CscFeature_Setting_HideApnList/d' /system/csc/feature.xml
./busybox-armv7l sed -i 's/pcweb.tmobile.com/fast.t-mobile.com/' /system/csc/customer.xml
DB="/data/data/com.android.providers.settings/databases/settings.db"
VAL=`/data/local/tmp/sqlite3 "$DB" "SELECT * FROM global WHERE name='tether_dun_required';"`
if [ "$VAL" == "" ]; then
/data/local/tmp/sqlite3 "$DB" "INSERT INTO global VALUES (null, 'tether_dun_required','0');"
else
/data/local/tmp/sqlite3 "$DB" "UPDATE global SET value='0' WHERE name='tether_dun_required';"
fi
cd /system/app/
cp TetheringPro* /sdcard/
rm TetheringProvision.odex
cat /sdcard/TetheringProvision.apk > TetheringProvision.apk
sync
reboot
If you still have problems with tethering you may have to delete all the APNs and add the single APN fast.t-mobile.com with all the other relevant settings.
Did you confirm working by monitor ur data?
Sent from my SM-G900T using Tapatalk
tech128 said:
Well I mostly just cobbled together some older hacks for the S4, Nexus 4, Nexus 5, etc.
and I think I managed to disable the provision check for tethering.
You need root (of course) and know how to follow directions exceedingly well.
First, grab these files and put them into a directory on your computer.
http://www.mediafire.com/download/zy7drzl7plcjz4k/TetheringProvision.apk
http://busybox.net/downloads/binaries/latest/busybox-armv7l
http://d-h.st/Gnd
Download adb + fastboot from here:
http://forum.xda-developers.com/showthread.php?t=2640650
and extract its contents into the same directory
Now you want to upload sqlite3 and busybox-armv7l to /data/local/tmp like so:
adb push sqlite3 /data/local/tmp/
adb push busybox-armv7l /data/local/tmp/
And also TetheringProvision.apk:
adb push TetheringProvision.apk /sdcard/
adb shell
Now after you're at the shell prompt:
Code:
su
(Grant permission on phone)
mount -o remount,rw /system
cd /data/local/tmp
chmod 755 *
./busybox-armv7l sed -i '/CscFeature_Setting_HideApnList/d' /system/csc/feature.xml
./busybox-armv7l sed -i 's/pcweb.tmobile.com/fast.t-mobile.com/' /system/csc/customer.xml
DB="/data/data/com.android.providers.settings/databases/settings.db"
VAL=`/data/local/tmp/sqlite3 "$DB" "SELECT * FROM global WHERE name='tether_dun_required';"`
if [ "$VAL" == "" ]; then
/data/local/tmp/sqlite3 "$DB" "INSERT INTO global VALUES (null, 'tether_dun_required','0');"
else
/data/local/tmp/sqlite3 "$DB" "UPDATE global SET value='0' WHERE name='tether_dun_required';"
fi
cd /system/app/
cp TetheringPro* /sdcard/
rm TetheringProvision.odex
cat /sdcard/TetheringProvision.apk > TetheringProvision.apk
sync
reboot
If you still have problems with tethering you may have to delete all the APNs and add the single APN fast.t-mobile.com with all the other relevant settings.
Click to expand...
Click to collapse
I'm going to give it a shot and I'll report back my results. :good:
Video tutorial anyone? Lol
Sent from my HTC One_M8 using Tapatalk
nightfox11 said:
Video tutorial anyone? Lol
Sent from my HTC One_M8 using Tapatalk
Click to expand...
Click to collapse
ya i will donate...lol
Not truly unlimited
;52223067 said:
ya i will donate...lol
Click to expand...
Click to collapse
That just removes checks for us on prepaid tmo can still see its hotspot and limits useage to 100mb. I think the only way around that is VPN but I'd love to find another way.
Want tethering to work download this rom all instructions on the thread if link don't work just copy and paste in browser.
http://forum.xda-developers.com/showthread.php?t=2723915
Can you confirm ur data on tether count toward data plan unlimited ?
Sent from my SM-G900T using Tapatalk
mrl0n3ly714 said:
Can you confirm ur data on tether count toward data plan unlimited ?
Sent from my SM-G900T using Tapatalk
Click to expand...
Click to collapse
yes I have confirmed it myself after having to dl large files and wait for my T-mobile to update the data usage but yes it takes from your personal data not Hotspot data
How u manage the user agent to rout e all traffic to person AL data? As I aware tmobile detect user agent and cut toward personal data.
Sent from my SM-G900T using Tapatalk
mrl0n3ly714 said:
How u manage the user agent to rout e all traffic to person AL data? As I aware tmobile detect user agent and cut toward personal data.
Sent from my SM-G900T using Tapatalk
Click to expand...
Click to collapse
I don't know I didn't remove the provisioning but I'm confirming it is working as it should on the rom I'm useing. without using any 3rd party app. Also it helps to decline any DIAGNOSTICS REQUESTS from t-mobile. I posted the link above earlier to the rom
undercover nerd said:
I don't know I didn't remove the provisioning but I'm confirming it is working as it should on the rom I'm useing. without using any 3rd party app. Also it helps to decline any DIAGNOSTICS REQUESTS from t-mobile. I posted the link above earlier to the rom
Click to expand...
Click to collapse
Not to call you out, but since you're the only one claiming I have no choice.. I've seen so many of these replies, where people say its working.. I go through the trouble of following and sure enough like clock work, when I hit the 5gb limit (allowed tethering for us unlimited plan) I get the webpage saying I'm over.
Until someone can confirm you are OVER the 5gb liimit, NO USING some sort of user agent to make yourself like you're on an android, I won't believe it.
sorry
Reported working on Verizon forums.
Sent from my SM-G900T using XDA Premium 4 mobile app
The tether from the rom I'm speaking if takes from your personal data plan like as if you was useing your phones Internet it does not use up tethering data aka Hotspot data. And go the the thread link everyone there is confirmed working. If you have unlimited let data like I do with my tethering 500 MG Hotspot data your good to go cause it's not using up my Hotspot data. Hope that clears up your suspicions. After all I'm just trying to help and fyi I'm not useing any 3rd party app for tethering just activating it from settings
undercover nerd said:
The tether from the rom I'm speaking if takes from your personal data plan like as if you was useing your phones Internet it does not use up tethering data aka Hotspot data. And go the the thread link everyone there is confirmed working. If you have unlimited let data like I do with my tethering 500 MG Hotspot data your good to go cause it's not using up my Hotspot data. Hope that clears up your suspicions. After all I'm just trying to help and fyi I'm not useing any 3rd party app for tethering just activating it from settings
Click to expand...
Click to collapse
Well remember, T-mobile upped the amount. Its not 500 megs, its 5gb of FREE tethering.. So are you confirming 500megs or 5gb of data? Just saying, every time I see a way to go over the allowed amount, it never works . I'll give this a try though. thanks
fastfed said:
Well remember, T-mobile upped the amount. Its not 500 megs, its 5gb of FREE tethering.. So are you confirming 500megs or 5gb of data? Just saying, every time I see a way to go over the allowed amount, it never works . I'll give this a try though. thanks
Click to expand...
Click to collapse
I'm at 40 megs of 3gb cause now my Hotspot doesn't use its data it's all off my regular data so my hot spot data never increases. I'm in the rom forum so if you need help there I'll help you set it up but it's pretty straight foward. And they didn't give me 5 gb lol guess they hate me
fastfed said:
Not to call you out, but since you're the only one claiming I have no choice.. I've seen so many of these replies, where people say its working.. I go through the trouble of following and sure enough like clock work, when I hit the 5gb limit (allowed tethering for us unlimited plan) I get the webpage saying I'm over.
Until someone can confirm you are OVER the 5gb liimit, NO USING some sort of user agent to make yourself like you're on an android, I won't believe it.
sorry
Click to expand...
Click to collapse
I am using the same ROM as the other guy and I do not have ANY tethering on my plan (for whatever reason) but it works against your data. I'm already at about 7GB through tethering from testing speeds through Steam Downloads and speed test and everything.
Unlimited data plan.. I have two APN's listed (fast.tmo.... and pcweb.tmo....) both are locked (not removable) and when I switch to pcweb, it tries to connect then reverts back to default fast.tmobile.com .
I did everything to the "T" and provisioning is still present.
Sent from my SM-G900T using XDA Premium 4 mobile app
Is it possible to make a flashable zip that can be flashed through recovery. Thanks In advance!!!
Sent from my SM-G900T using XDA Free mobile app
so i'm pretty desperate and have tried this as EVERYTHING else has failed (wifi tether, foxfi, tether router). right now im connected to my AP, but i don't know how to truly "test" the data limit to confirm if this is working properly. i obviously know how to download data, but how do i confirm which pool of data it's coming from?
also, how do you add information to a post so that it says in small grey print "post added at .... post originally created..."?
finally, when i start the 1st party hotspot, should it still say "checking your account"..?

Categories

Resources