Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

FIX - Exchange 2010 Activesync


  • Please log in to reply
15 replies to this topic

#1 tristan325

tristan325
  • Members
  • 9 posts
  • LocationWashington, D.C.
  • Country:us
  • Device Model:Nexus One
  • MOD Version:6.1.0-N1
  • Recovery Image:Amon_RA

Posted 05 January 2011 - 09:29 PM

So recently our company moved from Exchange 2003 to Exchange 2010 and me and a few coworkers that use CM6.x.x all lost our activesync email.  Other android users in the company were able to connect to the new server fine, but we kept getting a message that said "Unable to open connection to server"

What we finally realized is that it isn't a google issue.  Basically, CM makes some changes to the email app for some random features.  In doing so, some code got changed which breaks it when going against exchange 2010 (i think it also affects 2007).  I had to run the emulator just to pull the stock email.apk file, once you have that (i've attached it), you just push it to your phone and that's it.  Download the attachment and do the following steps:

Note: If ADB is not part of your environment variable, add it, my system variable PATH looks like this:
otherstuff;otherstuff;C:\Program Files\Android\android-sdk-windows\platform-tools


1)  Save the attachment to whatever directory your running in command prompt
2)  turn on usb debugging
3)  adb devices (confirm it sees your phone)
4)  adb -d remount
5)  adb –d pull /system/app/Email.apk Email.apk.bak (if this doesn’t work, take out the –d, I had to.  Also Email.apk is case sensitive for the filename)
6)  adb –d push Email.apk /system/app/ (this replaces your phone’s email.apk with the one I’ve attached)
7)  adb –d remount
8)  adb –d reboot
9)  Your email icon has disappeared from your desktop, just replace it.

Edited by tristan325, 07 January 2011 - 01:18 AM.


#2 impiouspunk

impiouspunk
  • Members
  • 1 posts
  • Twitter:impiouspunk
  • Device Model:HTC Supersonic
  • MOD Version:6.1.1
  • Recovery Image:Amon_RA

Posted 06 January 2011 - 01:56 PM

View Posttristan325, on 05 January 2011 - 09:29 PM, said:

So recently our company moved from Exchange 2003 to Exchange 2010 and me and a few coworkers that use CM6.x.x all lost our activesync email.  Other android users in the company were able to connect to the new server fine, but we kept getting a message that said "Unable to open connection to server"

What we finally realized is that it isn't a google issue.  Basically, CM makes some changes to the email app for some random features.  In doing so, some code got changed which breaks it when going against exchange 2010 (i think it also affects 2007).  I had to run the emulator just to pull the stock email.apk file, once you have that (i've attached it), you just push it to your phone and that's it.  Download the attachment and do the following steps:

Note: If ADB is not part of your environment variable, add it, my system variable PATH looks like this:
otherstuff;otherstuff;C:\Program Files\Adnroid\android-sdk-windows\platform-tools


1)  Save the attachment to whatever directory your running in command prompt
2)  turn on usb debugging
3)  adb devices (confirm it sees your phone)
4)  adb -d remount
5)  adb –d pull /system/app/Email.apk Email.apk.bak (if this doesn’t work, take out the –d, I had to.  Also Email.apk is case sensitive for the filename)
6)  adb –d push Email.apk /system/app/ (this replaces your phone’s email.apk with the one I’ve attached)
7)  adb –d remount
8)  adb –d reboot
9)  Your email icon has disappeared from your desktop, just replace it.
I did not see the attachment....

#3 TooYellow

TooYellow
  • Members
  • 102 posts
  • Country:us
  • Device Model:Droid
  • MOD Version:CM 6.0.0 Final
  • Recovery Image:ClockworkMod

Posted 06 January 2011 - 08:54 PM

View Postimpiouspunk, on 06 January 2011 - 01:56 PM, said:

I did not see the attachment....

Same, I dont see it either.

We are using Exchange 2010 as well.  I would love to get this working on my N1.  Otherwise my company is going to give me a bberry  :( !

#4 tristan325

tristan325
  • Members
  • 9 posts
  • LocationWashington, D.C.
  • Country:us
  • Device Model:Nexus One
  • MOD Version:6.1.0-N1
  • Recovery Image:Amon_RA

Posted 07 January 2011 - 01:16 AM

i could have sworn i attached it. anyway, here it is.  2 nexus ones and 1 mytouch3g used this solution and it worked for all of us.

edit: ohh you have to click add to post after attaching it.

Attached File  Email.apk   919.81K   278 downloads

Edited by tristan325, 07 January 2011 - 01:17 AM.


#5 TooYellow

TooYellow
  • Members
  • 102 posts
  • Country:us
  • Device Model:Droid
  • MOD Version:CM 6.0.0 Final
  • Recovery Image:ClockworkMod

Posted 07 January 2011 - 10:29 PM

View Posttristan325, on 07 January 2011 - 01:16 AM, said:

i could have sworn i attached it. anyway, here it is.  2 nexus ones and 1 mytouch3g used this solution and it worked for all of us.

edit: ohh you have to click add to post after attaching it.

Attachment Email.apk


Sweet thanks.  I downloaded the latest SDK and adb isnt included.  I saw some instructions on how to get it but havent had the chance.  I'll let you know if it fixes it.

#6 TooYellow

TooYellow
  • Members
  • 102 posts
  • Country:us
  • Device Model:Droid
  • MOD Version:CM 6.0.0 Final
  • Recovery Image:ClockworkMod

Posted 08 January 2011 - 03:37 PM

Yay it work!  

Although I thought what the hell I'll just install the APK as a regular app rather than run through the ADB method.  It warned me that the current version would be replace, I said OK.  It did it's thing and voila, exchange works now.

#7 Romjo

Romjo
  • Members
  • 4 posts
  • Country:us
  • Device Model:N1
  • MOD Version:Cyanogen 6.1 Stable
  • Recovery Image:ClockworkMod

Posted 09 January 2011 - 04:16 PM

sweet ! +1 for this post !

#8 TooYellow

TooYellow
  • Members
  • 102 posts
  • Country:us
  • Device Model:Droid
  • MOD Version:CM 6.0.0 Final
  • Recovery Image:ClockworkMod

Posted 10 January 2011 - 08:32 PM

View PostTooYellow, on 08 January 2011 - 03:37 PM, said:

Yay it work!  

Although I thought what the hell I'll just install the APK as a regular app rather than run through the ADB method.  It warned me that the current version would be replace, I said OK.  It did it's thing and voila, exchange works now.

I am having the issue these guys are having though.  It syncs up but then stops working after a couple days....

http://forum.cyanoge...nge-activesync/

#9 richtj99

richtj99
  • Members
  • 1 posts
  • Device Model:HTC Evo
  • MOD Version:6.1.2
  • Recovery Image:Cyanogen

Posted 12 January 2011 - 07:42 PM

View PostTooYellow, on 10 January 2011 - 08:32 PM, said:

I am having the issue these guys are having though.  It syncs up but then stops working after a couple days....

http://forum.cyanoge...nge-activesync/


Thanks for the fix!  I couldnt figure out why the email used to work & now it doesnt.  Has anyone told Team Douche about the issue?  Is it something they can fix or something that Google will fix (then TD will push it out to CM)?

Thanks,
Rich

#10 tristan325

tristan325
  • Members
  • 9 posts
  • LocationWashington, D.C.
  • Country:us
  • Device Model:Nexus One
  • MOD Version:6.1.0-N1
  • Recovery Image:Amon_RA

Posted 13 January 2011 - 03:11 PM

View Postrichtj99, on 12 January 2011 - 07:42 PM, said:

Thanks for the fix!  I couldnt figure out why the email used to work & now it doesnt.  Has anyone told Team Douche about the issue?  Is it something they can fix or something that Google will fix (then TD will push it out to CM)?

Thanks,
Rich

Definitely not a google issue, if anything we're using Google's stock email apk to FIX the CM issue.  Someone should bring it to TD's attention.  I recently went from 6.1.0 to 6.1.1 and had to refer to these instructions to fix email again.

#11 TooYellow

TooYellow
  • Members
  • 102 posts
  • Country:us
  • Device Model:Droid
  • MOD Version:CM 6.0.0 Final
  • Recovery Image:ClockworkMod

Posted 13 January 2011 - 03:52 PM

View PostTooYellow, on 10 January 2011 - 08:32 PM, said:

I am having the issue these guys are having though.  It syncs up but then stops working after a couple days....

http://forum.cyanoge...nge-activesync/

Scratch this, it must have been an exchange server hiccup, my mail is working great.

Woot to have work email with me all the time!  <_<

#12 kingaru

kingaru
  • Members
  • 16 posts
  • Country:nl
  • Device Model:|1|
  • MOD Version:CM 7.2RC1
  • Recovery Image:ClockworkMod

Posted 14 January 2011 - 10:24 AM

View Posttristan325, on 05 January 2011 - 09:29 PM, said:

So recently our company moved from Exchange 2003 to Exchange 2010 and me and a few coworkers that use CM6.x.x all lost our activesync email.  Other android users in the company were able to connect to the new server fine, but we kept getting a message that said "Unable to open connection to server"



It looks like this version of Email does not do folders sync aromatically like the one that comes with CM :( :( :(

#13 camro

camro
  • Members
  • 6 posts
  • Device Model:HTC HD
  • MOD Version:div
  • Recovery Image:Cyanogen

Posted 21 February 2011 - 10:20 PM

View Postkingaru, on 14 January 2011 - 10:24 AM, said:

It looks like this version of Email does not do folders sync aromatically like the one that comes with CM :( :( :(
try enhanced email version from xda ...
http://forum.xda-dev...ad.php?t=775007
on market - you'll find it ...
devel is very flexible ...

#14 Rover Foggarty

Rover Foggarty
  • Members
  • 1 posts
  • Device Model:htc desire z
  • MOD Version:7
  • Recovery Image:ClockworkMod

Posted 01 August 2011 - 06:19 PM

Hmm attachment removed??

how about putting back original mail prog that came with my desire?

#15 cwiekol

cwiekol
  • Members
  • 1 posts
  • Device Model:Milestone2
  • MOD Version:Nightly
  • Recovery Image:ClockworkMod

Posted 24 October 2011 - 04:49 PM

View Posttristan325, on 07 January 2011 - 01:16 AM, said:

i could have sworn i attached it. anyway, here it is.  2 nexus ones and 1 mytouch3g used this solution and it worked for all of us.

edit: ohh you have to click add to post after attaching it.

Attachment Email.apk

The link to the email.apk is dead.. could someone put a new one?
thanks

#16 extrever

extrever
  • Members
  • 1 posts
  • Country:ua
  • Device Model:Samsung Galaxy Spica 5700
  • MOD Version:CyanogenMod-6.1.1-Spica-alpha8.3
  • Recovery Image:Cyanogen

Posted 26 March 2012 - 10:10 AM

View Postcamro, on 21 February 2011 - 10:20 PM, said:

try enhanced email version from xda ...
http://forum.xda-dev...ad.php?t=775007
on market - you'll find it ...
devel is very flexible ...
2 camro: thanks bro! it helps me on my Spica-i5700!