Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
richardtrip
Old
#1  
Recognized Developer - OP
Thanks Meter 1089
Posts: 1,937
Join Date: Feb 2010

 
DONATE TO ME
Angry Fix Mobile Data drain.

After 2 days of testing i think i have a clean solution to fix the mobile data drain by setting the preferred network mode to 1 (GSM only). No need to delete or rename anything. Just update the db that is already there :).

You need a rooted device for this.

Extract the sqlite3.zip and push to your device with the following commands:

Code:
adb shell mount -o rw,remount /dev/block/mmcblk0p3 /system
adb push sqlite3 /system/bin
adb shell chmod 6755 /system/bin/sqlite3
adb shell 
su (to gain root permissions)
sqlite3 /data/data/com.android.providers.settings/databases/settings.db 'update secure set value="1" where name="preferred_network_mode"'
reboot
Attached Files
File Type: zip sqlite3.zip - [Click for QR Code] (13.5 KB, 283 views)
Richard Trip

If you like my work buy me a beer:



Follow me on twitter

Github: http://github.com/richardtrip

The Following 5 Users Say Thank You to richardtrip For This Useful Post: [ Click to Expand ]
 
agentdax5
Old
(Last edited by agentdax5; 8th May 2011 at 02:40 PM.)
#2  
Junior Member
Thanks Meter 0
Posts: 27
Join Date: May 2011
I'll give this a try. Thanks

Edit: Is it possible I can do this on the device without adb? Adb doesn't want to detect my tablet with debugging enabled.
 
daveba
Old
#3  
Senior Member
Thanks Meter 58
Posts: 398
Join Date: Mar 2010
Location: Dubai
Quote:
Originally Posted by agentdax5 View Post
I'll give this a try. Thanks

Edit: Is it possible I can do this on the device without adb? Adb doesn't want to detect my tablet with debugging enabled.
Sure, as long as you have some sort of terminal emulator installed.
 
richardtrip
Old
#4  
Recognized Developer - OP
Thanks Meter 1089
Posts: 1,937
Join Date: Feb 2010

 
DONATE TO ME
Quote:
Originally Posted by agentdax5 View Post
I'll give this a try. Thanks

Edit: Is it possible I can do this on the device without adb? Adb doesn't want to detect my tablet with debugging enabled.
with root explorer and a terminal app (eg connectbot) you can do it.
Richard Trip

If you like my work buy me a beer:



Follow me on twitter

Github: http://github.com/richardtrip

 
mrkrabs
Old
#5  
Senior Member
Thanks Meter 3
Posts: 277
Join Date: Aug 2010
What exactly does this do? Is it the same result as renaming the phone and telephone apks?

Sent from my SPH-D700 using XDA App
 
_motley
Old
#6  
_motley's Avatar
Senior Member
Thanks Meter 2369
Posts: 858
Join Date: Aug 2010

 
DONATE TO ME
Thanks! Mine is done. I'll report back later after I charge and give it a go.
Nexus 4 (my custom kernel for the 4 click here)
Nexus 7 (my custom kernel for the 7 click here) -Thx to fordwolden, the most generous guy on XDA!
Transformer Prime (my custom kernel for the Prime click here)

Always have your stuff when you need it with Dropbox. 2GB account is free! Use this LINK and you and I both get 500MB extra free
The Following User Says Thank You to _motley For This Useful Post: [ Click to Expand ]
 
_motley
Old
#7  
_motley's Avatar
Senior Member
Thanks Meter 2369
Posts: 858
Join Date: Aug 2010

 
DONATE TO ME
Quote:
Originally Posted by mrkrabs View Post
What exactly does this do? Is it the same result as renaming the phone and telephone apks?

Sent from my SPH-D700 using XDA App
This updates the database configuration setting that causes the phone to not to look for 3G networks only 2G (GSM which includes GPRS and EDGE). I'll let the OP elaborate more, but this config change must reduce the battery usage by causing the phone and telephony services to chill out out a bit when in standy mode.
Nexus 4 (my custom kernel for the 4 click here)
Nexus 7 (my custom kernel for the 7 click here) -Thx to fordwolden, the most generous guy on XDA!
Transformer Prime (my custom kernel for the Prime click here)

Always have your stuff when you need it with Dropbox. 2GB account is free! Use this LINK and you and I both get 500MB extra free
 
richardtrip
Old
#8  
Recognized Developer - OP
Thanks Meter 1089
Posts: 1,937
Join Date: Feb 2010

 
DONATE TO ME
Quote:
Originally Posted by _motley View Post
This updates the database configuration setting that causes the phone to not to look for 3G networks only 2G (GSM which includes GPRS and EDGE). I'll let the OP elaborate more, but this config change must reduce the battery usage by causing the phone and telephony services to chill out out a bit when in standy mode.
couldn't describe it better :)
Richard Trip

If you like my work buy me a beer:



Follow me on twitter

Github: http://github.com/richardtrip

 
mrtoken
Old
#9  
Member
Thanks Meter 6
Posts: 85
Join Date: Mar 2010
2g = only poll cell if request is made that needs cell, 3g = poll all the time, which means that if you change to only 2g then it should not check for cell if you are in wifi range.
I am sure thats how the tech works if i remember my time at nokia right LOL :P
 
edgemaster191
Old
(Last edited by edgemaster191; 8th May 2011 at 09:15 PM.)
#10  
Senior Member
Thanks Meter 27
Posts: 297
Join Date: Sep 2008
Location: Bennington
is there a post around here to explain how to get ADB working on this thing? i can ADB shell in but i get "operation not permitted" when i try to mount /system as r/w

(yes i'm rooted)

thanks guys

edit: i got permission to mount the /system as r/w but when i try to push the sqlite3 i get "Device not found"

i suppose i can give a little more info

i'm running windows 7 ultimate 64 bit with an administrator command prompt and the newest iconia a500 usb drivers from acer's support site and i have my SDK up to date
In my pocket:
Device: Samsung Galaxy SIII
ROM: Official CM10 Nightlies
Kernel: CM10 Kernel

On my desk:
Asus G73JH - A1
i7 720qm 1.6ghz
16gb DDR3
Radeon 5870m w/1gb DDR5
2x 500gb HD's (1x Seagate Momentus XT)
8x BD-ROM/DVD-RW
17.3 inch Full HD LED Display

Follow me on Twitter: https://twitter.com/edge191

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...