WARNING: This is an extremely crude hack and I do not really know what it does. It could very well destroy your Exchange folders or worse. Please make backups and do not use this hack with any important email accounts, Exchange or otherwise!
---
Tl;dr summary: I removed EASSyncService.smali from the stock Samsung Email.apk and replaced it with the EASSyncService.smali from jakubklos' AOSP email wakelock fix. I did not edit the smali code or have access to Samsung sources, so this is a very crude hack and there are some bugs. I'm hoping people can expand on this work and come up with a better solution. All credits to jakubklos for the fix; any bugs are the result of this hack and not jakubklos' work.
---
In this thread, jakubklos identified and fixed a battery drain bug in the AOSP Email app. This bug causes the Email app to not release a partial wakelock in some cases when syncing with a Microsoft Exchange account. The result is a battery drain until you restart the phone or regain the connection. See the linked thread for more details.
The bug fix is just a very simple change to EASSyncService.java, but it required editing the source code and recompiling the Email app. This change has already been merged into CyanogenMod and Google should be putting it in future versions of Android.
The Galaxy S II comes with a different version of Email.apk. It is similar to AOSP, but generally the Samsung Email.apk is a "better" version of the AOSP Email.apk. The Samsung Email.apk has some extra features like peak/off-peak sync scheduling, and an option to force emails to display in white text with black backgrounds (my favorite feature -- easier on my eyes and saves some power on the AMOLED screen).
Although the source code for the AOSP Email.apk is available, the code for Samsung's Email.apk is not. (At least as far as I know; please let me know if I am wrong.) So we can't directly use jakubklos' method of editing the source and recompiling the app.
However when I opened up Samsung's Email.apk, I noticed it had basically the same .smali files as the AOSP Email.apk. Yes, there are differences, but I figured that the EASSyncService.smali in the Samsung app probably does basically the same thing as EASSyncService.smali in the AOSP app. Understanding and editing smali is way beyond my abilities. So my hack was simply to replace the EASSyncService.smali from the stock Email.apk with the EASSyncService.smali from the fixed AOSP Email.apk.
Result: It's not a perfect fit. I get occasional force closes and other random errors. But for the most part, it seems to work, and my Email wakelocks are lower. Note that this bug affects me a *lot* because my Exchange server at work is really ghetto and constantly unreachable. If you have an Exchange server running at real corporate standards without much downtime, then this bug probably does not affect you and you will not notice any improvements.
Despite the occasional crashes, this is "good enough" that I am using it for my daily use. I am sharing the app below so others can test it out. But be warned, this is for experimenting only. I really have no idea what EASSyncService does and what the differences are between the Samsung EASSyncService and the AOSP EASSyncService, so I cannot guarantee that it will not trash your Exchange folders or worse. Do not use this with any email accounts that are of any value whatsoever!
Eventually I hope somebody can come up with a better solution, either by editing the .smali code, or getting Samsung sources and recompiling the app, or something else.
---
Installation instructions (requires root):
- Backup your stock Email.apk.
- Delete your email accounts and clear all email data.
- Uninstall your stock Email.apk.
- Download the "Email.apk" attached below. Copy to your /system/app folder.
- Reboot your phone.
Bump!! I hope some Samsung Devs are reading xda frequently. They need to work hard on the software side. HTC is better in that area. But Samsung hardware is so good. I hope they catch up soon, otherwise I will jump ship for my next purchase. It's just not acceptable to have bugs in the most important feature of smartphone like exchange email, calendar, etcs....
Thanks alot OP!!
To the OP, how is this mod working out for you? Have you used BetterBatteryStats to see if the wakelocks have gone?
I'm really suffering from this issue, the phone is kept awake more than 50% of the time even though the screen on time is minimal.. only have one exchange email on push, and issue definitely goes away when push is disabled
It works the same as jakubklos' AOSP email wakelock fix. In my case, it means that the wakelocks are somewhat lower, but I still get a lot of email wakelocks.
Remember that the jakubklos' wakelock fix only applies in certain situations, namely where the connection is interrupted while syncing. If you have wakelocks for other reasons, then it will not do anything for those.
Battery life on Exchange push is affected by a number of factors. From what I understand, Exchange push is actually more like a slow pull. The phone initiates a request to the Exchange server and waits for a response. The Exchange server will delay responding until there is a new mail or until the connection times out. The phone is supposed to sleep while its waiting for the server to respond, but it wakes up again when it needs to send another request to the Exchange server. (This is different from Blackberry's service which is a "real" push because it's tied to the phone carrier.)
So if you get lots of mail, or if the Exchange server timeouts too quickly, the phone will have to constantly wake up and reinitiate the connection. Sometimes when the connection is poor or the phone can't reach the server, I think the client goes crazy and just constantly sends out sync requests. But I don't have a log or anything to try to track down the problem.
What bugs have you encountered? I want to install it but I can't seem to find a list of bugs ...
Does this also bypass administrator checks?
I can't remember exactly what I did that triggered the crashes. I think I was trying to rearrange some mail in Exchange folders or something like that. Another crash occurred when I was using the Email app to do something with my Gmail account.
Now I use the Email app only to send and receive email. Haven't had any crashes since then, and it seems to be okay for my daily use. But again I have no idea what the differences are between the Samsung and Android files so it's definitely "use at your own risk."
Seifer1975 said:
Does this also bypass administrator checks?
Click to expand...
Click to collapse
No. But if you wanted that "feature," you could just substitute the same smali file in the version that doesn't have the administrator checks. I think the only difference is a line in an xml file.
Guys can you post up wakelocks please of a normal days usage with stock email client on exchange I want to see how badly it affects wakelocks. I've tried to add the code inbetween roken pipe and before ping times but not sure if it actually works or not. My BBS shows 12mins for email app today between 8am to 6pm.
Not sure if that's bad or not as I've not tested those times on stock email app.
Related
I've been doing a lot of searching (push poll battery), and not finding much of a definitive answer on this.
Battery life, vs. email checking method... what impact does push (IMAP IDLE) have vs. polling.
And very possibly the answer varies depending on how often you would poll... ie. I could see that polling every 5 minutes uses more battery than push, but polling only once/hour would use less .. I'm not saying that;s the case, just saying maybe the answers are not so clear b/c its not an always-this or always-that answer.
It appears that the GMail app uses push. I don't really use Gmail for my mail.. I have a home server (linux box) that runs an IMAP server (and webmail), so I have multiple ways I can get my mail
a) over the web via browser
b) using K-9 to access my home IMAP via poll (let's say every 15 minutes)
c) using K-9 to access my home IMAP via IMAP IDLE (push)
d) insert other idea here
I think a) is probably the best battery life, but by far the least convenient, so really I'm trying to understand the differences/trade-offs for b&c (and open to learning if I've missed a better way (d).
thanks,
Mike
Theoretically, it should be "c" given the choices you present.
In practice however, I have found that k9mail is a bloated pig and dead slow. It might not use up much network in the imap idle, but the thing seems to have a constant and very ugly hit against the CPU.
Gmail push delivery is quite similar to using imap idle. There is some difference in the execution of push email delivery though... you will find that gmail only pushed the notifications and not the message itself. k9 actually pushes the message so that it would be available for reading offline.
lbcoder said:
Theoretically, it should be "c" given the choices you present.
In practice however, I have found that k9mail is a bloated pig and dead slow. It might not use up much network in the imap idle, but the thing seems to have a constant and very ugly hit against the CPU.
Gmail push delivery is quite similar to using imap idle. There is some difference in the execution of push email delivery though... you will find that gmail only pushed the notifications and not the message itself. k9 actually pushes the message so that it would be available for reading offline.
Click to expand...
Click to collapse
Thanks for the info!
Is there a better IMAP client vs. K-9? (I found that it at least is much better than the stock mail proggy and haven't seen really any suggestions for alternatives for IMAP)
Is there an option d I should consider? (its my linux server at home.. I use fetchmail to collect/condense several email accts to one.. and can install other packages if there is something I should try)
thanks,
Mike
How about just forwarding everything to your gmail address?
lbcoder said:
How about just forwarding everything to your gmail address?
Click to expand...
Click to collapse
Nah.. I like having everything on my home server.
I like Google, but don't need/want to have all my mail sitting there for them to parse.
zim2dive said:
Nah.. I like having everything on my home server.
I like Google, but don't need/want to have all my mail sitting there for them to parse.
Click to expand...
Click to collapse
.... forwarding it does NOT mean that you are deleting it from your home server. You can have it in both places.
lbcoder said:
.... forwarding it does NOT mean that you are deleting it from your home server. You can have it in both places.
Click to expand...
Click to collapse
Understood.. I just prefer to keep *any* company from having 100% of my personal life flowing thru their hands (I avoided having my contacts even uploaded into "the cloud" until I got this phone), so I'm looking for best battery practice methods that offer a fair compromise of email timeliness, battery life, and access my server (tho adding/upgrading my server to support some kind of better feature is certainly fair game.. its Ubuntu 9.10)
I don't wear tin foil hats I just detest spam... and (IMO) the best way to avoid spam is to keep control over your info.
I highly doubt that any of your emails are particularly secure. Unless you are certain that there is an SSL pipe all the way from your SMTP client through to the other guy's SMTP client, and that there is no windoze-anything anywhere along the lines, then it is trivial for anyone to read your emails.
With that, it would be *really* nice if they added public key encryption to the gmail application.... (not the gmail web service, but directly in the application).
lbcoder said:
Gmail push delivery is quite similar to using imap idle. There is some difference in the execution of push email delivery though... you will find that gmail only pushed the notifications and not the message itself. k9 actually pushes the message so that it would be available for reading offline.
Click to expand...
Click to collapse
Sorry for regain an old post, but ive constant problem with gmail app.
I never can had notification from gmail when an emal arrives.
I flashed cyan5.07test5, set my gmail account to import hotmail messages, and enabled imap and pop3 via web interface.
I installed Gmail Notifier (free on the market) too.
I set "Automatic sincronization" and" background data" (sorry for wrong translation, i've an italian phone), but gmail never automatically synchronize new mails nor notify that. I can manually update only, and he're we go. Any help?
fl3xo said:
Sorry for regain an old post, but ive constant problem with gmail app.
I never can had notification from gmail when an emal arrives.
I flashed cyan5.07test5, set my gmail account to import hotmail messages, and enabled imap and pop3 via web interface.
I installed Gmail Notifier (free on the market) too.
I set "Automatic sincronization" and" background data" (sorry for wrong translation, i've an italian phone), but gmail never automatically synchronize new mails nor notify that. I can manually update only, and he're we go. Any help?
Click to expand...
Click to collapse
This question is totally unrelated. I'll answer you here, but if you have further questions along the same line, you must start a new thread to address it, OK?
First off, gmail notifier should NOT be used, nor anything else that might interfere.
Second, gmail notifications go over gtalk on port 5228. I do notice some oddities re gtalk/5228 on CM507, but pushes seem to work (at least on t5 and for me...)
Ensure that you are signed in to gtalk service -- by running the "talk" application and signing in (and setting it to sign in automatically). This might help you.
POP and IMAP have nothing to do with this at all.
Something else you didn't mention is whether this problem you are experiencing is limited to the CM507 ROM, or if you've had it previously. This makes a big difference -- if it didn't work before, then you need to consider the possibility that your mobile data provider is interfering somehow. I know that Wind in Canada initially caused some trouble for google services on 5228, I don't know if it was perhaps related to a similar policy implemented elsewhere. We have since had a dialog with them and have had these kinds of issues eliminated.
wow lbcoder, you must be sick.
I didn't notice any sarcasm and you were polite.
lol
Sleeepy2 said:
wow lbcoder, you must be sick.
I didn't notice any sarcasm and you were polite.
lol
Click to expand...
Click to collapse
Ah, BITE ME
(feel better now? )
lbcoder said:
Ah, BITE ME
(feel better now? )
Click to expand...
Click to collapse
haha. much
lbcoder said:
This question is totally unrelated. I'll answer you here, but if you have further questions along the same line, you must start a new thread to address it, OK?
First off, gmail notifier should NOT be used, nor anything else that might interfere.
Second, gmail notifications go over gtalk on port 5228. I do notice some oddities re gtalk/5228 on CM507, but pushes seem to work (at least on t5 and for me...)
Ensure that you are signed in to gtalk service -- by running the "talk" application and signing in (and setting it to sign in automatically). This might help you.
POP and IMAP have nothing to do with this at all.
Something else you didn't mention is whether this problem you are experiencing is limited to the CM507 ROM, or if you've had it previously. This makes a big difference -- if it didn't work before, then you need to consider the possibility that your mobile data provider is interfering somehow. I know that Wind in Canada initially caused some trouble for google services on 5228, I don't know if it was perhaps related to a similar policy implemented elsewhere. We have since had a dialog with them and have had these kinds of issues eliminated.
Click to expand...
Click to collapse
You always help, it was the gtalk service for some reason not initiated.
Ive tried with openssl a lot with no result.
Yes, lbcoder is real sarcastic BUT had always some special gear.
thx a lot
On the Gmail app on the Vibrant, is there any way to set when your phone checks for mail? I'd like to be able to lower the rate at which it checks. Can't seem to find any option for it whatsoever.
As far as I know, there is no polling interval. New e-mails are pushed directly to your phone the moment they arrive.
vapotrini said:
On the Gmail app on the Vibrant, is there any way to set when your phone checks for mail? I'd like to be able to lower the rate at which it checks. Can't seem to find any option for it whatsoever.
Click to expand...
Click to collapse
If you want to do this, you need to turn off email sync, with gmail , and set gmail up with the regular email app on the phone, gmail gets push mail notifictations, the regular app polls at a set time.
Thanks for the responses.
thegreatcity said:
As far as I know, there is no polling interval. New e-mails are pushed directly to your phone the moment they arrive.
Click to expand...
Click to collapse
Well if that's true then surely that is hurting battery life, no?
A further question:
Will Gmail still update if you turn off Auto Sync? What about Background Data?
if you turn off auto sync, then nothing will come to the phone that is on that account, email, contacts, calendar, etc. its either all on or all off
vapotrini said:
Well if that's true then surely that is hurting battery life, no?
Click to expand...
Click to collapse
Not necessarily. You may want to look into other options to conserve battery life, but if you feel that Gmail is the culprit, Id say that watcher has the appropriate solution. The regular email app, is decidedly less feature filled, but you can certainly change the polling interval with it.
Kubernetes said:
Will Gmail still update if you turn off Auto Sync? What about Background Data?
Click to expand...
Click to collapse
No, with Auto-sync off, you only get calls and texts.
Push is not Poll
vapotrini said:
Well if that's true then surely that is hurting battery life, no?
Click to expand...
Click to collapse
I don't believe that is necessarily true. Gmail leaves a TCP/IP connection open to a server, but transmits no data unless there is a new message. In other words, think of your phone as running a very simple and secure server that is ready and listening for Google to connect to it and alert it that there is a new message to retrieve (I don't think it's really a server, but it helps conceptually). Leaving that port open and a constant connection with no data flowing requires no additional battery life over what is necessary for your cellular modem to be on (which you need to be able to receive calls as well).
Wikipedia says that the technology used is Microsoft ActiveSync, but I'm inclined to believe it's XMPP (which is what Google Talk uses and is built into Android for other uses as well). But the above description of the technology is valid either way.
(spamblocker, remove the spaces) http :// en.wikipedia. org /wiki/ Push_e-mail # Google_Android
Every time a message is received, battery life is consumed in order to download the message. So, if you were to get the message on your desktop first, handle it, and delete it, I presume that would save you the battery life of the download of that message, but that is a very nominal amount of battery life. I wouldn't worry about it.
watcher64 said:
If you want to do this, you need to turn off email sync, with gmail , and set gmail up with the regular email app on the phone, gmail gets push mail notifictations, the regular app polls at a set time.
Click to expand...
Click to collapse
Just a heads up to the OP (or anyone interested) regarding the stock email application- my experience was that the polling interval was unreliable. I have 3 email accounts, 2 of them were set to check on frequent intervals like 10 minutes or something and the third was set up to check on the hour.
Often times the stock email app would miss the intervals or would not check at all. Additionally there were numerous occasions that mail was sitting on my server but the stock vibrant mail would report no messages.
Your mileage may vary as many people seem to have very different experiences with their phones and bugs. My experience with the stock email app was pretty poor so I thought it worth sharing.
GPS and such annoyed me but I figured I'd be able to wait it out for a fix. Email was nearly a deal breaker though, especially having these problems after coming from blackberrys which do a great job with email.
I figured gmail was the way to go but i didnt want to get into some complex forwading scheme fr all of my email addresses.
The way I ended up working it out was to set up a free Google business account and change the mx records on my mail server to run through Google servers instead of my webhosts servers. Now I'm running all of my email addresses on the Gmail application and have push email and aside from a few minor gripes with the gmail/android interface I am pretty happy overall.
I'd suggest sticking with the gmail application, push email is a good thing.
Juice Defender from the market allows for setting how often your phone connects to a data connection. More or less doing the same thing.
I don't personally use it since I don't care, but it should answer the OP's question with a working solution.
Thanks for all the responses guys, a lot of good alternatives out there it seems.
I don't get all that many emails a day so was just curious if disabling it would save a lot of battery life. Since the general consensus is that it doesn't I'll leave it be.
Dear all
I've only had my SGSII a week or so but have been very unimpressed with the battery life I've been achieving - not even a full working day.
I've been trying to work out what's going on, but this morning things really seemed to come to a head. I'd charge overnight but within an hour and a half of disconnecting the phone almost half the charge had gone & the back of it felt very warm to touch.
Looking at the battery stats and using the Watchdog program it looks like the Samsung Email app is to blame. I also saw the phone was marked as 'awake' much of the time, presumably due to a partial wakelock from the Mail app (battery history in Gingerbread doesn't seem to actually have partial wakelock as a category but this certainly looks like it). I've got three accounts setup in it - 2x Microsoft Exchange and 1x IMAP. Refresh times were initially push (MSEx 1)/manual (MSEx 2)/15 min (IMAP). I've tried changing them all to 15 min or to manual but it doesn't seem to improve matters. In case it is of relevance, the MSEx ones are imposing device & storage encryption as part of their policies (I've no choice in this).
Relevant screenshots below - would be grateful for any thoughts as to how and improve matters!
What firmware are you on? I believe the later ones fix the email app slightly, although I haven't seen any drain as bad as yours.
Another option, if you don't mind flashing a custom ROM, would be to install VillainROM 1.4, and use the Villain Tweaks app to get the vanilla Android e-mail app. It's what I've done, and it seems to work well!
Thanks for the reply. I'm just on the stock ROM that came with the phone (XWKE7) - both update on the phone and Kies don't report any further update being available for me (UK SIM-free unbranded).
I tried rooting this morning and used TB to freeze some of the Samsung rubbish (hubs, etc.) - however none of this made any difference to battery usage.
I wasn't sure how the stock email app handled MS Exchange accounts that required encryption? The Samsung Mail app isn't that bad, I particularly liked the split pane view - it seems really badly coded though if it's causing this!
Short of a total ROM replacement any other thoughts from anyone?
delete the data from the app
settings/applikations/all/email/ delete or wipe user data (all data).
make a new Mailaccount.
spline1 said:
delete the data from the app
settings/applikations/all/email/ delete or wipe user data (all data).
make a new Mailaccount.
Click to expand...
Click to collapse
Thanks - had been looking for this but couldn't find anything under 'Mail' - found it under 'Email' as you mention As soon as I deleted the data it recognised the device encryption policy had been removed and this triggered a decryption of system and external storage. I'll monitor battery usage for a few hours then reinstate the IMAP account and monitor things again before finally restoring the ActiveSync account.
OK definitely some progress so far - only IMAP account added just after charging stopped and battery usage has dramatically improved...
Now going to try adding an MS Exchange account!
OK, so far so good - MS Exchange account added back in and left on overnight...
I wonder if the mistake was when first setting up the account picking the special Samsung 'premium account' option??
OK - I'm now suspicious that it is manual sync setting that is causing the issue - re-added a second Exchange account and put it all to manual - phone almost totally drained in a couple of hours, with the sharp drop occuring just after I added that:
Have tried removing just that account and hope that will do the trick. If so, will then try adding it again but setting a sync time rather than leaving it on manual.
I've switched to touchdown for my corporate ms exchange account (push) instead of the samsung app.
Battery life gone from 7 hours to about 16 hours. I can't believe the native app is so thirsty. (KE7 stock)
Sent from my GT-I9100 using XDA App
What's interesting was that I was getting around 16+ hours too with the stock app having an MS Exchange account (on push peak times and 15 min other times) an IMAP on 15 min and a few Gmail accounts. It seemed to be adding the 2nd Exchange account on manual sync that sucked the battery life again. Am going to try readding it but paradoxically leaving it on a more frequent sync setting to see how that does.
If i remember correctly, it was observed that the mail app (non gmail) and wifi interact to cause a lovely wakelock, and that it happens with stock and samsung.
Maybe try something like k-9 mail?
Intersting - it certainly seems to behave like a wakelock. As I say though with one account on push and one in 15 min it was working fine - it was only when I tried to add a second exchange account on manual that I started to run into problems. Pretty poor coding on Samsung's part though regardless! Does anyone know the best way to raise these sort of issues with them?
Get in touch with Seven as well they produce the email app. I have mine on push with exchange and no bad battery drains, also I run manual when in the office once again no heavy drainage. I am on VR though.
Sent from my GT-I9100 using XDA App
alanjrobertson said:
Does anyone know the best way to raise these sort of issues with them?
Click to expand...
Click to collapse
In USA, they just introduced this
http://www.facebook.com/SamsungMobileUSA?sk=app_158125230916392
but obviously I doubt we can use this for SGS2 that is not out in the US yet.
You can however say that you are traveling, in the States right now
Thanks for the suggestions, folks - will try them. The @SamsungUK twitter account never seems to reply to any Tweets, but will see if they have a comparable FB page. Have found Seven's website so will get in touch with them too.
I know there are already numerous topics on this, and some temp Fixes, but I am about to just get rid of this phone, android, its so frustrating....and yes, i do need exchange email for my job,....this is whats going:
I'm seriously beyond annoyed at this point, exchange email is destroying my battery life on my nexus 4 running stock 4.2.2 (30% to 40% of battery consumption) ... I have done all the little "fixes" and troubleshooting that you can possible do to try to fix this and have spent hours searching online for any fixes, and all I have found is people having the same issue as me.....this is what I have done already:
I've removed the exchange email,
re-booted
re-added
cleared cache
clear data
re-booted
disabled
enable
set days to sync to 1 days, 3 days, automatic, etc....
check frequency to push, never, 1 hour etc....
I've disabled auto-sync data
enabled
i went to my outlook 365 web settings and under phones i deleted the nexus 4 profile..
in the exchange email settings on my phone i have used "m.outlook.com" for my server name
and the generic server name pulled from the outlook 365 web address recommended by the IT guy at my job
i have used and removed the Port "443"
the only thing i haven't done is throw the phone against the wall
oh and I have done factory reset TWICE! and that fixes the issue temporarily until this starts occurring again, oh and did i mention it gets super hot over 101°....the weird thing is I have the same exchange email setup on my nexus 7 and it barely hits 3% of battery usage, so why is my nexus 4 suffering from exchange email battery drain, and my nexus 7 doesn't? Unfortunately i work in a job where i need PUSH email on due to the industry i work in (merchants/e-commerce) my job offered to get me a company iPhone and I don't want to carry 2 phones, especially an iPhone.....anyone know any magical secret to fixing this? Or is this a 4.2+ bug that has no solution at this point....
Are you using a custom kernel? If not flash one. I recommend trinity, but test and choose which works best for you. Lower the CPU some to reduce the heating with any various app. I'm using trickster mod.
I have stock email set but I have it to manual updating. I get roughly 7-8 hours screen hours screen on time with WiFi around 5 with mobile data. Hope this helps some.
benman715 said:
Are you using a custom kernel? If not flash one. I recommend trinity, but test and choose which works best for you. Lower the CPU some to reduce the heating with any various app. I'm using trickster mod.
I have stock email set but I have it to manual updating. I get roughly 7-8 hours screen hours screen on time with WiFi around 5 with mobile data. Hope this helps some.
Click to expand...
Click to collapse
No i am running stock android 4.2.....Thanks for the advice, but I do not want to flash, root, etc... my stock nexus 4. I shouldn't have to in order to fix something that comes stock in android 4.2. I would prefer to just run the stock android and let Google deal with updates, I know android phones are awesome at customization, but I am one who likes stock android as is (nexus devices) I dont like tweaking with custom roms, no matter how stable they are, cause I always read threads on people always having issues with apps not being compatible, radio issues, manual updates on roms, etc...but I completely understand the benefits of custom roms and kernels, as you pointed out above. thanks again but this is not going to solve my issue.
I reckon I understand your feeling although the whole reason I got this device is for customization. With newer phones boot loaders being locked down and a drag to work with, this thing is great.
If you keep it stock thats fine but to save batter youd probably have to cut down a lot. Turn screen brightness all the way off, disable auto sync, disable apps you dont use so they dont run in the background. Turn off GPS and location settings unless they're in use. Stay on WiFi / 2G when not using data. Kinda a drag yano?
benman715 said:
I reckon I understand your feeling although the whole reason I got this device is for customization. With newer phones boot loaders being locked down and a drag to work with, this thing is great.
If you keep it stock thats fine but to save batter youd probably have to cut down a lot. Turn screen brightness all the way off, disable auto sync, disable apps you dont use so they dont run in the background. Turn off GPS and location settings unless they're in use. Stay on WiFi / 2G when not using data. Kinda a drag yano?
Click to expand...
Click to collapse
exactly, I mean i get the pros and cons for both stock and flashing, rooting etc....but I am no dev, and i know some of the stuff is easy to do, but I get OCD about having to worry if the kernel or ROM is up to date, will all my favorite apps work, what if I brick my phone etc....i just like the nexus devices where it is bone stock.....
as for all the other settings for saving the battery, I already do all the battery saving tips, but its funny cause they dont seem to affect the battery as much as the email exchange...i should have posted a pic...
Weird indeed. I'm using three e-mail accounts on my phone with hourly updates and it doesn't kill the battery. I still get 4 hours of screen on time (need to charge once in 24 hours usually). Did you set it so that it doesn't download attachments, pictures etc?
drbrainsol said:
Weird indeed. I'm using three e-mail accounts on my phone with hourly updates and it doesn't kill the battery. I still get 4 hours of screen on time (need to charge once in 24 hours usually). Did you set it so that it doesn't download attachments, pictures etc?
Click to expand...
Click to collapse
I am using the exchange email (yellow and white icon) that comes stock in android 4.2, and I have it set to Push notification which is suppose to help with battery, and i have turned off that setting that says "auto download attachments on WIFI only" but that setting is for WIFI only which doesnt make sense cause even with it off, when I am on regular 4G data, its still killing battery.....
I give up...maybe with all the current complaints on this issue, google may send out a new update.....
gmonterrosa82 said:
I am using the exchange email (yellow and white icon) that comes stock in android 4.2, and I have it set to Push notification which is suppose to help with battery, and i have turned off that setting that says "auto download attachments on WIFI only" but that setting is for WIFI only which doesnt make sense cause even with it off, when I am on regular 4G data, its still killing battery.....
I give up...maybe with all the current complaints on this issue, google may send out a new update.....
Click to expand...
Click to collapse
i wish i could help, but i'm using my Nexus 4 the exact same as yours (100% stock) and i've not had any of those problems (my Exchange Service is sitting at 3%), so it may not be as widespread as you think.
good luck with this though.
Question to the OP. Are you adding your exchange through the email app or in settings > accounts > corporate?
Sent from my Nexus 7 using xda premium
Lucke said:
i wish i could help, but i'm using my Nexus 4 the exact same as yours (100% stock) and i've not had any of those problems (my Exchange Service is sitting at 3%), so it may not be as widespread as you think.
good luck with this though.
Click to expand...
Click to collapse
its weird i know, but if you spend as many hours, days, searching the internet like I have, you will find how many many people are having this issue on android 4.1 and above.....My head hurts from reading so many threads with my exact issue, and people giving some temp fixes, and some fixes that didnt even work....its frustrating,
but i will say i just re-added my exchange email and chose 1 month of emails to download rather then "automatic" and so far its creeping up to 2% but getting hot.....its at 92 degrees
El Daddy said:
Question to the OP. Are you adding your exchange through the email app or in settings > accounts > corporate?
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
ah, good question, so I have tested both methods, adding it through the "corporate" option, and adding it through "email" option, both gave me identical issues....do you know which method I should be using? I mean i already tried both, and both were draining my battery but if I can just focus on just one method then it wont drive me crazy.....The only difference I notice is, when you do it through "corporate" it goes straight into the exchange settings, when you go through the "email" method it will ask you after entering the email address and password, "POP3, IMAP, and exchange...i chose exchange, and then it goes into the default exchange settings area just like the email option....
gmonterrosa82 said:
ah, good question, so I have tested both methods, adding it through the "corporate" option, and adding it through "email" option, both gave me identical issues....do you know which method I should be using? I mean i already tried both, and both were draining my battery but if I can just focus on just one method then it wont drive me crazy.....The only difference I notice is, when you do it through "corporate" it goes straight into the exchange settings, when you go through the "email" method it will ask you after entering the email address and password, "POP3, IMAP, and exchange...i chose exchange, and then it goes into the default exchange settings area just like the email option....
Click to expand...
Click to collapse
I was just curious because I use the "corporate" method with my work account, but don't have any issues. I will see heavy battery drain if our server goes down, otherwise I don't have issues.
Another thing you could try is an app from the market. I know its probably not an ideal solution, but maybe something like touchdown will alleviate the issue.
Sent from my Nexus 7 using xda premium
El Daddy said:
I was just curious because I use the "corporate" method with my work account, but don't have any issues. I will see heavy battery drain if our server goes down, otherwise I don't have issues.
Another thing you could try is an app from the market. I know its probably not an ideal solution, but maybe something like touchdown will alleviate the issue.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
yeah i am currently using the corporate method, and it still sucks battery.....but you know what I have notice, which may be a clue, the internet at my job is really really slow, our outlook emails take forever sometimes to send, receive, etc....so I am going to assume this is probably affecting my email on my phone as well....so I just set my exchange email to "never" check instead of "push" and i have told my job that their slow internet is killing my phones battery lol
Been using this phone and the stock email client for exchange since launch and have used multiple roms & kernels. Never had any battery drain issues and things were only getting better...until Monday of this week. That's when all hell broke loose. Full battery drained in record time. Overheating, barely responsive and overall just not being a good phone. Tried going back to stock and some other rom / kernel combos. Even tried a sim from a different carrier, the problem persists.
A couple days prior to phoneageddon I was prompted to setup the email app as a device administrator (See ScreenShot) a hand full of times. I usually only see this whenever I setup the account, after a wipe and whatnot. Since phoneageddon I have noticed that whenever the exchange services starts to act up, I know that sometime soon I will be prompted again. Whether or not this is related or not is unknown.
I just so happen to be an Exchange Admin at my company and know that no policy changes have been made in past couple weeks and that Windows patches were installed on the 1st.
We have ~2000 mobile devices of different flavors connecting to our mail system and so far no one else has reported a problem. Until this is resolved I have gone back to using TouchDown, no problems what so ever.
I will try to reproduce the problem fresh tomorrow or this weekend sometime and grab the logs from the server to post on here. I went through them once before and nothing stood out.
hideous said:
Been using this phone and the stock email client for exchange since launch and have used multiple roms & kernels. Never had any battery drain issues and things were only getting better...until Monday of this week. That's when all hell broke loose. Full battery drained in record time. Overheating, barely responsive and overall just not being a good phone. Tried going back to stock and some other rom / kernel combos. Even tried a sim from a different carrier, the problem persists.
A couple days prior to phoneageddon I was prompted to setup the email app as a device administrator (See ScreenShot) a hand full of times. I usually only see this whenever I setup the account, after a wipe and whatnot. Since phoneageddon I have noticed that whenever the exchange services starts to act up, I know that sometime soon I will be prompted again. Whether or not this is related or not is unknown.
I just so happen to be an Exchange Admin at my company and know that no policy changes have been made in past couple weeks and that Windows patches were installed on the 1st.
We have ~2000 mobile devices of different flavors connecting to our mail system and so far no one else has reported a problem. Until this is resolved I have gone back to using TouchDown, no problems what so ever.
I will try to reproduce the problem fresh tomorrow or this weekend sometime and grab the logs from the server to post on here. I went through them once before and nothing stood out.
Click to expand...
Click to collapse
wow sounds similar to me, its just unacceptable, and the IT guy here just informed me that he hasnt changed anything on his end, so it cant be the servers fault for the massive draining of battery on my phone, he told me all the other users with iphones, are set up the same, PUSH, and automatic email downloads, and none of them are reporting any massive battery draining.
Currently my phone is set to PUSH and 1 week of emails to download, and its already at 19% battery usage for exchange services and 18% email.....this blows...
I wonder why this is happening
Ran the stock email client with logging enabled over the weekend and was unable to reproduce the issue. So the fix is... Enable logging!
BTW, if your Exchange admin allows it, you should be able to access the Exchange Control Panel and start logging for your device yourself. Check with your Admins first!
**While you shouldn't be able to anything to destructive in the ECP, you take full responsibility for what may happen.**
How to access the Exchange Control Panel - See ScreenShot:
Log into your company's webmail (OWA)
Click Options (Top Right of screen)
Click 'See All Options'
-OR -
Directly by replacing /OWA with /ECP at the end of the URL. From this: https://email.YOURCOMPANY.com/OWA to this https://email.YOURCOMPANY.com/ECP
Once there, click Phone, find your current device in the list and click start logging.
-----
DO NOT FORGET TO STOP THE LOG!
-----
To stop logging follow the same instructions, but this time the 'Start Logging' button will say 'Retrieve Logs'. It will then email you the log file.
I was getting a 3-5mb log for 24 hours with everything working normally.
It's probably not a good idea to blindly post the log on the internet as it could have personal / company information within. Either sanitize it or if you would trust a random nerd on XDA, PM me and I can help.
hideous said:
Ran the stock email client with logging enabled over the weekend and was unable to reproduce the issue. So the fix is... Enable logging!
BTW, if your Exchange admin allows it, you should be able to access the Exchange Control Panel and start logging for your device yourself. Check with your Admins first!
**While you shouldn't be able to anything to destructive in the ECP, you take full responsibility for what may happen.**
How to access the Exchange Control Panel - See ScreenShot:
Log into your company's webmail (OWA)
Click Options (Top Right of screen)
Click 'See All Options'
-OR -
Directly by replacing /OWA with /ECP at the end of the URL. From this: https://email.YOURCOMPANY.com/OWA to this https://email.YOURCOMPANY.com/ECP
Once there, click Phone, find your current device in the list and click start logging.
-----
DO NOT FORGET TO STOP THE LOG!
-----
To stop logging follow the same instructions, but this time the 'Start Logging' button will say 'Retrieve Logs'. It will then email you the log file.
I was getting a 3-5mb log for 24 hours with everything working normally.
It's probably not a good idea to blindly post the log on the internet as it could have personal / company information within. Either sanitize it or if you would trust a random nerd on XDA, PM me and I can help.
Click to expand...
Click to collapse
Hey sorry I am a little confused about the part that says "DO NOT FORGET TO STOP THE LOG!"
So am I suppose to stop the logging at a certain point? And what is the logging suppose to do?
I went into the control panel in the web outlook, and now I am logging.....And sadly the exchange service and email are slowly creeping up to 10% battery usage, and its getting higher and higher as we speak....
I set it to default settings as i did before (Check frequency to Automatic Push) and days to sync always default to "one Month"
and its at 12% now.....this is so frustrating...and the IT guy was not helpful, he said its nothing on his end, which i can understand because this was never an issue on my phone before. now its just massive battery usage....I give up I am going to just create a bookmark shortcut and access the web outlook 365 and have to manually check every once and a while
gmonterrosa82 said:
Hey sorry I am a little confused about the part that says "DO NOT FORGET TO STOP THE LOG!"
So am I suppose to stop the logging at a certain point? And what is the logging suppose to do?
I went into the control panel in the web outlook, and now I am logging.....And sadly the exchange service and email are slowly creeping up to 10% battery usage, and its getting higher and higher as we speak....
I set it to default settings as i did before (Check frequency to Automatic Push) and days to sync always default to "one Month"
and its at 12% now.....this is so frustrating...and the IT guy was not helpful, he said its nothing on his end, which i can understand because this was never an issue on my phone before. now its just massive battery usage....I give up I am going to just create a bookmark shortcut and access the web outlook 365 and have to manually check every once and a while
Click to expand...
Click to collapse
AFAIK the logging will continue until you tell it to stop. Which means the file size will continue to grow.
You should stop logging after you have been having issues for a while and take a look.
hideous said:
AFAIK the logging will continue until you tell it to stop. Which means the file size will continue to grow.
You should stop logging after you have been having issues for a while and take a look.
Click to expand...
Click to collapse
Well I stopped it, I never got any report, or any attachments of any report...
I probably didnt do it correctly, however I am still getting high battery usage, Right now it shows Exchange service at 23% and the email usage at 21%.... phones temperature is at 92 degrees, very hot!
I just removed the account, and disabled the email service, cleared data, force stop, and it still shows that its draining the battery lol
wow I give up, My job will have to provide me with an iphone.....so i will have 2 phones YAY!
As you all know, Lollipop broke a lot of third party apps. Several of which I used daily and a couple I can't find a (good?) replacement for.
The first and most missed right now:
Wake lock detector. That app was great for me. Not only did it help me kick battery sucking crap to the curb but by dumping those apps my phone had a noticeable increase in performance.
I can't find one that works with 5 the way it did. Anybody know of one that isn't overbearing?
Reboot Menu. Quick boot, recovery, etc.
But thanks to @tx_dbs_tx and his marvelous work with the Hybrid X Series roms that problem is solved.
There are others but I'm drawing a blank at the moment.
Anybody else?
May be slightly off topic and I apologize in advance for long post but Google recently changed their security for email which impacted the standard email apk. It started like this with me: I recently signed into Google plus and was prompted to update my security and privacy settings. I quickly noticed an option to deny access to lesser security applications. I naturally opted to do so. All was fine until I tried to send the next email. Darn you Google, you deny my sent email and send me a warning email that some "unknown device" tried to access my account. Logging back into Google plus, I recognized the email sending IP address as my own but it shows the device as unknown? Google sends me another email after I tell them this was me and after granting access to lesser security apps, I hoped Google would allow exception to just that email app but no. I tried momentary granting, sending an email and reverting back to denying access to lesser security app but exception still not apply to a single app. The warnings and urges to switch to gmail for "modern" security continued. Google says they cannot protect my security with "modern" security methods. It's true but the approach is unfriendly being without exception, an update to email apk and saying I should change my Google password because some unknown person knows it is not completely true; email apk is a trusted app, but there are other email apps besides gmail with the acceptable security token that gmail gmail inbox uses.
I found an app but didn't see the security info I was looking for so I sent an email and got this reply in quotes,
"Thank you for contacting us. Type Mail is very secured, it does not have your Gmail password, but uses OAuth 2.0 instead. We don’t spam users, the opposite we offer a spam filter."
Link to app: https://play.google.com/store/apps/details?id=com.trtf.blue
I'm not endorsing this email app but just started using this yesterday. My security is set back to denying access to lesser security apps and I'm sending emails again without nags. It's a refreshing approach with a modern UI and optional dark theme; the buttons can be orange or blue.
Gmail in the past has been a turn off with their terms about images granting them ad/spam privileges. Gmail app also used more battery than email with instant Samsung push services did. So far, Type Mail push service is actually quicker than Samsung push. Battery use, I'm unsure of ATM.
Any thoughts, comments or suggestions. I've long trusted standard email, text and voice mail apps. I'm sure there are other alternatives but who is trustworthy? Will the Android email apk get a security update? I'm hearing no but is Samsung going to offer a replacement? They have not responded to me yet.
Forget KitKat and Lollipop, Android M 6.0 on paper looks to be a game changer for this phone! Make this my wish list; we can try hard to make the most of what we have until then.
http://www.forbes.com/sites/gordonkelly/2015/05/29/google-android-m-has-9-great-secret-features/
Let's hope Google, Samsung and Sprint don't find ways to mess this up or fail to meet expectations. Most of these are great ideas to improve Android, IMO.