yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500, V General] rockvoid:
that´s interesting... i have same baseband in 2.2.2 (10e)
[Optimus One, P500, V General] gincia:
Mine baseband version is AMSS6150, but the firmware is v20C, not G... I'm from Lithuania - baltics region, officially upgraded to 2.3.3...

EDIT: P.S. Sqliteman successfully opened the flex.db. Now i'm searching for the fast dormancy string...
[Optimus One, P500, V General] rockvoid:
hmmmm i thought LG´s 2.3.3 doesn´t work with old baseband...
[Optimus One, P500, V General] Layio:
As You can see flex.db is file with two tables. You must take your's operator index from "flexoperator", and in "flexinfo" on right side scrool to Your's operator index.
[Optimus One, P500, V General] rockvoid:
edit .
[Optimus One, P500, V General] gincia:
This is what I found:

What's next?

EDIT: I can click "view item" where I can change the values....
[Optimus One, P500, V General] rockvoid:
i think it has nothing to do with our problem... i have same entries (for my operatorindex) in 2.2.2 and i have no battery-problems...
[Optimus One, P500, V General] Layio:
@gincia This entry are not from your's operator. Take operator index from flexoperator table and in flexinfo table scrool to your's operator index.

But If we can force disable fastdormancy?
[Optimus One, P500, V General] rockvoid:
@Layio

do you have battery problems in 2.3.3 compared to 2.2.2?

you have same baseband as you in 2.2.2...so it would be interesting if the problem comes from LG´s android 2.3.3 or from new baseband AMSS6150.
[Optimus One, P500, V General] gincia:
Thanks. I opened flexoperator table, found a list of operators...Also found mine (Tele2, LT) which has operatorkey value of "20"...Should I put this value to flexinfo table, to fastformancy operator_index ? :confused:
[Optimus One, P500, V General] Layio:
No, on Froyo I don't have this big battery drain on 3G.
[Optimus One, P500, V General] rockvoid:
ok... so i think it´s not a baseband problem... because your baseband version is same as mine (i use froyo)
[Optimus One, P500, V General] Layio:
No. Take your's operatorkey value, and in flexinfo scrool operatorkey column to find operator value.

Edit flex.db didn't help, fast dormancy is still on.
[Optimus One, P500, V General] gincia:
But when we disable the fast formancy in hidden menu, the problem temporarily solves...BetterBatteryStats app, wakelocks section shows that FD stops being active (for a while)...
[Optimus One, P500, V General] rockvoid:
yes could be... if the settings are hardcoded in flex.db and gingerbread doesn´t overwrite these settings after some time...
[Optimus One, P500, V General] gincia:
Sorry, didn't quite understand what to do with that operatorkey value...

HOWEVER, in flexinfo table, there are 2432 entries (!!!), and in those entries there are 28 (!!!) DATACOM_FASTDORMANCY entries with different values (from 1 to 28)......

UPDATE: and in the flexoperator table there are 28 operator names...
[Optimus One, P500, V General] Layio:
@gincia One of this entires is for your's operator. Take your's operatorkey from flexinfo table, and find FASTDORMANCY entire with your's operator_index on last column.
[Optimus One, P500, V General] rockvoid:
do we have this file too?

/data/data/com.android.providers.telephony/databases/nwk_info.db

http://xdaforums.com/showthread.php?t=1086599
[Optimus One, P500, V General] rockvoid:
did you reboot your phone?
[Optimus One, P500, V General] Layio:
No, I don't have this file.

Yes.
[Optimus One, P500, V General] gincia:
Now I think I get it...I know my operatorkey (it is "20"), now I should go to fastdormancy find the entry with operator_index "20" and next do what? Change the user value ? Or default value? to which number?

P.S. nwk_info.db - I also do not have this.
[Optimus One, P500, V General] rockvoid:
i think you should set "user value" to "0"...
[Optimus One, P500, V General] gincia:
I also think that...I will change user value to "0", reboot the phone, and check the situation...At least we will see if user value will be force-changed back by GB.
[Optimus One, P500, V General] rockvoid:
you can look if the entry in hidden-menu also changed...and you can try BetterBatteryStats app to see if FD is still active...

http://www.cri.ch/sven/doku.php/computing/android/betterbatterystats
[Optimus One, P500, V General] gincia:
In the hidden menu, it is NOT shown which value is set. You just can set the new value and when come back to see your previous selection - all the entries are blank to make a new selection...

Is the FD still active, yes, I will see with the betterbatterystats and inform here as soon as I find out.
[Optimus One, P500, V General] Layio:
In my phone problem with FastDormancy is solved. I don't get FD process in BetterBatteryStats any more. Even when reboot, and re-enable data.

[root] Install SQLite Editor, then find FlexProvider > flex.db - there are 4 tables.

I change DATACOM_FASTDORMANCY value ("User value" and "Default value") to "0" in flex.db > flexinfo table (only on my "operator_index" column - this is very important to find correct line To find your's operator ID open flexoperator table and find operator name, then look at the operatorkey column and remember value. Go to the flexinfo table, search column "operator_index", and find your's operator value.). And I turn off FD in hidden menu.

Tip: If flexinfo table is too big to search - go menu > set filter - operator_index, and type your's operator value from flexoperator table.
[Optimus One, P500, V General] gincia:
Wow, great news :) Can you tell me how to copy flex.db from my sd card on phone, to /etc/flex (that is READ ONLY PERMISSION) ? I am using astro file manager...
[Optimus One, P500, V General] Layio:
I use RootExplorer to change permissions (button on folder top - enable r/w)

To edit on phone flex.db I use SQLite Editor.
[Optimus One, P500, V General] InfiniteRisen:
Wish we find a way soon.
[Optimus One, P500, V General] gincia:
Thanks again! Now it's time for my test... I hope that it really fixes the problem...

update: by the way, which value did you change to "0" ? "User value" or "default value" ?
[Optimus One, P500, V General] Layio:
Both of them.
[Optimus One, P500, V General] gincia:
Sadly, it didn't help me to solve the problem...The DataTracker-FD process starts even after disabling internet and does not start to sleep... My baseband version is AMSS6150, firmware version V20C.

This phone is gonna get me a cancer :confused::(
[Optimus One, P500, V General] Layio:
Are You sure, that You correct edit flex.db? Send me a line which You edit, and operator name and country.

Reboot phone? Maybe You must go to the recovery, and wipe cache and dalvik-cache?

After reboot are You turn off FD in hidden menu?

Are You use SQLite Editor on phone?
[Optimus One, P500, V General] gincia:
Yes, I think I edited it correctly. For corrections I used Sqliteman (on PC). Here's the link to my edited flex.db : http://www.failai.in/show/F/CED4CC9C7/flex.db

My operator is Tele2 (LT) and operator key is 20. So in flexinfo table I found operator_index with value "20" and changed the DATACOM_FASTDORMANCY both values to "0".

Overwrote file on the phone, made a reboot, after reboot went to hidden menu and set fast dormancy to "off".

The only thing I haven't done is "wipe cache and dalvik-cache". I have ClockworkMod recovery installed and if it can help wiping cache, and dalvik-cache, I will do so.

But at first, could you please check my flex.db ? Thank you.
[Optimus One, P500, V General] Layio:
I send You PM.

flex.db are correct. But You must check on phone with database editor, is file correctly saved. This is system file, and maybe edit with PC is don't allowed.

Tell me is on phone values change to "0"?
[Optimus One, P500, V General] gincia:
Yes, on phone values changed to "0" (I checked with sqleditor on phone). But sadly after another reboot and setting off fast formancy in hidden menu - the situation hasn't changed - the DataTracker-FD process still starts.

Now I will try to reboot to recovery and wipe partition cache + dalvik cache, and will check if it helped.... Thanks for help, anyway.
[Optimus One, P500, V General] gincia:
..and once again it went unsuccessfully :( I went to recovery, wiped partition cache, dalvik cache...rebooted, switched off fast dormancy in hidden menu, started 3G, browsed a little, disabled the internet...and the betterbatterystats showed that, the same DataTracker-FD process started and do not start to sleep. It is always awake... :(

flex.db values remains "0" as I set... So I have no idea how to fix this problem...

well, let's see how it helps for the other users.
[Optimus One, P500, V General] majorfigjam:
Temporary? Success

Whether by luck or not, I have managed to kill DataTracker-FD. All day running on a mix of wifi, HSPDA & 3G, and no wakelocks

I have a rooted stock 2.3.3 European V20e, which I am using outside Europe, and my current provider is not on the list of operator keys in "flexoperator".

So, i just set the user value and default value to 0 for Default (_id 193, operatorkey 163) using SQLite Editor.

My theory (which you might check out) is that if your provider is not listed, then default values apply and DataTracker-FD can be disabled; try deleting your provider values from the database after a backup of course.

Then your phone will use defaults, and if you set user value and default value to 0, no Datatracker-FD!

UPDATE 1

Left overnight, data connected on 3G, so gmail etc running, battery dropped from 100% to 92% so roughly 1% per hour, compared to earlier 20-30%. Still not great, but better than before.
[Optimus One, P500, V General] metalboy94:
Doesn't your network support FD?

@majorfigjam: My operator does not appear in flex.db at all (will double check when I get my phone back), but DataTracker-FD still runs. :mad:
[Optimus One, P500, V General] gincia:
If your operator does not appear in flex.db, then the phone is using default values, as majorfigjam said: "So, i just set the user value and default value to 0 for Default (_id 193, operatorkey 163) using SQLite Editor."
[Optimus One, P500, V General] nesa76:
Hi all,

this is my first post here. I have same battery problems with new GB 2.3.3. But i'm a bit android newbie so i have maybe stupid question :), where is that "System" folder and that "Flex.db" file??!! Should i open it via some terminal, command line or via file system?
[Optimus One, P500, V General] Roqu3:
I have two days with my flex.db edited to support my operator with FD disabled and the build.prop setting to disable it also and i can say some things:

- DataTracker-FD still refuses to close after disabling data, but now is more random than before, if i disable data and check after 20 minutes it's running, so I enable/disable data and check later and it isnt, and sometimes I disable and it stops.

- The issue doesn´t happen if data is enabled, and if I let data enabled I get waaay better battery life than it was before, so data isnt draining battery as before.

- My data connection is waaaaaay better than before, maybe my carrier dont have fast-dormancy.

So, since yesterday (more than 20 hours) I have data enabled all the time with sync on and i still have 30% left for today, and yes I use data a lot, before this changes with data on all the time and using it I get only like 12-14 hours.
[Optimus One, P500, V General] antonio.talamo:
hello, i was just been banned from an italian forum after, togheter to other user, we found a way to stop datatracker-FD :) I was banned becouse before we found the way,forum moderator sayd that found a way was impossible and the problem wa snot really a problem because android must be ever connected....

Ok solution is this, left data on from top menu, but using application "APNDROID" to get them on or off! you can see with betterbatterystats that datatracker is not active in this way (after get data off by apndroid) and phone can now go in deep sleep without battery drain! :)

this is a work around, I hope to found a solution to disable datatracker definitively using defult android button to disable data :)

oh just another think, the italian forum moderators that banned me for this discovery are crime and tecnhofab...nice...good to see that men who make custom rom have a so close mentality! hello to everybody and i hope to be useful!
[Optimus One, P500, V General] rockvoid:
wtf! .. the moderator must be berlusconi himself!

APNDROID changes APN-settings (it adds the string "APNDROID" to your apn-name) .... it doesn´t really disable data-transfer.

it´s weird .... if this really works it means that battery lasts longer with data enabled than disabled...
[Optimus One, P500, V General] antonio.talamo:
it's very strange :) but try :) it work at 100%. remember to left data connection on, and using only apndroid to enable and disable it. I tryed for example with apn on/off widget but don't work! maybe becouse this widget work exactly as the android button, in fact, i can be wrong, but if you disable data from "apn on off" you can see that the android button became off too... but, if you disable data from apndroid, android button remain on... but you can see with 3g watchdog for example that data are really disabled. As I know, apndroid just rename apn to make them don't working. So probably, without use apndroid you can simply remane apn manually to disable datracker-FD. Naturally is not very useful to rename apn manually every time :) but a test just to be sure that is the APN raname to make datatracker off should be done. If this evening I have time I will try this too :)
[Optimus One, P500, V General] gincia:
Dude, You are GOD !!! Finally with your help I found a solution. It works...at least so far! As soon as I disable the connection using apndroid, the datatracker-FD awake time also stops!

100 times thanks!

Also it is very comfortable to have apndroid widget on the desktop for quick enable/disable of the internet! Great, I hope this will work forever :D
[Optimus One, P500, V General] rockvoid:
the question is if battery really lasts longer now...

you don´t disable data - just rename APN temporarely...

so the phone may always want to contact APN but can´t cause it´s renamed...

these connecting-attempts may suck your battery empty...
[Optimus One, P500, V General] gincia:
well, it may be! Because I have just noticed that battery went a few percent lower in a few minutes...Will see in the future how it will behave...

EDIT: However, the original active connection icon dissapears when I disable the connection using apndroid...So when the APN gets renaimed it is a question IF IT TRIES TO CONNECT ANYWAY... Let's imagine situation that I configured my APN manually and entered wrong info...It would be strange if the phone would try to connect anyway after enabling the net...

Well, the time will show.
[Optimus One, P500, V General] antonio.talamo:
I can say for sure that really battery last longer :) except if you have other problem obviovsly, in android there as so much app that can cause battery drain, but this specific issue is solved in this way :) I'm not god :) another user, Tonymonta is the italian forum name, who found that apndroid stop datatracker! so we have to thank it. I just linked buttery drain, datatracker and apndroid all togheter :)

EDIT

ahahah my english is very bud :P Tonymonta is the name of the user who discovered apndroid to disable datatracking, not the name of the forum of course xD
[Optimus One, P500, V General] antonio.talamo:
ciao Paolo, spero che capiterai di nuovo da ste parti, come sai i tuoi amici mi hanno bannato dal sito :)...ma alla fine credo che avevo ragione. vabbè fa nulla, cmq ho provato il tuo programmino x airplane mode e va alla grande! :) volevo solo ringraziarti! :)
[Optimus One, P500, V General] Roqu3:
I´m using APNDROID and i can confirm it stops the DataTracker drain and battery life is normal now.
[Optimus One, P500, V General] majorfigjam:
Mysterious Return

After 5 days of success, and only AlarmManager too worry about, DataTracker-FD mysteriously reappeared.

Only change to phone was to install Swype beta, and that should not have made a difference. I will need to check what else changed.

I don't see the point of APNDroid - as a phone which does not connect to data might as well be switched off, or left on 2g.

Update: further investigation shows that the User and Default values that I set to 0 in flex.db had reverted to 10 in both cases. Very odd indeed.
[Optimus One, P500, V General] metalboy94:
There is a very simple fix for AlarmManager - remove the Clock app (with TB) and get another alarm app from Market. I found a good one, if I remember correctly it's called Alarm Clock [something], and it's got an icon with a red bell. It is identical to the Clock app, it features a few more functions for alarms AND it doesn't trigger a wakelock. :)
[Optimus One, P500, V General] Roqu3:
I think AlarmManager is not the clock alarm, is a process about bad closed apps or something, read the BetterBatteryStats thread, theres some info about that.

And yes i dont why but APNDROID works, DataTracker stops when the apns are renamed
[Optimus One, P500, V General] InfiniteRisen:
No it's not. Android proccess that has something to do with app startup etc

Swyped from my LG-P509 using XDA App.
[Optimus One, P500, V General] metalboy94:
http://developer.android.com/reference/android/app/AlarmManager.html

"The Alarm Manager is intended for cases where you want to have your application code run at a specific time, even if your application is not currently running."

So it's not just the alarm clock, but it's something the Clock app probably uses. :p
[Optimus One, P500, V General] Layio:
Yesterday in TitaniumBackup I frozen stock Weather app and News and weather app, and I don't more get any AlarmManager wakelocks.
[Optimus One, P500, V General] forforce:
datatracker it's eatng my battery , Why is that so? Is there any way to stop it?
[Optimus One, P500, V General] dr.notor:
Maybe...

read

this thread before jumping in?
[Optimus One, P500, V General] terratrix:
What if my network supports fast dormancy? Will still drain battery?
[Optimus One, P500, V General] dr.notor:
Shrug; it should save your battery. :p
[Optimus One, P500, V General] P500Alive:
I was able to stop battery drain by datatracker-fd using APNDroid.

Don't know why, but it works for sure. Hope LG will push an update on this.
[Optimus One, P500, V General] majorfigjam:
It finally worked, without having to kill the 3g connection at all.

After I fixed the write permissions on flex.db (see my post way back in this thread) to stop anything re-writing default values, I am now getting roughly 1% battery loss per hour with the phone idle, but with 3G/HSPDA access switched on to receive gmail pushes etc.

I'm down to recharging every two days with normal use, including wifi and gps while out and about.
[Optimus One, P500, V General] metalboy94:
Great! But who knows if it works for me as well, for example, I'm getting my phone back on Tuesday so I'll try then.
[Optimus One, P500, V General] neoonix78:
I use APN on/off widget it's work as well.
[Optimus One, P500, V General] terratrix:
I can't seem to edit flex.db . It wrote attempt to write readonly database.

If i click from FlexProvider, it says unable to open database file.

I tried both with r/w on.
[Optimus One, P500, V General] metalboy94:
The APN widget method works fine. I am currently in another town, and I have noticed that FD does work here, switching to 3G when data is not used, then (with a small delay) back to H when it is used. o.O
[Optimus One, P500, V General] Vonpire:
I found a easy way to end that fd wakelock. When u just plan to stop using 3g/hdspa (go to sleep for ex.) go to applications, show all, force close dialer ("teclado" on Portuguese). Your sim card will disconnect then connect back and the fd lock is gone!

Not the petfect solution but an easy workaround.

Try it and post your results.
[Optimus One, P500, V General] metalboy94:
Was already suggested, APN on/off widget is better.
[Optimus One, P500, V General] Vonpire:
Apn on/off widget does not work at least on my phone.

If it was already suggested, sorry, didnt see it.
[Optimus One, P500, V General] metalboy94:
Well it works for me and a few others. Try APNdroid then.
[Optimus One, P500, V General] Vonpire:
You are right it works but It has to be done with 3g/hdspa still on! If you first disable the 3g/hdspa and only then use apn on/off it won't work at all and wake lock still there.

So apn off has to be done BEFORE switching 3g/hdspa off. This way lock stops.

Thx
[Optimus One, P500, V General] metalboy94:
It actually doesnt matter if you turn off data or not after using the widget. :)
[Optimus One, P500, V General] dr.notor:
/me mumbles something about scratching with left leg behind right ear and moves on. Can as well disable the data altogether and move on; why are you setting an invalid APN and then disabling data? :rolleyes:
[Optimus One, P500, V General] Vonpire:
What i mean is that if you first disable data through dropdown ui, no matters if you change apn settings after or not, wake lock is still there no matter what apn setting is.

So you can't disable data through dropdown ui for the wake lock to disappear, you have to change apn with it on and that is what stops the fd wakelock.

So it didn't work for me before because i first turned off data on dropdown ui and only then changed apn with apn on/off.

Stupid bug this fd crap on GB.

And worse is that it don't happen always, it appears that depends also from where you are... If for example I make a reboot on my office and then start turning 3g on or off the lock just don't stay there, it doesn't even appear! BUT if I do exact same thing at my house, for example, wake lock just appears and has to be killed by one of those methods described before.

Weird stupid bug :)
[Optimus One, P500, V General] majorfigjam:
How to keep data, and lose DataTracker-FD

For the last month, I have not had any of these wakelocks, but have kept 3g / HSDPA access for push email etc. Idling battery drain is <1% per hour, and has been a bit lower since I started using Franco's kernel for GB. I have deleted a lot of annoying auto updating apps, like weather clocks etc.

You need:

Rooted phone - and yes Super1Click works for European Stock GB - just RTFM

Root Explorer

SQLite editor

Put phone into Airplane mode - to stop any "over the air" interference

With Root Explorer, go to system/etc/flex, and check and if need be update file permissions on flex.db. Make sure you have full write access to it. "Mount r/w" may not be enough as this is a system file.

Take a backup copy on your SD, just in case, as you will be editing a system file!

In flex.db, using SQLite editor, delete the records for your provider - which will make the phone use "default" settings in future. If you've got lots of time, delete all the records except the "default" ones, but it shouldn't matter unless you use roaming.

Set both the DATACOM_FASTDORMANCY values to 0 for the default record.

Save flex.db, and then reset ALL its file permissions to Read Only - which stops any stray system updates from resetting the values. If it won't save, you didn't set the permissions properly. Start over.

If you have custom recovery, wipe your caches. If not, don't worry, it shouldn't matter.

Reboot phone.

Turn off Airplane mode.

Update APN values for your provider - mine will send a system sms message to do the update,but you can do it manually.

If you've done this properly, the default values will still be used for DATACOM_FASTDORMANCY - no DataTracker-FD wakelocks.

If you get data problems, lost connections etc, then restore your backup copy!

Hope this helps.
[Optimus One, P500, V General] joeyxl:
I think I might have this issue, im using miks cm7 ROM and cell standby is at the top of my battery usage list, but it seems accessing the menu doesn't work

Sent From My P-509 With Xda Premium App
[Optimus One, P500, V General] terratrix:
No, your issue is completely different from the thread. Your issue is not really an issue, it's perfectly normal. What matters is your time without a signal percentage.