Related
After updating to XWKE2, some people reported their battery life greatly improved after doing a full factory reset on the device.
After some research I found out that all you have to do is delete the following files, if they exist on your system:
/data/data/com.android.providers.telephony/databases/nwk_info.db
/system/csc/nwk_info.db
(The second file may or may not exist.)
And reboot your phone. You will notice that FastDormancy will now do short pauses between queries on your logcat (5seconds or more), instead of query non-stop like crazy.
Better yet, if you have the skills, you can figure out which values to set on those databases to make FastDormancy work or disable it on networks that Dormancy is not supported.
Since there are hundreds of different networks out there, it would be impossible for me to figure out the configuration for each one of them, so for now just delete the file and you will already get a great improvement on your battery life.
If you want to know more about the FastDormancy problem, just search on this forum. There are a few threads that already discuss it in length.
Even better, here is how to set the FastDormancy pooling to a very high value, making it save even more battery when your network does not support Dormancy:
You will need to have the file /data/data/com.android.providers.telephony/databases/nwk_info.db on it's original location, so if you deleted, recover your backup copy back in place. If you dont have one anymore, you can download the attached file.
1. make sure the file /data/data/com.android.providers.telephony/databases/nwk_info.db exists
2. make sure you have sqlite3 binary installed (most people install it anyway while rooting). It's usually located at /system/xbin/sqlite3
3. open adb shell as root and execute:
# cd /data/data/com.android.providers.telephony/databases/
# getprop gsm.operator.numeric
310410 <-- write down this number, it's your carrier number and you will need it for the following commands
# sqlite3 nwk_info.db
sqlite> delete from dormpolicy where plmn="310410"; (replace the number 310410 on all commands with the number you got from the previous command)
sqlite> delete from nwkinfo where plmn="310410";
sqlite> insert into dormpolicy values("310410","My Carrier",30,30);
sqlite> insert into nwkinfo values("310410", "My Carrier", "off", 1500, "", "");
sqlite> (hit ctrl-d to exit sqlite3)
#
Done, FastDormancy will only pop on your adb logcat once every 30 seconds. you can change the number to whatever you want, in seconds.
Quick FAQ:
Q: But I don't have the second file?
A: That's fine, most people won't have it. But the code that checks for those files also checks for that one, so just in case I decided to make sure that one is deleted if ever exists.
Q: But that file may have more important network information?!
A: IT DOESN'T. If you take the time to open the file and look at it, you will se that it doesn't have much information at all. You will see it's ONLY contents are related to Dormancy, and NOTHING else. So if you are having FastDormancy problems, they already miss the information you need about your carrier anyway. Also, if you factory reset after KE2, it already delete those files.
Q: My battery usage seams the same!?
A: The problem only appears IF wifi is turned off or in "sleep mode". If you are testing it in those conditions, you won't see anything changed. You will only notice the fix while the phone has no wifi connectivity, has 3g on and is on standby. That's when FastDormancy goes nuts.
Q: How do I disable Dormancy?
A: If you wanna mess with the database or with ro.ril.disable.fd.plmn.prefix=23402,23410,23411, you can find your current network plmn running over adb shell the command: getprop gsm.operator.numeric . It's not guaranteed that it will turn it off. But if you have any luck, post here please.
Q: Why FastDormancy is there in the first place?
A: If your network support Dormancy AND the information required is on those databases, you can get a much improved battery life by using it. But only a few have that right now. Or at least working as intended.
Will give it a try, thanks I hope it helps.
Sent from my GT-I9100 using XDA Premium App
Done. Now we'll see.
Thanks a lot !
is the "nkw_info.db" that i have to delete ?
Something tells me that those dbs have network info that might be needed perhaps? I'm assuming there have been no side effects other than removing the fast dormancy problems?
I'll give it a try 2nt .
Just in case I will copy those files to somewhere else. I am not sure if deleting is the best option.
No change on the android os cpu time, still 2 min /h as before after this fix
CandyAndy said:
Just in case I will copy those files to somewhere else. I am not sure if deleting is the best option.
Click to expand...
Click to collapse
For some reason I even didn't have the second file
CandyAndy said:
For some reason I even didn't have the second file
Click to expand...
Click to collapse
Same here, no second file for me either. Moved the first onto the sd card for now.
where is the file located?
I don't appear to have either file on my device.
How to change dormancy to off?
Sent from my GT-I9100 using XDA Premium App
So has anyone found that this has helped?
Sent from my GT-I9100 using XDA Premium App
Battery much worse. Phone now in arabic, wont boot and also has lcd juice leaking out of the earphone socket
Sent from my GT-I9100 using XDA Premium App
I only had the first file to have moved that to my sd! Only time will tell I guess!
Sent from my GT-I9100 using Tapatalk
jangomango said:
Battery much worse. Phone now in arabic, wont boot and also has lcd juice leaking out of the earphone socket
Sent from my GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
Nice one
Right, I'm an idiot, you can't see anything in the data directory without a decent file browser that takes advantage of superuser permissions.
I have now removed the first file (no trace of the second one, for reals) and will see how things go.
So far today, Android OS has account for 48 minutes of CPU in 5 hours, so it'll be interesting to see if that drops off...
I'm an idiot, too.
Not moved and directly deleted that file.
Damnit.. Next time it might be helpful if you are NOT 100% sure that it helps, please don't tell to remove instead of moving file..
13 Sekunden means 13 SECONDS!
Um, unixbyte, not sure what you're showing us there?
13 seconds of use isn't *really* enough to tell whether this has made a difference...
https://twitter.com/pof/status/250540790491787264
That is f'ed up.
crawrj said:
That is f'ed up.
Click to expand...
Click to collapse
I know.... Not good at all.
What about CM10 roms?
Sent from my SGS3.
It only affects the Roms that Samsung directly influenced and only their browsers. The best way to handle this as of right now, if rooted is to install Chrome ( which is not affected ) or FireFox. Then connect to your phone via ADB ( after installing the android sdk ) , remount the system partition via
# mount -o remount,rw /dev/null /system
CD into /system/app
either delete or rename the SecBrowser_ATT.apk, I moved it to SecBrowser_ATT.bak to make sure I still had it, and that it wouldn't start up.
From what I understand the CM10, Miui and CM9 Browsers are OK due to not having anything to do with the TouchWiz framework.
IF you are not rooted, you can still install Chrome or Firefox, make sure its your "Default" browser and go into Settings-> Application Manager -> find SecBrowser aka stock browser and force stop it and then disable it. I would even clear the cache and data of it also just to be safe.
Me personally, I would be more afraid of some of the JAVA vulnerabilities we have seen surfaced recently, specially due to some of the POF code I have worked on there is def. going to be some Android madness going on.
Nopcodex90, very good suggestion, but wouldn't it be easier (assuming you had root) to just freeze the app in Titanium Backup?
While your example would work, it seems to be more work. Also, why did you add " /dev/null" to the remount command? You can just remount /system by itself.
phonic said:
Nopcodex90, very good suggestion, but wouldn't it be easier (assuming you had root) to just freeze the app in Titanium Backup?
While your example would work, it seems to be more work. Also, why did you add " /dev/null" to the remount command? You can just remount /system by itself.
Click to expand...
Click to collapse
That would def. work also, I actually do not use Titanium backup, I tend to use the shell for my backups and own scripts. Nothing against the App, it does a great job, I am just a little old school.
Also with that said, I am still used to an older POSIX mount command that would have failed with just passing /system, but you are correct , just passing /system would also mount. And you took the damn fun out of focing some of the noobs to learn the damn shell! Sure you can use your fancy dang ol' GUI but In my hayday, we would connect to the interwebz at 9600 baud modems in a green and black vtz1000 terminal.
phonic said:
Nopcodex90, very good suggestion, but wouldn't it be easier (assuming you had root) to just freeze the app in Titanium Backup?
While your example would work, it seems to be more work. Also, why did you add " /dev/null" to the remount command? You can just remount /system by itself.
Click to expand...
Click to collapse
I can't find it in Titanium, I see it in root explorer under system/app/SecBrowser_ATT but nowhere in app manager or Tiatanium
johnnyutah22 said:
I can't find it in Titanium, I see it in root explorer under system/app/SecBrowser_ATT but nowhere in app manager or Tiatanium
Click to expand...
Click to collapse
It is probably called Browser in the app manager and titanium backup. The app has a different display name than the actual file name.
Or you can use a 3rd party dialer
Sent from my SGS3 using Apple's patents
http://gizmodo.com/5946334/samsung-security-bug-can-wipe-out-your-galaxy-phone-updating
It's been fixed already. Samsung has known about it for months. As long as you're running the latest firmware update (or any ROM based off of it), you're perfectly fine.
Nopcodex90 said:
That would def. work also, I actually do not use Titanium backup, I tend to use the shell for my backups and own scripts. Nothing against the App, it does a great job, I am just a little old school.
Also with that said, I am still used to an older POSIX mount command that would have failed with just passing /system, but you are correct , just passing /system would also mount. And you took the damn fun out of focing some of the noobs to learn the damn shell! Sure you can use your fancy dang ol' GUI but In my hayday, we would connect to the interwebz at 9600 baud modems in a green and black vtz1000 terminal.
Click to expand...
Click to collapse
Hahah.
9600?!?! Man, you were blazing. I remember back when I had to rely on my trusty old 2400 baud modem. Everything was great until the 9600s came out. Then suddenly every BBS was "too good" for us 2400 folk and put minimum speed restrictions up.
phonic said:
I remember back when I had to rely on my trusty old 2400 baud modem. Everything was great until the 9600s came out. Then suddenly every BBS was "too good" for us 2400 folk and put minimum speed restrictions up.
Click to expand...
Click to collapse
2400!? I had to rely on my town's trusty old 1200 baud modem, which was two hours away, uphill (both ways), in the snow for half a year, and had to wait for everyone else in the town to finish using it just to get to my favorite BBS - if the phone lines were up that day.
Kids these days...
smelenchuk said:
2400!? I had to rely on my town's trusty old 1200 baud modem, which was two hours away, uphill (both ways), in the snow for half a year, and had to wait for everyone else in the town to finish using it just to get to my favorite BBS - if the phone lines were up that day.
Kids these days...
Click to expand...
Click to collapse
Ah the good old days... The best part was when you were trying to call a BBS and the line was busy. I would call the operator and say that my computer was stuck on the line and I couldn't call home. She would listen and just hear "static". I asked her if she could break in and just blow or talk for a few seconds until it dropped. 9/10 times not only would they do it, but they wouldn't even charge me for the operator intercept, since they thought it was just fixing a phone problem. This was before modems were really common place, so they often had no idea what I meant when I said my computer was on the phone. I'd thank them, and magically the BBS was available.
smelenchuk said:
2400!? I had to rely on my town's trusty old 1200 baud modem, which was two hours away, uphill (both ways), in the snow for half a year, and had to wait for everyone else in the town to finish using it just to get to my favorite BBS - if the phone lines were up that day.
Kids these days...
Click to expand...
Click to collapse
Hey young man, what about our incredible 300 baud modems????
Also, this issue was fixed. Clicking the link does nothing on the latest AT&T OTA.
Issue was solved a while back.
Confirmed by Samsung.
Sent from my SGH-I747M using xda premium
Sir_Brizz said:
Hey young man, what about our incredible 300 baud modems????
Also, this issue was fixed. Clicking the link does nothing on the latest AT&T OTA.
Click to expand...
Click to collapse
My daily driver is an old Hayes 2400 because it can step all the way down to about 50 baud. We need that for remotely programming our hardware. With DOS software.
phonic said:
Ah the good old days... The best part was when you were trying to call a BBS and the line was busy. I would call the operator and say that my computer was stuck on the line and I couldn't call home. She would listen and just hear "static". I asked her if she could break in and just blow or talk for a few seconds until it dropped. 9/10 times not only would they do it, but they wouldn't even charge me for the operator intercept, since they thought it was just fixing a phone problem. This was before modems were really common place, so they often had no idea what I meant when I said my computer was on the phone. I'd thank them, and magically the BBS was available.
Click to expand...
Click to collapse
That's a pretty selfish thing to do, but I guess you were a kid, so it goes with the territory...
I loved my BBS days too. TradeWars, File drops, Forums, Sysop watching you and chatting, ANSI art, demo scene, yay...
Does anyone know which firmware it was fixed on?
Currently on UCALG1 based rom(been meaning to update to the newer version just keep forgeting to download it.)
What's BBS?
Sent from my Samsung Galaxy S3 with working maps.
I am wondering how i can go about recording phone calls on my note 2? I need to start recording phone calls from my cable company and some credit collectors...
Ive seen alot of places saying that you must be running a custom rom and a custom kernal, But i would not liek to root my note 2 or lose any of the data on it, or run into the issues ive had in the past with running custom firmware.
Is this possible from stock?
Superthrust said:
I am wondering how i can go about recording phone calls on my note 2? I need to start recording phone calls from my cable company and some credit collectors...
Ive seen alot of places saying that you must be running a custom rom and a custom kernal, But i would not liek to root my note 2 or lose any of the data on it, or run into the issues ive had in the past with running custom firmware.
Is this possible from stock?
Click to expand...
Click to collapse
There's a mod that enables an inbuilt call recording button on the incall menu. This needs root. No idea how well they work. Sometimes these things have issues recording your side of the call.
anewman said:
There's a mod that enables an inbuilt call recording button on the incall menu. This needs root. No idea how well they work. Sometimes these things have issues recording your side of the call.
Click to expand...
Click to collapse
Where could i find this? Also, I am not so concerned with my side, I just want to make sure it gets THEM and what THEY say clearly, so when people try to change their stories, which happens too much now adays and then suddnely, they cant pull my last call due to system errors or something...i wanna be able to say "Well, let me pull MY copy of the conversation, shall we?"
http://forum.xda-developers.com/showpost.php?p=31987959&postcount=8 Is J on the list. Sadly the Villainrom site which holds most of the mods has been down for some time now. There was a temporary site setup somewhere. If you are yet to root, I found Dr Ketan's other posts on this very helpful.
pistinu are
try these apps from the play store: (sorry I can't post links yet)
Automatic Call Recorder (by Appstar Solutions)
- my wife is using this on her stock N7105 and I use this on my rooted N7105 - it works fine
Call Recorder (by Clever Mobile)
- a friend is using this on his rooted N7105
All Call Recorder (by ANDROID LABS)
- another friend is using this on his stock N7100
I hope they work for you!
jolex_sp said:
try these apps from the play store: (sorry I can't post links yet)
Automatic Call Recorder (by Appstar Solutions)
- my wife is using this on her stock N7105 and I use this on my rooted N7105 - it works fine
Call Recorder (by Clever Mobile)
- a friend is using this on his rooted N7105
All Call Recorder (by ANDROID LABS)
- another friend is using this on his stock N7100
I hope they work for you!
Click to expand...
Click to collapse
Ill definitely try these...My main thing is i wanna achieve this WITHOUT rooting my phone. The last time i rooted my galaxy s 3, it started deleting text messages, I lost my copy/paste function and just more and more problems until i broke the phone and bought a note 2...
https://play.google.com/store/apps/details?id=com.appstar.callrecorder
Try this
Or check my signature for rooted phone use xposed
Sent from my GT-N7100 using XDA Premium HD app
Superthrust said:
Ill definitely try these...My main thing is i wanna achieve this WITHOUT rooting my phone. The last time i rooted my galaxy s 3, it started deleting text messages, I lost my copy/paste function and just more and more problems until i broke the phone and bought a note 2...
Click to expand...
Click to collapse
I would definitely use Xposed framework and call recording mod since this only ENABLES what is already built in Note II, there is no extra software running, slowing down your phone etc. And it is logical to assume it works better then 3rd party apps which weren't specifically written for SGNII.
As far as ROOT is concerned I really don't see how it can affect anything, especially what root has in common with messages being deleted etc. It must have been something else. Root has no impact on your phone's functionality, it only removes protection to system files (or better said, changes it from unavailable to available via prompt from the SU app, so there stil is some protection). There is excellend sticky by dr ketan (http://forum.xda-developers.com/showthread.php?t=1896696) on how to root SGNII.
dalanik said:
I would definitely use Xposed framework and call recording mod since this only ENABLES what is already built in Note II, there is no extra software running, slowing down your phone etc. And it is logical to assume it works better then 3rd party apps which weren't specifically written for SGNII.
As far as ROOT is concerned I really don't see how it can affect anything, especially what root has in common with messages being deleted etc. It must have been something else. Root has no impact on your phone's functionality, it only removes protection to system files (or better said, changes it from unavailable to available via prompt from the SU app, so there stil is some protection). There is excellend sticky by dr ketan (http://forum.xda-developers.com/showthread.php?t=1896696) on how to root SGNII.
Click to expand...
Click to collapse
So where can i get the xposed framwork and mod again?
And I am certain it was not the root, but i only noticed it on my s3 after i rooted. Not attributing it to the fact, but i didnt like it none the less, because i lost alot of messages and i couldnt send one or two messages wihtout rebooting every 5 seconds, and most hte time that didnt even fix it.
Superthrust said:
So where can i get the xposed framwork and mod again?
And I am certain it was not the root, but i only noticed it on my s3 after i rooted. Not attributing it to the fact, but i didnt like it none the less, because i lost alot of messages and i couldnt send one or two messages wihtout rebooting every 5 seconds, and most hte time that didnt even fix it.
Click to expand...
Click to collapse
First read the excellent thread on rooting, triangle away. After you root (trust me it is not difficult, you just have to take your time, read it through a couple of times) here is xposed thread: http://forum.xda-developers.com/showthread.php?t=2012770. The modules are located here: http://forum.xda-developers.com/showthread.php?t=2189965. The one you need is either "Enable Call Recording" or "Exposed TweakBOx", they both enable call recording but TweakBox can do a few more things.
And the best thing is there are a lot of modules for other things, and once you root and install xposed, you don't have to flash them - they're installed as normal APKs.
Best app for crystal clear recording is sanity download it from playstore and set to recording mode from mic to phone..... it works like charm I am using it....
Sent from my GT-N7100 using Tapatalk 2
Total Recall works great and records directly, not from speaker> mic
Note 2 N7100, rooted, with stock Samsung ROM.
dalanik said:
I would definitely use Xposed framework and call recording mod since this only ENABLES what is already built in Note II, there is no extra software running, slowing down your phone etc. And it is logical to assume it works better then 3rd party apps which weren't specifically written for SGNII.
As far as ROOT is concerned I really don't see how it can affect anything, especially what root has in common with messages being deleted etc. It must have been something else. Root has no impact on your phone's functionality, it only removes protection to system files (or better said, changes it from unavailable to available via prompt from the SU app, so there stil is some protection). There is excellend sticky by dr ketan (http://forum.xda-developers.com/showthread.php?t=1896696) on how to root SGNII.
Click to expand...
Click to collapse
i cannot find where to root my USA Tmobile galaxy note 2...
Hi everyone,
First of all, I just wanted to say thanks to everyone here for being such a great resource in the past. I have performed many roots via guides on here.
My real question, I was super excited to get KitKat and immediately accepted the AT&T Software Update...2 hours later I realized that my Portable WIFI Hotspot app was no longer functional due to the upgraded OS. I figured a factory reset would be fine since it wasnt KitKat when it first came to me, sadly it wasn't.
Does anyone have any advice for a work around? I have unlimited data with AT&T right now and do not wish to sacrafice that for hotspot services but it is a very convienent feature to have when I am on the go. I've thought of rooting, reverting (which didn't work), and search hours in the app store testing different ones.
Any and all advice/suggestions will be greatly appreciated
Thank you in advance guys and gals!:good:
There is no way around it without rooting, until they create another app, unless there is one that I don't know about. You need a modified framework file in the system directory, which cannot be accessed without root permissions. I'm guessing that you were using foxfi, like so many others around here. I might be wrong.
And next time, please do some research before accepting these toys, I mean OTAs. (I keep calling them toys, because the only reason I see why we so quickly rush to these OTAs is to play with them.) There is plenty of useful information here at XDA for you. Don't just look to fix your problem and then run. Some of the purposes of OTAs are to prevent rooting and block tethering (Foxfi has been broken a couple of times). When you do some more reading, you will see all of the problems that many are having around here after jumping to play with this new toy, I mean update, without waiting or doing enough research.
Personally, one of the best things I have done with my phone is not accepting this latest OTA.
ya, I completely regret not doing my usual research. I thought I read somewhere that you cant root this current version as well. If you can root, if someone could point me in the right direction I would greatly appreciate it, if not I can take a look around after work
The app was Portable WIFI Hotspot
Here you go if you need to root. It's in the general section.
http://forum.xda-developers.com/showpost.php?p=47747640&postcount=1
delete
I have determined that I at least will need to unlock my bootloader which I am already loathing since that means everything on my phone will get reset. We also don't even have signed firmware for this device. I don't care about root, but I also don't use any of this pay nonsense. I do play a certain game that will moan about my phone being modified though. I was already looking at the nougat thread regarding root and passing everything but I'm not interested in magisk and the headache that comes with having to deal with safetynet updates.
Far as I understand:
1. Get TWRP, can I get away with just booting it and not actually flashing?
https://forum.xda-developers.com/mo...recovery-unofficial-twrp-moto-z-play-t3495629
2. I guess tomparr's zimage kernel zip found here: https://www.androidfilehost.com/?fid=457095661767134479 is required since the system is going to be changed for what I want to do
3. Steps somewhere a long the lines of this http://www.theandroidsoul.com/enable-tethering-nougat-alongside-android-pay/
a. Add the net.tethering.noprovisioning=true line
b. Open Terminal emulator on your device and issue the following commands one-by-one:su
settings put global tether_dun_required 0
exit
If I am understanding anything wrong or anyone wants to point me at anything else to read that would be great.
[rant] What an annoying experience this has been, before a few hours ago I praised motorola(lenovo) for what an amazing phone this was, that is until I got that ridiculous update pushed to my phone. Yes, it is definitely snappier and more responsive, but I'm not giving up functionality because the developer of the dammed OS caved into pressure from carriers. I bought an unlocked phone an no carrier has any right to restrict any of my phones features just because they think they can. I work in an office where login into the wif is a thing and I will have multiple devices with me sometimes, so I used to just bluetooth tether the other devices from my main phone and not have to deal with mutliple logins, there are also times when out and about where my gf's signal isn't great and she will use my data to be able to keep using her phone. DAMMIT THIS IS FRUSTRATING.... [/rant]