Goole Apps Active Sync Broken in ATT GS3 UCLEM - Galaxy S III General (US Carriers)

There is a bug in the UCLEM firmware for the ATT Galaxy S3 that causes sync to fail (no error - just never syncs) for users of Google Apps using activesync. It seems the Touchwiz email app assumes the username cannot contain the custom domain in config that Google apps requires when the server is configured as m.google.com.
This bug existed in the first release of the International S3 Touchwiz email client but was corrected in a later release.
If this bug is impacting you, please call Samsung USA Mobile Support at 1-888-987-4357, give them your IMEI so they can escalate the issue to management.
If enough users do this it will help prioritize an OTA update from Samsung/ATT!

Related

[HACK] Samsung Email App - Exchange Wakelock Bug Fix

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.

ICS Problem with Exchange 2007 accounts

hello friends,
maybe someone of you is able to help, or at least enlighten me about the cause of this:
since i use ICS on my note (about for 2 weeks, starting with stunner) i have REALLY BIG problems with one of my exchange accounts, the one which is running on a hosted exchange 2007 (second account with my corporate exchange 2010 is fine)! so until today i hoped that the "official ICS" for the note won't show this behavior, but now with a total clean install of the today released LPY and therefore OFFICIAL SAMSUNG ICS rom, the problem persists!
description:
95 out of 100 trys to connect to my exchange account fails with a message telling me that there is a security error (if needed i can provide some screenshots) telling me that either my username and/or password is incorrect! this makes it almost impossible even to simply add the account. and, on the rare occasions (which SOMETIMES can be triggered through a connection change between wifi and 3g) when the phone is able to connect (and sync), it stops after a few minutes again with the same error.
i re-added the account numerous times, tried everything which came through my mind (change password, enabled and disabled sec features) and trust me, i know what i'm doing here. i configure exchange accounts since almost 10 years from now!
clues:
there are a few tickets existing on http://code.google.com/p/android regarding this issue, but with different "flavours":
http://code.google.com/p/android/issues/detail?id=16992
http://code.google.com/p/android/issues/detail?id=19366
http://code.google.com/p/android/issues/detail?id=25315
to sum it up:
google developers are recognizing the problem (it seems to exist since android 3+ to some extent) but are unable to provide a solution until now. it seems to be a problem with an EAS policy refresh, which fails and therefore closes (or does not even open) the connection! a guy suggested to disable these policy refresh in the EX2007 config, but this would only be possible if you are the admin of this server (and i doubt that it would make sense, security-wise, too)!
another theory says this mess is due to implementation errors in the connection layer, which directly affects wifi and 3g connection behavior...
i guess that this problem would now get's more imminent, as this security error wasn't occurring at gingerbread. and now more and more people with smartphones will migrate to ICS!
what do you think?
does anybody else experience this? or am i one of the few unlucky bastards?
regards,
markus
so, is exchange 2007 working for everyone?
this would be important to know for me, because in this case i would have
to blame my exchange provider for wrong EAS settings!
can a few people with an exchange 2007 account confirm that their sync work flawlessly? anyone please?
Just realized my exchange account is not syncing unless I open the client.
My work is running exchange 2003
Never had this issue with imilka ROM weird
Sent from my GT-N7000 using xda premium
mardos said:
Just realized my exchange account is not syncing unless I open the client.
My work is running exchange 2003
Never had this issue with imilka ROM weird
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
This seems to be the case on all TW based roms, no matter if GB or ICS at least for me. It syncs fine with Hotmail service but not with my company's 2003 server so there has to be some incompatibility there. When disabling all syncs and re-enabling them it started syncing. Just had to wait for about 30 minutes to get all info synced.
E: On AOSP based (CM9, AOKP) everything works as it should right from the beginning without the extra hassle.
I'm working properly in Galaxy Note, from KKA to LPY, with Exchange 2007 SP3.
Syncing is correct in my case.
Samsungs version of ICS (or Gingerbread) doesn't communicate with Lotus Notes traveler active sync. Cyanogen 9 (ICS) is working out of the box. In Gingerbread the Traveler App is working but in Samsungs version of ICS the widgets dont work.
after fiddling around this WE i think there would be no other solution as reverting back to GB (which would suck, and therefore is no real option), or to change to a hoster with exchange 2010!
every client i tried shows the same behavior, if i'm able to establish a connection it won't last long till the security error reappears! this renders my account almost useless...
i will update this post if something changes!

Unable to install Third party apps as Exchange mail security disabled it. Need help

Hi
I posted this problem earlier on General Discussion forum. from there, iwas directed to here. The thread is http://forum.xda-developers.com/showthread.php?p=46249269
The problem is below.
I recently purchased a Galaxy S4. I configured my official exchange active sync mail in the default mail app. It disabled the option to install the application not obtained from play store. However the same configuration on my friends "Note II" is working fine and he is able to install apps which are not from play store. I asked my company's IT persons too. they were unable to help.
Following is the configuration:
Device: Samsung Galaxy S4 (India)
Exchanges Server : Outlook Exchnage server 2010.
Thanks
Bimal

I9505 Unlocked email app issue

Hello,
I am having problems with the stock Email application and the outlook.com MS exchange active sync connection.
All is working well: contacts sync, tasks, calendar, push email but the sending of emails is the issue.
When I try to send an email a small popup message appears: Retrieving account information... and nothing happens.
I have tried some 3rdparty apps to check if there is something wrong in my outlook.com account and nothing is wrong.
I would like to use the stock email app but sending email seems to be having issues.
I have tried clearing the data of the Email app, deleting/adding the MS Exchange account again but the issue persists.
Phone is on Android 4.3, non-rooted.
Having the same exact problem and have not found any answer and yet I can add the account to my s2 and my wife's note 2 and it works fine but not on my s4. Workaround for now is to use the outlook.com app.
Sent from my GT-I9505 using Tapatalk
---------- Post added at 09:53 PM ---------- Previous post was at 09:30 PM ----------
Also preformed a hard reset but it did not fix the problem.
Sent from my GT-I9505 using Tapatalk
RE:
I have solved this issue very easily
1. Clear Data of stock Samsung Email App and disable notifications for it
2. Clear data for Exchange Service and disable notifications for it.
For 1. and 2. go to Application Manager->ALL
3. Remove account microsoft exchange.... from Accounts
4. Install stock Android 4.4 email apk (attached)
5. Install Exchange Service apk for the stock Android 4.4 email app (attached)
6. Open stock Android Email app (not Samsung one) and create new account as Exchange
Details for outlook.com exchange server:
username: [email protected]
server: dub-m.hotmail.com
port: 443 (default)
Security type: SSL/TLS
Configure then push settings, signature etc.
Do you need root to be able to do that.
Sent from my GT-I9505 using Tapatalk
Thanks, @mmuntean2! This worked great on my T889 (T-Mobile Note 2). And here I was thinking I was the only one with this issue.
Sent from my SGH-T889 using Tapatalk
Yes worked on my gs4....
Sent from my GT-I9505 using Tapatalk
RE:
There is no need to root for this to work.
The only bad thing is that when you create a new contact you will not get the option to add it to exchange server connection created by this method.
Also this stock email app does not have (or I could not find it) the option to select all mail, empty trash.
Really sucks that you cannot add contacts to exchange ./.. Its really not a fix, just another workaround for the stock Samsung email exchange does not work and I would suggest sending an email to Samsung Customer support outlining the problem as it seem that there may be a few of us experiencing the " Retrieving account information" error upon sending an email. Outlook App on play store allows adding contacts but it is a rather poor lay out.
RE:
I've talked with Samsung. After doing some Clear Data thing as suggested by the chat operator I've told them that it's still not working and repeated almost 4 times that on 3rd party applications everything is ok, but the ***** from the chat answered to contact the email provider and hanged the conversation.
Great CS from Samsung....
I had the same response from Samsung. Need more people to let samsung know about the problem
Sent from my GT-I9505 using Tapatalk
I just updated to Android 4.3 and now have this problem
I think there is something wrong with how the stock email app handles certificates. As I was trying to reset my email I get a certificate error. I've done a factory reset and it still doesn't fix the problem.
I wonder if someone could post samsung 4.2.2 versions of these apk´s so we could test
Solved with KitKat
Problem seems to be solved since Android 4.2.2 !
http://forum.xda-developers.com/showthread.php?t=2465713
tom-zorg said:
Problem seems to be solved since Android 4.2.2 !
http://forum.xda-developers.com/showthread.php?t=2465713
Click to expand...
Click to collapse
Thats a great news.. I think now I would be able to configure my outlook.com account for EAS..
I will install and try...
Stock Email Client Is Now Working
Updated to XXUEML9 via Odin and my stock email is now working fine
Hello. I have also encountered this issue with my Outlook.com email account following the 4.3 update. I can confirm that Sandesh's solution with replying to an invitation has solved the problem for me.
http://forum.xda-developers.com/showpost.php?p=50068870&postcount=10
Thanks!

MobileIron issues

Not sure if this is due to Marshmallow or newer Samsung email client but email flow stops after a few hours and the only way to kick start it is to remove email account and let it drop again from the MDM. Is anybody using MobileIron and can chime in on their experience? I had no issues with Edge Plus, btw
Same issue. I found that if you go to settings within the email client and then select your account -> Exchange Server settings and then just click Done. That gets it going again for me. Big problem.
morbidz said:
Not sure if this is due to Marshmallow or newer Samsung email client but email flow stops after a few hours and the only way to kick start it is to remove email account and let it drop again from the MDM. Is anybody using MobileIron and can chime in on their experience? I had no issues with Edge Plus, btw
Click to expand...
Click to collapse
BrianWJudy said:
Same issue. I found that if you go to settings within the email client and then select your account -> Exchange Server settings and then just click Done. That gets it going again for me. Big problem.
Click to expand...
Click to collapse
Do you know your MIron server version?
Release Version:
Core 7.5.3.0 Build 14
Sentry Standalone 6.1.0 Build 69
BrianWJudy said:
Release Version:
Core 7.5.3.0 Build 14
Sentry Standalone 6.1.0 Build 69
Click to expand...
Click to collapse
I updated the Core from 8.0 to 8.5 and the issue is gone.
We have had our Core and Sentry updated to the latest version for a little while now and so far every Galaxy S6/7 running marshmallow update are having a similar issue. Opened up a case with MobileIron and they are claiming it is an issue on Samsung's end and to open a ticket with them. Workaround is to go to settings within the email client and then select the account -> Exchange Server Settings and then just click Done and it will work for a random amount of time.
My wife has a mobileiron setup from her job. But she has a different issue. I was looking if there's anything that can be done on the client side. The sync seems to work ok but when some messages are deleted from the inbox on the PC - on the mobile they show up in both deleted items and inbox.
And no matter how I update the email they don't get removed from the inbox.
It happens to some messages, not all.
I don't work for her company so I have no idea how the server is set up but it looks very weird.
MobileIron is a joke in my opinion. I experience sync issues, can't use finger print unlock on my Note 4, and the Email+ app is laughable. Now that a bootloader unlock is available for the Note 4 I am hoping to find a way to use MobileIron with root access but that may be difficult considering it has root kit detection built in.
SOLUTION
Hi all, I had the same problem with my Galaxy S7 Edge Duo that my exchange email randomly stop syncing. I contacted Samsung support but they did not have a solution.
At the end, I downloaded a new official firmware on sammobile and flashed it with odin then my problem has gone away. My email sync every time now.
I hope this helps other who is experiencing the same problem.
Cheers!

Categories

Resources