[DATABASE EDIT] Disable Fast Dormancy to get less com.android.phone wake-ups - LG Optimus 4X HD

Background and explanation
Some of our phones and firmware have a bad implementation of the fast dormancy (a function that actually should save us battery). The phone will always check the network status when the phone has a low signal or when calling/texting. This to know when to idle the network connection.
The wake-ups prevent a phone from a long deep sleep and may cause bad battery life. It also polls the network frequently when the screen is on, probably consuming extra battery life. So fixing this might improve your battery life.
I found this thread for the Optimus G: http://forum.xda-developers.com/showthread.php?t=2018894
And got some info out of, tried to apply some of the tips over there myself and I think I found out how to do it for any network provider on any LG phone.
First let me talk about the results; I used to have 300+ wake-ups in 20 minutes from com.android.phone. This in areas where the mobile signal was weak. Now after applying this setting I had only 3 wake-ups in 25 minutes. I was still able to text, call and receive calls, use mobile data, 2G and 3G mode. So after applying this, the phone should still work normally.
Hope this helps for preventing the com.android.phone wake-ups.
It could be that your network is incompatible with these specific settings.
This is currently for STOCK ROM ONLY
Tutorial how to edit manually
Here are the steps, this is for rooted phones only:
- First, know what your mobile network provider is!
- To know this, refer to this list: http://en.wikipedia.org/wiki/Mobile_Network_Code
- From this list, get your MCC and MNC code, make sure it's your country and your mobile network provider.
- Download or use a root file explorer, I use ES File Explorer.
- In the file explorer go to /data/data/com.android.providers.telephony/databases
- Copy the telephony.db file as a backup to your /sdcard or /sdcard/external_sdcard
- Download these 2 apps: aShell and aSQLiteManager
- Start the aShell app.
- Check the 'Root' box.
- Tap 'File Explorer'.
- Tap 'data', then again 'data', then 'com.android.provider.telephony', then 'databases'.
- Tap the 'telephony.db' file.
- Tap 'Yes'.
- Tap 'aSQLiteManager' to open the 'telephony.db' file.
- Tap 'dcm_settings'.
- Tap 'Data'.
- Now search in the list (by tapping 'PgUp or 'PgDn') or you can find your mobile network 'numeric' number. This is the MCC code followed by the MNC code. For example: MCC is 206, MNC is 20, look for the 'numeric' 20620.
- Is it already in the list? Good let's continue. Is it not? We'll get onto that later (see step 'Now if your...').
- Tap 'Edit' on the line where your 'numeric' is listed.
- Edit the following field: 'fastdormancy'.
- Set this value to '0'. *
- Was it already value '0'? Unfortunately this fix is already applied (doesn't apply) or won't make any difference for you.
- Tap 'OK'.
- Now, if your 'numeric' isn't listed, we will add it our-self. If it was, skip this part.
- Tap 'New'.
- Leave this field open (unedited): '_id'
- Fill in these values in the following fields: 'extraid' set the value '0', 'fastdormancy' set the value '0' *, 'ipmtu' set the value '0', 'mpdp' set the value '1'.
- Add your personal mobile network related 'numeric' number in the 'numeric' field.
- Tap 'OK'.
- Go back and save the 'telephoney.db' copy by tapping 'Yes'.
- Reboot your phone!
This is it!
Restore
If you encounter problems with your network, undo the settings or replace the 'telephony.db' with the file that you backed up. Reboot.
Other ways to edit
Thanks to ircalf we have a more simple way to edit this database file:
See his post:
ircalf said:
I've just done this change hoping that it will solve
but I did it on the computer using this program: http://sourceforge.net/projects/sqlitebrowser/?source=dlp
much more convenient
Click to expand...
Click to collapse
*Use different options for fast dormancy
The member ircalf pointed this out. I already tried a few.
This means you could use these other settings for the 'fast dormancy' table:
- 0 (this one I recommend, it's the easiest solution but has some drawbacks that I experienced, read the red text below)
- 1 (I don't recommend this setting -> the phone never goes into deep sleep with data enabled and battery usage is abnormally high, cause a high amount of Partial wake lock's for the RILJ wake lock)
- 1,0,0,1000,5000,420000,5000,5000,1,1,1
- 1,0,0,1000,5000,10000,5000,5000,1,0,1
- 1,0,0,1000,5000,60000,5000,5000,1,1,1
- 1,0,0,1000,5000,300000,5000,5000,1,1,1
Try them out and see what works best for you
I'm going to try custom numbers also to see if that makes any difference.
More details about these numbers thanks to bullghost:
bullghost said:
more description about fastdormancy field in table dcm_settings on database telephony.db :
the value on fastdormancy fields are randomly look like this (depend on mobile network config):
1,0,0,1000,5000,60000,3000,5000,1,1,1
so here the description on each value
1 : Isactive # mean enable or disable fastdormancy
0 : versioning
0 : isdebug mode ?
1000 : weakup timer for checking is datatransfer are available ?
5000 : weakup timer for checking is datatransfer are available ? on condition the fast dormancy fail to detect the datatransfer mode/ Unknown
6000 : FD trigger timer on screen on condition
3000 : FD trigger timer on screen off condition
5000 : FD retry timer
1 : Max retry
1 : isactive in tethering
1 : is active in voice call
all timer value is using millisecond
Click to expand...
Click to collapse
!Known issues!
IMPORTANT!
- Like said above, this could cause problems. Use with caution:
Already known issues for some network providers/users (not all experience these problems! So this fix might work perfectly for you):
- Sygic can't calculate routes: 'Route calculation has failed: discontinuous network [1].' Fixed in Sygic 12.2.2!
- Browsing the internet is sluggish, lags, ... I was able to get this resolved with browser updates and maybe setting the 'extraid' value to '0'.
- When the battery is below 10-5% it looks like the modem has a hard time to 'lock' a mobile signal, this after a reboot and entering the pincode. This doesn't occur that often when not edited.
- When ending a call or rebooting the phone it might give you this message more often. This when trying to call, text or use mobile data: 'Reorganizing internal processes. Please try again after a short while.'
- Phone sometime looses mobile network signal randomly. This happens when you are in an area with not that many antennas.

OK.. what about this apk?
is it doing same thing on nonrooted phones ?
http://forum.xda-developers.com/showthread.php?t=2021248

nomaj said:
OK.. what about this apk?
is it doing same thing on nonrooted phones ?
http://forum.xda-developers.com/showthread.php?t=2021248
Click to expand...
Click to collapse
That's made for AT&T (this is a specific mobile network provider from the US) Optimus G phones.
So I think this one only works for AT&T LG phones. And don't know or root isn't required with that apk. It would surprise me though, in /data/data/ you need root access to modify files.

requieres root?
i dont have problem w/ deep sleep anyway...but would test it.

I might try this...my phone never enters into deep sleep overnight somehow.

i have used this apk, and my com.android.phone alarms are now minimized.

Arne_B said:
Some of our phones and firmware have a bad implementation of the fast dormancy. The phone will always check the network status when the phone has a low signal or when calling/texting.
The wake-ups prevent a phone from a long deep sleep and may cause bad battery life. It also polls the network frequently when the screen is on, probably consuming extra battery life. So fixing this might improve your battery life.
Click to expand...
Click to collapse
I tried your tutorial... so far is OK...

I can honestly say that this tweak worked great for me. After doing so, com.android.phone rarely wakes up anymore. Which is so much better for my battery life.

I'm testing this now. I will report back.

I have been using my fix for a while now. But unfortunately I experienced some drawbacks of this fix. When using the Sygic app I get a 'discontinuous network' error while calculating a route. Followed with a force close.
Browsing with my browser is unresponsive.
Anyone experiencing the same?
I now went back to default and everything is ok again.

Arne_B said:
I have been using my fix for a while now. But unfortunately I experienced some drawbacks of this fix. When using the Sygic app I get a 'discontinuous network' error while calculating a route. Followed with a force close.
Browsing with my browser is unresponsive.
Anyone experiencing the same?
I now went back to default and everything is ok again.
Click to expand...
Click to collapse
I didn't test Sygic... but my browser works ok with fix.

i have about 350 wake-ups i hope it fix it
will report back after a day or so

the wake-ups have dropped to 32 in 2 hour but my phone keep losing signal any solution

heahmad said:
the wake-ups have dropped to 32 in 2 hour but my phone keep losing signal any solution
Click to expand...
Click to collapse
Yeah, if that happens you have to undo the edit or replace the telephony.db file with the backup. Reboot, maybe also switch to airplane mode and back. And everything will work again, but you'll have the wake-ups again also.
I had similar strange behavior.
Probably due to the phone checking the network status less.

Arne_B said:
Yeah, if that happens you have to undo the edit or replace the telephony.db file with the backup. Reboot, maybe also switch to airplane mode and back. And everything will work again, but you'll have the wake-ups again also.
I had similar strange behavior.
Probably due to the phone checking the network status less.
Click to expand...
Click to collapse
I'm testing it over couple of days and i'm relay satisfied with improvident of battery life. Also i didn't notice any signal loss.

I have changed some steps, I've tested with explicitly setting the 'extraid' value also on '0' to see what this does. Seems to work even better for me.
Could some people try and report? Thanks!
See first post for edits.

Arne_B said:
I have changed some steps, I've tested with explicitly setting the 'extraid' value also on '0' to see what this does. Seems to work even better for me.
Could some people try and report? Thanks!
See first post for edits.
Click to expand...
Click to collapse
Well I followed every step of your little tweak and here are the results. By the time I completed the few changes (let's say 5 minutes), I got 300+ wake-ups. Now it's been 10 minutes that I rebooted my phone and I only had 5 wake-ups, that's terrific ! I'll see how it affects the battery life but I'm pretty sure it cannot be bad. And Internet is working pretty well (it updated 2 apps just after reboot). I'll see how it behaves in roaming situations and keep you updated

Good to hear it seems to work

Arne_B said:
Good to hear it seems to work
Click to expand...
Click to collapse
I have an unrooted phone, so cannot use this. Nevertheless, would like to know how to check the no. of wakeups! Pl suggest.

kelly66 said:
I have an unrooted phone, so cannot use this. Nevertheless, would like to know how to check the no. of wakeups! Pl suggest.
Click to expand...
Click to collapse
You can use BetterBatteryStats. But that's a payed app. Or check the android alarms, maybe you can find that over there also:
Arne_B said:
Edit:
Also if you want to dig deeper to find apps that keep the phone awake and thus drain battery you could do this:
Make a dump of the 'Android Alarms', this often shows some more detailed info than BetterBatteryStats.
Ghazkul said:
Connect your phone to a computer and run this:
Code:
adb shell dumpsys alarm > AlarmDump.txt
or download GScript lite and create the following script:
Code:
cd /sdcard
dumpsys alarm > AlarmDump.txt
Note that you probably need root access for the GScript to work. The AlarmDump.txt file will be on your sdcard root directory.
Click to expand...
Click to collapse
Look for the 'wakeups' count number in the 'Alarm Stats:' part of the dump file.
Click to expand...
Click to collapse

Related

Turning gsm radio off PERMANENTLY?

Hello all!
I was wondering of there is any way to switch.off.the gsm radio of the tab completely and permanently.
I found a solution using service code in the dialer but after resrtarting the device the annoying icon comes back onto the status.bar.
Thanks in advance!
Sent from my GT-P1000 using Tapatalk
Are you trying to convert it to a WiFi only model?
theREDlegion said:
Are you trying to convert it to a WiFi only model?
Click to expand...
Click to collapse
Yup! But would be nice to revert if I change my mind lately
Sent from my GT-P1000 using Tapatalk
Rem-X said:
Yup! But would be nice to revert if I change my mind lately
Sent from my GT-P1000 using Tapatalk
Click to expand...
Click to collapse
Seen that there are no updates here so I thought I'd stop by and ask how you made out?
If you still haven't done anything about it, have a look at this post
Just got a possible solution from frgking12!
I'll post it here if someone would like to try it:
I used Llama to create an Event called "Start Up" which will automatically turn Airplane Mode ON, wait 1 minute, then turn Wifi ON. This essentially makes it a Wifi only device and conserves battery life. Here are my Llama settings:
Conditions -
Phone Reboot > After Start up
Actions -
Toggle Airplane Mode > Airplane Mode On
Queue another event >
Conditions
Event name > WiFi on
Queue Delay > 1 minute
Actions
Toggle Wifi > WiFi On
Thanks to frgking12 again!
this method of turning airplane mode on and then enabling wifi also makes it so that bluetooth is disabled (and therefor won't work for my needs as I often use my apple wireless (bluetooth) keyboard with it.
unfortunately, it looks as if the post referenced by theREDlegion is a temporary fix that must be done each time you restart.
if anyone has an alternative, I too would appreciate the ability to turn off the gsm radio (and save battery life) as I too have a tmobile sgt and I also choose not to subscrube to 3g service but would rather use wifi all the time.
thanks in advance
Rem-X said:
Just got a possible solution from frgking12!
I'll post it here if someone would like to try it:
I used Llama to create an Event called "Start Up" which will automatically turn Airplane Mode ON, wait 1 minute, then turn Wifi ON. This essentially makes it a Wifi only device and conserves battery life. Here are my Llama settings:
Conditions -
Phone Reboot > After Start up
Actions -
Toggle Airplane Mode > Airplane Mode On
Queue another event >
Conditions
Event name > WiFi on
Queue Delay > 1 minute
Actions
Toggle Wifi > WiFi On
Thanks to frgking12 again!
Click to expand...
Click to collapse
cpgeek said:
this method of turning airplane mode on and then enabling wifi also makes it so that bluetooth is disabled (and therefor won't work for my needs as I often use my apple wireless (bluetooth) keyboard with it.
unfortunately, it looks as if the post referenced by theREDlegion is a temporary fix that must be done each time you restart.
if anyone has an alternative, I too would appreciate the ability to turn off the gsm radio (and save battery life) as I too have a tmobile sgt and I also choose not to subscrube to 3g service but would rather use wifi all the time.
thanks in advance
Click to expand...
Click to collapse
My reference was only for the OP's original request which is an easy way to disable the GSM radio, and EASILY revert back to it working, nothing permanent. There are also widgets to do this but some of them are buggy. The fix outlined works well, the average tab user does not shut off their tabs regularly only the screen. The OP will not find that this is something they would be doing constantly. There are also scripts that can be run at boot, or apps such as Tasker which can automate these tasks.
A permanent fix would be to flash a ROM without a modem, but I'm not sure how you would get rid of the existing one. I'm sure some searching would get you places.
theREDlegion said:
My reference was only for the OP's original request which is an easy way to disable the GSM radio, and EASILY revert back to it working, nothing permanent. There are also widgets to do this but some of them are buggy. The fix outlined works well, the average tab user does not shut off their tabs regularly only the screen. The OP will not find that this is something they would be doing constantly. There are also scripts that can be run at boot, or apps such as Tasker which can automate these tasks.
A permanent fix would be to flash a ROM without a modem, but I'm not sure how you would get rid of the existing one. I'm sure some searching would get you places.
Click to expand...
Click to collapse
ooh, that's an interesting idea. shouldn't it just be a matter of restocking the tab, then flashing overcome (or any other rom of your choice that doesn't integrate the modem software), and simply choosing to not install a radio at that point?
I might experiment with that at some point (has anybody else tried it?)

[Q] no GPS since GB update

Unfortunately since I installed GB stock rom my GPS apps don't find satellites at all. Anybody knows a fiy for this? it worked perfectly on froyo.
Sent from my LG-P990 using XDA Premium App
For me "GPS status" (market) helps in these situations (topogigi says the following in the FAQ of his thread, but it should work for you as well):
"If you want a quick fix, you have to sit down in an open space with a large slice of visible sky above you. You should have already installed on your phone a really valuable app called "GPS Status". You haven't got it? Fire up the Market, search it and install it: it's free for everyone. Then turn off wifi and turn on wireless data. Ephemeris data download and position data based on cell triangulation are available only with wireless data enabled and they are inhibited by a special setting in the gps configuration file when wifi is on. Tap the app icon, then look at the status bar: is there a small icon radar-shaped blinking on the status bar (upper part of the screen)?
CASE 1) Yes, I see it! It's blinking continuously!
CASE 2) No, nothing changed.
If your fall in CASE 2, there is really something wrong with GPS on your phone. You can try the following workaround, but if it doesn't work there's no remedy other than filing a bug alert in the thread and patiently wait until the bug will be solved.
WORKAROUND:
- Enter Hidden menu typing 1809#*990# on the phone pad
- Select "GPS Test"
- Go to "SULP Settings" and create a new SLP Server with the following parameters:
name: Nokia
slp address: supl.nokia.com
port: 7275
leave certification file and TLS settings as blank
- go back, and flag "SLP Auto provision" as enabled
- select your APN for SLP from "APN Settings"
- go back 2 times and select "Get position"
- select menu-> start
- at this point, you could notice that no satellite appear. Dont't worry, carry on....
- select menu-> Settings then change some parameters as "Session Type" and "Oper Mode"
- go back and select Stop and Start again
- repeat the last three steps until you get a fix and the gps icon in the status bar remains steady after the fix.
If you fall into CASE 1), look at the yellow bars indicating the number and the signal level of each satellite. When the bars will be more than 4 and the length of each bar will be enough to get a fix (the longer the bars, the stronger the signal), the bars will turn into green and you have got the first fix (how lucky you are, huh?). The time it will take is not fixed, though: it depends on weather, correct download of ephemeris data, radio interferences and so on. So, the bottom line is: BE PATIENT! There is no rule of thumb for measuring the time a fix will take. In some conditions, you will get it in a few seconds, in other conditions it will take minutes. Now that you've got a fix, try to move a little bit around. The radar-shaped icon should be steady now and the bars should remain green. If you see the icon disappearing after the fix, you are falling into CASE 2). Try the workaround mentioned before and if it fails, file a complaint into the thread.
DO NOT FILE A BUG ALERT ON GPS WITHOUT HAVING ALREADY TRIED ALL THE PROCEDURES LISTED ABOVE! It will be simply ignored."
Your device is rooted? Then you could try this with CWM: http://forum.xda-developers.com/showthread.php?t=1066933
Ive had this problem too, on Stock GB ROM.
what I did was installed the 2.1.6 MIUI ROM and edited the GPS settings from there.
The settings I copied was from a Nexus ONE MIUI ROM.
Now it works like a dream.
Thanks for the answers I'll try gps status
Sent from my LG-P990 using XDA Premium App
And no surprise I have got this issue to, since I updated the stock rom (oh joy, thank you so much LG). However, it would get a lock, then drop the lock (within seconds) then search again for a few minutes.. get a lock maybe.. then drop it within seconds.
Now today in the open air, I cannot get a lock.
So.. I downloaded "GPS Status & Toolbox" and because I cannot stand adverts.. I donated the small amount for the program patch to remove adverts ('GPS Status Donation').
I'm now just running this on my phone (but by a window.. to try and get a lock).
Hopefully I can get it working
Many thanks for the tip, I'll let you know either way #
EDIT: Well... it seems I may have been hasty, as I just turned off the wifi and I think that was stopping the GPS from working lol. But anyway.. is there a hack to get the wifi and GPS working together?
hi
I had the same problems as you, with GPS (and some other) issues - I have always been on stock Rom.
then I got fed up with this and decided to try Temasaks Cyanogenmod7 Kang ROM last week - and have not looked back since!
GPS is working within seconds, new cool lock screen, and everything is running much more fluently! Other problems I had are also gone.
battery time is equal or better, as stock!
/René
Well... I don't know what I've done... some fiddling with the GPS options in the hidden menu, and now it is working flawlessly.
Also... I'm on the google supl, and not the nokia one... and it still works fine.
I have made some other changes anyway.. but regardless it basically just seem to take some fiddling with it to get it to work. I now get locks within about 5 to 10 secs even indoors (10 sats seen, 6-8 locked INDOORS!). Hopefully that won't change if I reset the phone.
My settings are:
GPS session type: 'Tracking' (not single fix)
Oper Mode: MS-Based (to help with initial lock, but then use GPS completely)
Horizontal Accuracy: 30 (Stock was 50.. I think this is in metres)
SLP Auto Provision: Enabled (I don't even know what this means!!? lol)
SLP Server Setting: OPEN(Google) (Although I added the nokia one as well)
Auto Cold Start: Disabled
UPDATE: You know what... I thought it was working... so I reset my device with GPS off. When it came on, I tested GPS, and it showed that it was working and see's the satellites. BUT.. in GPS Status Tool, I see that the GPS symbol dissappears, and the 'update' time does not update. So basically.. it's relying on the cell towers rather than the GPS towers. I turned the phone off with GPS enabled... turned on again, and now it's working correctly with GPS doing it's thang. AFter my experiences in being in an office with a terrible signal... I reckon that there is a setting in the code somewhere that doesn't allow the GPS to be used, or it's forcing it to only use tower's and wifi as a means of location, and ignoring the GPS. Very odd. But it works now, as everyone has seen, it's just a shame that what really is quite a fundamental feature of the phone, LG decided not to fix.
It works,thanks. It is wery cloudy but i got gps in 15sec
Sent from my LG-P990 using XDA App
try this too,
turn on your GPS.
reboot your phone (with GPS ON)
try again. see if it can lock faster.
sigelopisan said:
try this too,
turn on your GPS.
reboot your phone (with GPS ON)
try again. see if it can lock faster.
Click to expand...
Click to collapse
That's what I suggested in the update. It's obviously a flaw in the code (thanks LG) that you have to turn the phone on with the GPS enabled for it to work. Now major issue really to leave it enabled anyway, hardly takes any power when not in use, I just wish I knew why this was the case, that you have to have it enabled at power on time. Bizarre.
It's not about being able to 'get a lock', it's about it working at all. If you use GPS status, you will see that it can see satellites and attempt to get your position.. but I reckon what it thinks are sat's are actually the cell towers (When you haven't enabled GPS at boot time).

[Q] Telstra Velocity stuck of screen lock.

Hi,
Sorry about the new thread. Could not find a match.
I have been reading this sites forum for a couple of years and until now have not broken something to the point I can’t find the answer somewhere.
So my first question. I am really stuck.
I have a Telstra HTC Velocity 4G. I followed the instructions on thread SUPERGUIDE (thread #1416836) and they worked perfectly. Thanks to slapshot30 for creating it
.
I did step 1 and unlocked the bootloader.
I did step 2 using the CWM Perm Boot method to get perm root.
I did step 3 using the Pirateghost’s method to load RumRaider BETA 11 (Thread #1418089).
I run on this for a couple of days and everything was great with the Rumraider ROM. Thanks Pirateghost it works great.
And then.. the phone started to refuse to charge. I tracked this down to a faulty battery by swapping it with friends battery. So now I knew the battery had failed unrelated to any of the changes I had done. So I would have to send it back under warranty.
So I then decided to revert the phone back to stock so I would get any issues when the phone was returned for warranty.
To revert back I “poorly” followed step 6 of the super guide. I missed the relocking of the phone by using the “fastboot oem lock”.
I just directly ran the RUU_HOLIDAY_SENSE3_5_Telstra_WWE_2.27.841.6_Radio_3.01.4720 which appeared fine.
The problem now is:
The phone boots to the normal lock screen. I can call the phone and the phone rings. I can send a text or SMS and the phone beeps. I however cannot swipe the screen to unlock it. If the screen time-out I can press the power button and see the lock screen again.
I have attempted to resolve by:
1. Rerunning RUU_HOLIDAY_SENSE3_5_Telstra_WWE_2.27.841.6_Radio_3.01.4720 which did not helped.
2. When I boot the phone if I power it on holding the POWER and VOLUME DOWN it just boots normally so I cannot get it into recovery.
3. Fastboot.exe and adb.exe do not find the handset.
If I plug the phone in the phone appears as “HTC Android Phone USB Device” in windows. So the USB port is working fine.
Any ideas of what else I can try next would be greatly appreciated?
I would attempt to take it back, sounds like maybe you have more than just a faulty battery, if you have had it I think less than 7 days they should count it as a DOA and issue you a new one over the counter.
Yep, HTC have a 30 ELF - early life failure - period wher you can just swap for a new one in store.
Thanks swapped the phone over with no problems.
good to know, thanks
wonder if they will do this with mine? but the store is a Telstra Licensed Store operated by Fone Zone. got phone on 15th feb. Having issues of phone not enabling data network when coming out of sleep and gps constantly loosing fix. I also got suckered into getting FZ's esp.
For the phone not enabling data network when coming out of sleep please check you have the following set.
Settings
Wireless & Networks
Mobile networks
Tick " Tick always on mobile data"
Let me know if this fixed it.
If it locked off just dial a uncharged vacant voice number to force connection. In Aust something like 8888 would do the trick.
ecky319 said:
For the phone not enabling data network when coming out of sleep please check you have the following set.
Settings
Wireless & Networks
Mobile networks
Tick " Tick always on mobile data"
Let me know if this fixed it.
If it locked off just dial a uncharged vacant voice number to force connection. In Aust something like 8888 would do the trick.
Click to expand...
Click to collapse
The first works but the dialing one didn't where i dialed a number. Was even able to receive a call. Also what about the GPS and the signal strength being all over the place i watched the db level change and all that.
---------- Post added at 04:43 PM ---------- Previous post was at 04:34 PM ----------
now i have to restart the phone to get data back even with always on mobile data. Also saw that Mobile network tick boxed had been unticked then i ticked it it took ages to go white writing. but still had to restart phone to get data back.
nope didn't swap on the spot The system also lost my Tech Bar appointment.
They are going to use the esp express (apparently faster) to swap it hopefully in 2 days hopefully not a referb so i keep using this current phone until they ring me and i go in and just swap it over.
Also noticed when using data its not changing to HSPA no H near the signal icon like my xoom or like just sitting on 3g.
How can I convince people (brother was thinking of getting one) to buy these phones if i keep getting ****? What ever happened to the Quality control? mumble mumble...
Sorry,
It unclear to me, did the settings I suggested resolve the phone not enabling data network when coming out of sleep?
Also the GPS on mine is fine. I grabbed 4 phones and used GPS Test from the market. With all 4 phones on in my court yard which is surrounded by large buildings my rather unscientific the finders where.
HTC Velocity: In view: 12, Locked 8, Lowest 13 SNR, Highest 30 SNR
HTC Desire: In view: 7, Locked 7, Lowest 12 SNR, Highest 26 SNR
HTC EVO 3D: In view: 8, Locked 8, Lowest 8 SNR, Highest 30 SNR
Samsung Galaxy S II: In view: 7, Locked 7, Lowest 20 SNR, Highest 26 SNR
So based on simple test the GPS seems the best of these 4 phones.
Also for LTE if you believe you are in 4G coverage could you please try this.
Dial *#*#4636#*#* to bring up phone info. ( or download “LTE Only”)
Change to LTE only ( This will break Voice calling so change it back!!).
Don’t touch the SMSC setting or you will break SMS in this screen.
This should now change the phone to “4G” for Telstra Build.
The download “SpeedTest” from the market and test it.
Then change back to “GSM/WCDMA/LTE auto”
Let me know how this goes.
ecky319 said:
Sorry,
It unclear to me, did the settings I suggested resolve the phone not enabling data network when coming out of sleep?
Also the GPS on mine is fine. I grabbed 4 phones and used GPS Test from the market. With all 4 phones on in my court yard which is surrounded by large buildings my rather unscientific the finders where.
HTC Velocity: In view: 12, Locked 8, Lowest 13 SNR, Highest 30 SNR
HTC Desire: In view: 7, Locked 7, Lowest 12 SNR, Highest 26 SNR
HTC EVO 3D: In view: 8, Locked 8, Lowest 8 SNR, Highest 30 SNR
Samsung Galaxy S II: In view: 7, Locked 7, Lowest 20 SNR, Highest 26 SNR
So based on simple test the GPS seems the best of these 4 phones.
Also for LTE if you believe you are in 4G coverage could you please try this.
Dial *#*#4636#*#* to bring up phone info. ( or download “LTE Only”)
Change to LTE only ( This will break Voice calling so change it back!!).
Don’t touch the SMSC setting or you will break SMS in this screen.
This should now change the phone to “4G” for Telstra Build.
The download “SpeedTest” from the market and test it.
Then change back to “GSM/WCDMA/LTE auto”
Let me know how this goes.
Click to expand...
Click to collapse
yes it did resolve it but its being temperamental. eg it will come out of sleep properly then it wont.
gps not working too well even with clear view of sky. keeps loosing fix loss of gps signal. the time of loss varies to not coming back at all to a few seconds. Ive also discovered that its not switching to HSPA at all. Haven't tested the 4G yet. But anyway ill just have to put up with the refurbishment when they swap it. So much for 7 day DOA swap over counter.
Hi could you please try this to save you the hassle of sending the phone back. It would appear that a lot of your phone default setting have been change or been set incorrectly when you purchased the phone.
Data not returning after sleep.
My suggestion wrong be that the phone isputting the data connection to sleep to save power.
Press Home
goto into settings
press power
untick Save Power
Set save Powerautomatically to say 15% for now.
If you look in save power settings you will have "put data connention to sleep" ticked leave it ticked. My assumption is you are triggering this to early due to the two settings above.
GPS Performance.
Could be linked to Power setting.
Aslo done load "GPS test"
Open it
hit the settings setting button in the app
Update your AGPS
now turn you GPS on via button on the top left hand corner
Go for a walk out side and it should work fine now
You will see all the sats and their levels.
you could run this on a mates phone and compare the results.
Network not providing HSPA
How are you determing this? If you run speed test it should change to "H' and then drop back to 3G when the data drops off.
Also could you force 4G if you are in a coverage area to see if this is working. I am interested incase there is a network problem.
my response is in RED
ecky319 said:
Hi could you please try this to save you the hassle of sending the phone back. It would appear that a lot of your phone default setting have been change or been set incorrectly when you purchased the phone.
Data not returning after sleep.
My suggestion wrong be that the phone isputting the data connection to sleep to save power.
Press Home
goto into settings
press power
untick Save Power
Set save Powerautomatically to say 15% for now.
If you look in save power settings you will have "put data connention to sleep" ticked leave it ticked. My assumption is you are triggering this to early due to the two settings above.
done
the screen goes off by itself sooner then 45 seconds or quicker then any applied settings.
GPS Performance.
Could be linked to Power setting.
Aslo done load "GPS test"
Open it
hit the settings setting button in the app
Update your AGPS
now turn you GPS on via button on the top left hand corner
Go for a walk out side and it should work fine now
You will see all the sats and their levels.
you could run this on a mates phone and compare the results.
done
says 11 in view but will not fix and the sats sometimes disappear and then come back
Network not providing HSPA
How are you determing this? If you run speed test it should change to "H' and then drop back to 3G when the data drops off.
only get the 3G and arrow symbols it doesn't change to a H symbol. I also noticed the signal strength drop to 1 dot then full bars then waver around.
I also dropped to 3Telstra and got the H symbol but when i started using data it changed the symbol to 3G.
Also could you force 4G if you are in a coverage area to see if this is working. I am interested incase there is a network problem.
not in a 4G area.
and now its not ringing when i get calls.
Click to expand...
Click to collapse
esp express doesnt apply until the 30 day elf period is up so 7 days min away to be assesed.

Getting Battery drain due to fast dormancy on i9305

the i9300 toggle does not work
anyone know how to disable this on the i9305?
+1 i would also like to know this
Sent from my GT-I9305 using xda app-developers app
FastDormancy Toggle
download fastdormancy toggle in the play store .
mahendru1992 said:
download fastdormancy toggle in the play store .
Click to expand...
Click to collapse
i take it then thats its been updated to run on the i9305
didnt work last time i tested
no it hasnt been updated i dont know what his talking about. I think his confused , it still says only for i9300 .... we need a dev to port it
But i think we can do it manually goto this guide and try unfortunatley it doesnt look easy >>>> GUIDE I am going to try it when i have time I wish we had an app
btemtd said:
But i think we can do it manually goto this guide and try unfortunatley it doesnt look easy >>>> GUIDE I am going to try it when i have time I wish we had an app
Click to expand...
Click to collapse
I looked at that guide on my 9305 but the DATA fields in the database are completely different.
There is a dormancy database as well which may be what should be changed.
Mine lists a heap of providers, mainly from HK (its a HK phone used on Telstra Australia).
Maybe some one with more knowledge can look at it.
I did it using the link that is provided in the post that has been linked.
Very tedious but it appears to have worked. From 8.50 to 10.20 I had 42s of Fast Dormancy wake locks and that number hasn't changed in the hour since.
http://www.androidnz.net/2012/06/at-your-own-risk-how-to-disable-fast.html?m=1
I had to do everything manually but there were already entries for Telstra so you should be able to simply edit them according to the guide above.
I'm fairly confident this has worked as I have had increase in FD in 13 hours
Will keep an eye on it though
rbimdxe said:
I did it using the link that is provided in the post that has been linked.
Very tedious but it appears to have worked. From 8.50 to 10.20 I had 42s of Fast Dormancy wake locks and that number hasn't changed in the hour since.
http://www.androidnz.net/2012/06/at-your-own-risk-how-to-disable-fast.html?m=1
I had to do everything manually but there were already entries for Telstra so you should be able to simply edit them according to the guide above.
Click to expand...
Click to collapse
Hi, i'm giving this a go on my phone, but the aShell app can't get root.. i've definitely got root on the phone. Did you have any issues like this? when i tick the root box in aShell, SuperSU asks if i want to grant root, i click Grant, and then i get a message box from aShell saying "No Root Access. Root not available on this phone!"
omniwolf said:
Hi, i'm giving this a go on my phone, but the aShell app can't get root.. i've definitely got root on the phone. Did you have any issues like this? when i tick the root box in aShell, SuperSU asks if i want to grant root, i click Grant, and then i get a message box from aShell saying "No Root Access. Root not available on this phone!"
Click to expand...
Click to collapse
OK, i fixed this myself, if you're having the same problem as me you just need to update busybox.
you'll need root obviously, install this app: https://play.google.com/store/apps/details?id=stericson.busybox&hl=en
once installed, run it, and choose the smart installer. it will update busybox and stop the "Value too large for defined data type android" errors which i think cause this problem.
PS the guide seems to work fine for the i9305, our Carriers table doesn't have the dormancy field like the one in the screenshot, but it doesn't seem to matter.
Telstra's PLMN is 50501.
Hey
Sorry mate didn't see the post.
I had that issue and as I mentioned, did everything manually - ice, I used Root Explorer to locate the databases and read them to find the Operator number, and then manually copied the network info database to be edited with SQL manager, and then manually moved the new database and backed up the existing one - again with Root Explorer.
Have not had a single instance of Fast dormancy wake lock though, so I'd say it worked.
I guess the toggle app just doesn't have the correct portion info for the i9305 which would make it easier...
yeah, i got the PLMN from adb rather than the mobile app, much easier.
With Ripper ROM and Telstra i didn't have to do any of the APN creation stuff either, it was all already there, so probably took me about 2 mins once i got aShell working.
I think next i'm going to investigate whether testra actually offer fast dormancy (there's an XDATV post on how to do this manually, but it's kinda labourious). While i had a bunch of slightly worrying (but nothing crazy) fast dormancy wake locks, i never really noticed anything too bad with battery life due to them. fast dormancy is a cool idea, but only if the network supports it.
So if you are with telstra should we be disabling it or not
did you even read my post? :/
someone has to work it out. When i have time i'll give it a crack.
Telstra fast dormancy results
Hi Guys,
Here's what I've been able to work out.
3G networks - tested on both an i9300 and an i9305 set to WCDMA only
Fast dormancy disabled on the phone
Cycle: DCH -> FACH -> URA-PCH (-> IDLE) --- (URA-PCH is UPCH on the i9305)
T1 (DCH -> FACH): ~3 seconds
T2 (FACH -> URA-PCH): 55 seconds
T3 (URA-PCH -> IDLE): dunno, i waited 4 minutes and it didn't happen. maybe IDLE is never hit while the screen is on? dunno.
Fast dormancy enabled on the phone
Cycle: DCH -> FACH -> URA-PCH (-> IDLE)
T1 (DCH -> FACH): ~2 seconds
T2 (FACH -> URA-PCH): 3-5 seconds
T3 (URA-PCH -> IDLE): dunno, as above.
LTE network - obviously tested only on an i9305
Fast dormancy disabled on the phone
Cycle: CONN -> IDLE
T1 (CONN -> IDLE): 35 seconds.
Fast dormancy enabled on the phone
Cycle: CONN -> IDLE
T1 (CONN -> IDLE): 35 seconds
OK. what conclusions can we draw from this?
For 3G, it appears Telstra indeed does utilise fast dormancy. This is great.
However, for LTE, it seems that Telstra does not have fast dormancy. I really don't know anything about how 4G (or 3G) networks work - for all I know fast dormancy might not even be a thing with 4G, so this behaviour is normal. I will see if I can coax someone with more knowledge than I to answer this riddle.
In the meantime, I would leave fast dormancy enabled for your i9305 if you're on Telstra.
[edit]
Actually, i take this back. Probably disable fast dormancy, read HERE.
[/edit]
Guys network is irrelevant here
We need a generic way of disabling this!
No, you are incorrect. Watch the YouTube video and learn about fast dormancy:
www.xda-developers.com/xda-tv-2/fast-dormancy-the-whole-story-xda-developer-tv/
omniwolf said:
did you even read my post? :/
someone has to work it out. When i have time i'll give it a crack.
Click to expand...
Click to collapse
Yes I did read your post and I am thinking that you were going to find out wether telstra has fast dormancy or not which in my books means calling them up and asking them. which i then thought 7 hrs later Hmmm maybe he has found out by now I should ask .... But since you checked the long way and found out seems more detailed and better
Cngrats
omniwolf said:
Hi Guys,
Here's what I've been able to work out.
LTE network - obviously tested only on an i9305
Fast dormancy disabled on the phone
Cycle: CONN -> IDLE
T1 (CONN -> IDLE): 35 seconds.
Fast dormancy enabled on the phone
Cycle: CONN -> IDLE
T1 (CONN -> IDLE): 35 seconds
In the meantime, I would leave fast dormancy enabled for your i9305 if you're on Telstra.
Click to expand...
Click to collapse
How did you get that data on your 9305?
I have been trying to find it.
PS: My understanding is that LTE does not use the concept of Fast Dormancy, only 3G uses it as 4G (LTE) uses a conpletely different connection method.
My 9305 alsways shows Fast_Dormancy in the kernel wavelocks when using Better Battery Stats and a 4G connection, yet my Samsung 8.9 LTE tablet does not show this Fast_Dormany wavelock.
Wierd
Well i just monitored the connection states as described in the XDA TV thingo.
I also get my worst wakelocks from "fast_dormancy" if i'm connected to a 4G data network on my i9305.
From what I can see it maintains a full data connection for 35 seconds even if you just download a byte. This is probably why 4G uses up so much battery, if various apps need to pull data only once a minute, you'll get at best 41% deep sleep. shocking!
Maybe they're yet to implement a fast dormancy style method with LTE? i dunno, but it's terrible at the moment.
with your tablet, does it do 3G as well? or just 4G? do you have any background syncing turned on? I'd like to test if i deleted all my accounts (including google), and removed any app that used background data whether or not the fast_dormancy wakelock would disappear

[Q] Direct access to setting changes

Hi everybody,
I'm a very interested reader of all the Samsung Ativ - WP8 unlocking/rooting/registry hacking-threads and now am wondering about something:
Will it somehow be possible (or is it already?) to directly change specific phone settings (such as: Bluetooth switch, Airplane Mode switch etc.) through an app?
For an example, i would like to program a NFC-tag to turn on Airplane Mode on the phone; currently it is only possible (due to the os-restrictions) to make the NFC-tag enter the Airplane Mode-settings, but not the switch itself.. Can it maybe be done with a registry entry?
Thanks for your help, I very much appreciate it!
Keep up the awesome work!
Good question. I can look into the Settings apps themselves and see if I can find out how to flip their switch. However, it's probably not a simple registry value.
GoodDayToDie said:
Good question. I can look into the Settings apps themselves and see if I can find out how to flip their switch. However, it's probably not a simple registry value.
Click to expand...
Click to collapse
It will be interesting to see what you come up with...
My biggest pet peeve about WP (aside from the lack of a native GMail client and tiles that are unable to refresh themselves rendering battery level tiles irrelevant) is that it takes me about 20 clicks to do what should take 5... At my place of work we have restricted WiFi (only port 80 and 443, so WiFi calling is a no go), and no signal in the building.... So, when I get to work: Turn WiFi on, turn data off, turn WiFi Calling off, turn Bluetooth off. When I leave work I turn WiFi off, data on. When I get home, I turn WiFi on, data off, WiFi calling on, Bluetooth on.
It's a pain in the ass to go into individual settings menus for each of those.
There's really no point to turning Bluetooth off; the power it requires when not connected is trivial. Even WiFi draws very little when inactive.
Also, I conclude that your job sucks... but yeah, if I can get the toggle controls I will.
It drains massively when BT is in use... WiFi I'm assuming drains because of WiFi calling... I did shorten the steps... Airplane mode on, WiFi on, WiFi calling off... ?
It will drain in a few hours if I leave thing enabled. On android it was due to the IMS connection retrying constantly, and the almost zero cell connection trying to stay registered on the network. Definitely a PITA.
Yeah, Airplane Mode is better than data off if you can't even get enough signal for calls or SMS, because that will in fact drain the battery faster.
I never bothered to disable BlueTooth since the first time I enabled it, and have seen no change in the battery life. It really does appear to be inconsequential, although I suppose I didn't make a thorough study.
...any news?
All I could find is the on/off switch for the service itself, but it doesn't seem to be practical, since I think that the phone has to be restarted every time...
I'm talking about the path HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\, where you can choose the value for the "Start" key of the services, whereas the values 1 to 4 stand for:
Code:
Start REG_DWORD Start constant
Specifies the starting values for the service as follows:
START TYPE LOADER MEANING
0x0 Kernel Represents a part of the
(Boot) driver stack for the boot
(startup) volume and must
therefore be loaded by the
Boot Loader.
0x1 I/O Represents a driver to be loaded
(System) subsystem at Kernel initialization.
0x2 Service To be loaded or started
(Auto load) Control automatically for all startups,
Manager regardless of service type.
0x3 Service Available, regardless of type,
(Load on Control but will not be started until
demand) Manager the user starts it (for example,
by using the Devices icon in
Control Panel).
0x4 Service NOT TO BE STARTED UNDER ANY
(disabled) Control CONDITIONS.
Manager
Don't know if this is anything new at all, but I tested it with the Gyro Sensor (changed the Start Value from 3 to 4) and after reboot the Sensor Emitter-App didn't find it anymore; turned back to Value 3 and after reboot it worked again!
That's a cool find, but probably not super-useful to this purpose; it might let us make a "services.msc"-like app for the phone, at least to control startup and such, but actually starting and stopping the services requires something else again.
Also, another problem I was facing is the fact that every time the phone interacts with a NFC-tag there is a popup asking if the action should really be performed. This is good for some of the cases, but for the Airplane-mode automatic switch it seems a pain to confirm each time you want to switch - as the whole idea behind it was to change it automatically.
Searching for a possible solution for this problem i found this:
Google: search for "that-damn-nfc-alert-after-tapping-tag", first result
(as I am a new user I still can't post links directly)
Code:
//-------------------------WRITING
var dataWriter = new Windows.Storage.Streams.DataWriter();
dataWriter.WriteString("dummy");
//messageType is the key
publishMessageId = mDevice.PublishBinaryMessage("Windows:WriteTag.Text",
dataWriter.DetachBuffer(),
messageTransmitted);
//my MessageTransmittedHandler invokes the StopPublishingMessage(long) method
//-------------------------READING
mDevice.SubscribeForMessage("Windows.Text",
(device, message) =>
{
//do Work
});
Do you think that once we know how the Settings-App flips the switches it would be possible to create a command which doesn't require confirmation? Or would it be necessary to have an app already running in order to perform that switch automatically?
Thanks a lot!
Today I saw the registry keys at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Settings\{1DEF9B7D-2322-40eb-A007-16A75D5CDA62}\ which indicate some specific dll and app-locations for the Airplane Mode:
Code:
Values Type Size Data
String 28 Airplane Mode
Title String 82 @\windows\system32\Settings3Res.dll,-206
Type Integer 4 1
Location String 102 app://5B04B775-356B-4AA0-AAF8-6491FFEA5621/Default
Plugin String 78 {09c51652-2cbc-49d5-883e-20606f9a47bd}
I tried to reach it with Windows.System.Launcher.LaunchUriAsync(new Uri("app://5B04B775-356B-4AA0-AAF8-6491FFEA5621/Default", UriKind.Absolute)); but had no success. There is no error or anything, nothing happens.
Am I going in the wrong direction with this?
Well, at best that would only let you launch the Airplane Mode view, which is already possible in other ways (and I don't think your method works anyhow, because apps can't directly launch other apps unless they have special privileges).
Poking around in the registry is a good call, though. It may be worth looking at the permissions for that app and seeing what it can write to, although it's almost certainly going to be a special service endpoint rather than something convenient like registry value.
I see.. Couldn't the number "-206" be some kind of argument applied on the Settings3Res.dll? Since all settings (wifi, bluetooth, gps etc.) refer to that same dll but seem to have different apps (which I suppose are the pages with the switches).
No. It's an index into the stringtable. Settings3Res.dll is, as its name implies, a resource DLL; it contains no actual executable code.

Categories

Resources