yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] ajislav:
Works nicely with Chameleom ROM 3.0.3 on Samsung Galaxy S2, big thanks to the OP..
[Android Apps and Games] z0rk:
I used this for a very long time, always worked flawless. But now on the latest SlimKat (4.4) it doesn't work anymore :( I'm always required to enter PIN or Password in email security. It flashes fine, but something isn't correctly installed :(
[Android Apps and Games] ptr_hamilton:
Also using SlimKat and have no issues with it. Just re-flash it and it should work
[Android Apps and Games] z0rk:
I manually deleted the email and exchange apk in system, reflashed this zip, and now it works :s Very strange, I tried reflashing the package multiple times...

So it's back OK :highfive:
[Android Apps and Games] epchris:
I followed the instructions (on my Nexus 5) for the manual app-level install, and things seemed to work ok, but automatic syncing doesn't work. If I turn off email syncing I can manually update my email and that works, but turning on syncing causes it to continually sync and it never gets new emails. If syncing is turned on and I open the Email app, I can see the spinner pop up in the bottom and it continually pops up then goes away then pops back up again (kind of flashing in place), but it never gets new emails.

Any ideas what could be going on?

Ninja Edit: Spoke too soon, in case anyone else is having this problem, I just deleted my account on my phone and re-added it and it's working now.
[Android Apps and Games] jonathancandrus:
Exchange crashing error

Anyone have issues with it crashing the exchange services after installing?

I have an HTC one ATT with CM 10.2.

I've never had this issue before happened after I updated to the latest stable release of CM.

I've tried reverting back to a nightly but I get the same results.

---------- Post added at 03:28 PM ---------- Previous post was at 02:41 PM ----------

Yeah I'm getting this as well. I didn't see anything in the thread to fix it.
[Android Apps and Games] prabhjots:
[MENTION=2322613]craigacgomez[/MENTION], can you add build instructions from the source code, I wanted to try making more changes to the apk.. Would be really helpful. Thanks in advance.
[Android Apps and Games] 640k:
Getting exchange Service has stopped error on rooted nexus 7 with 5.0.1.
[Android Apps and Games] shaklee3:
I'm having problems with encryption too. It's not syncing because the server thinks it's not encrypted.
[Android Apps and Games] mpegripper:
i think i'm getting the same issue, it just never gets my new email now
[Android Apps and Games] DevVorteX:
Same thing happened to me, I had to install the v4.0 for android 4.3.x instead. It appears to be a know kitkat issue with the email app. Android reported the problem is "fixed in a future release". Maybe it just needs to be updated here??
[Android Apps and Games] mpegripper:
did you just install it in recovery right on top of the old one?
[Android Apps and Games] glassy:
I'm running the Omni rom on i9300, and I was hitting the below issue, couldn't create my exchange profile.

code.google.com/p/android/issues/detail?id=61785

I tried the v5 to see if it sorted the issue, but it was no different, so I then tried the v4 and it sorted it, works well (apart from I can't download attachments).

The bug is showing as fixed in future release. Is there any way for the op to get hold of the fix and include it?
[Android Apps and Games] fury683:
Anyone have advice for this on 4.4 Kit Kat for unrooted Moto X? I get bad signature as several others have pointed out. I disabled the two apps in settings, and tried to install. Got error. Rebooted, tried to install again, same result.

Thanks
[Android Apps and Games] billypostman:
Hello, I also have an error.

Unfortunately Exchange Services has stopped. Blame Tyler.

I'm using PACMAN ROM version 4.3.Build-1

Model GT-I9300

Android version 4.3.1
[Android Apps and Games] CrackaBoi:
After upgrading my Xperia Z to CM 10.2 I am also getting the same error:

"Unfortunately, Exchange Services has stopped"
[Android Apps and Games] mkraftdet:
notifications

install was perfect..BUT now, I do NOT get sound or visual notifications! help!!!
[Android Apps and Games] Croak:
Just an FYI, the Android 4.1.1 JRO03C version works just fine on a Nexus 7 with 4.1.1 JRO03D.

Just had to manually delete the old EmailGoogle and Exchange2Google apks and odex files before running the update zip. Then after setting up the account, you'll need to reboot once more to be able to sync (don't know why, but you get FC's if you don't reboot).
[Android Apps and Games] nvwieren:
Dev Host download issue

Hi,

Can someone upload the files (AOSP 4.1.1) to another download source as I get database errors when downloading on Dev Host..?

Thanks,

Nick
[Android Apps and Games] gym63:
Jmn? Jmn. I am hv. K, j.
[Android Apps and Games] Optimus812:
Yes, can the DL links be fixed it mirrored??
[Android Apps and Games] Optimus812:
I was able to finally DL the file from my PC. It worked!! Thank you sooo much! I'm running Vicious 4.1.1 with the stock ***84D mod.
[Android Apps and Games] abheshekk:
will this hack work on CyanogenMod 10??
[Android Apps and Games] serotizm:
Perfect. Also works on tbalden's CM 10 for HTC one X.

Thank you very very much for your effort.
[Android Apps and Games] Croaton:
I just tried it myself on tbalden's CMX and it works very good. Nicely done!
[Android Apps and Games] britoso:
Good to see this is available. I used something like this on my N1 until I was lucky enough to get "Enhanced Email" on the amazon appstore for free :)
[Android Apps and Games] artjef:
Perfect

Perfect app. the link worked fine
[Android Apps and Games] craigacgomez:
Technically, it should work on any vanilla stock or AOSP based Android 4.1 ROMs
[Android Apps and Games] creeve4:
I'm not sure if this bug is related to this mod or to android in general:

All of my Exchange calendar events are shown as "Busy" on my phone. This is for all events regardless of the availability (free, busy, tentative, etc...) I select when creating the event in Microsoft Outlook.

Are there any work-arounds to get the availability to sync correctly?

GNex running CM10 JellyBro.
[Android Apps and Games] cburgess:
Hey there any fix for the Exchange services FC, it happens for me regularly throughout the day and whilst it works again after the second FC it isn't obvious it's crashed until I open mail leading to a delay...

C
[Android Apps and Games] RedSkyRoad:
NEVER AGAIN will I flash this!!!!!!

I had a perfectly stable CM10 and after flashing this, I had random reboots and my WiFi became unusable (not even connecting)...
[Android Apps and Games] Croaton:
I have used this patch with the latest CM10 prewievs (tbaldens CM10 for HOX) and it has worked like a charm.

I'm guessing that your problems are related to something else.
[Android Apps and Games] Rocs Macho:
Not sure what I'm not doing right. I was able to use this when running Vicious awhile back, but since then, on several different roms, I've had no luck. I am currently running Paradigm BAMF, verified in system /app that I should be using AOSP 4.1.1 version. Once I flash via recovery I attempt to sign in. If I go thru settings, add Acct, it always tells me my username or password are incorrect. If I go thru email app, add Acct, select Manual, fill in correct exchange settings, it always fails to connect to server.

If I try thru email app, fill in email address & password, then hit next, again it will tell me username or password are incorrect, not letting me progress thru the set up. I sign in with this username & password everyday on comp so I know the info is right. I also use same server settings as I did in Vicious. I verified these settings with several other people who have normal exchange settings on Androids & iphones. Any insight?
[Android Apps and Games] rob_z11:
I am on Evo4g running CM10 ROM from JMZ, and this morning, my corporate changed server address, and I could not sync my email or exchange calendar anymore. It just waits for sync message, and I did not get the device administrator message typically I get when I was on ICS.

I flashed this AOSP zip, and it still sitting with waiting for the exchange sync. I wonder if I need to delete my stock email app, and flash it again?
[Android Apps and Games] Rocs Macho:
Have you tried completely removing the "old" exchange acct then adding new acct or just change settings under current acct?
[Android Apps and Games] rob_z11:
I have done that several times without any success. What I ended up doing is to restore previous CM10 nightly, and was able to change the server, and it sync with some trials and error. Important thing is that you have to have device administrators has an entry for the exchange email.

Before I went with the restore path, I also deleted two email apk from system/apps and flash JRO03C without any success.
[Android Apps and Games] 640k:
Finally got past the exchange services have stopped error by installing through recovery and then installing again through apk. But now I'm getting an error that my device doesn't support encryption, which means its likely not checking for it.

If I just encrypt my device and try again, is it going to work?
[Android Apps and Games] gunigugu:
Does anyone have any suggestions on how to revert this back so I'm able to install OTA's?
[Android Apps and Games] Haul:
Download the factory image and extract system.img from the .tgz file. From the boot loader, run fastboot flash system system.img. This will also overwrite any other changes that you've made to your system partition, but apps and userdata will be preserved. After flashing the system partition, you can install the OTA .zip from sdcard or adb sideload in the recovery of your choice.
[Android Apps and Games] EmperorX:
Supposedly the various exchange kit kat bugs were fixed with this new OTA. I def need the files here though as I do not want to encrypt my device (screw that noise). Not asking for an Eta from the op... But I'm assuming this will be an "easy" update on your end? I hope so. Push notifications are missed :)
[Android Apps and Games] :
Stock 4.4.1 email/exchange APKS

Hi [MENTION=2322613]craigacgomez[/MENTION]

To help you guys, I have grabbed the email and exchange APKs from the Nexus 5 after the upgrade to 4.4.1

These are Stock, 4.4.1, Google Version number 50060

OP, feel free to use them as a base for the modifications.

They are just zipped, NOT flashable. Just the 2 apks and 2 odex files. If you need the framework files, give me a shout.
[Android Apps and Games] prabhjots:
I think [MENTION=2322613]craigacgomez[/MENTION] uses the aosp source code and not the apk smali code.

Great effort but sadly it won't help much..
[Android Apps and Games] JBass:
I have already sent him a pull request with the new code. (AKA 4.4.1_r1)

https://github.com/craigacgomez/platform_packages_apps_Email/pull/1

I'm having issues building it though, never was good at build from AOSP for some reason....
[Android Apps and Games] craigacgomez:
Thanks [MENTION=2621390]JBass[/MENTION] I will pull you request and work on this over the weekend. I know I haven't included the entire merge history, and that's my fault. But I was working locally before I committed my changes and I'm not very well versed with git.
[Android Apps and Games] JBass:
No big deal. I have created a repo that has all of Google's commits as well as your changes: https://github.com/JBassett/Android-Email. Feel free to fork it continue using it.
[Android Apps and Games] prabhjots:
Same here. [MENTION=2322613]craigacgomez[/MENTION], as in a few posts back, can you please let us know the steps you follow for building? Thanks in advance.
[Android Apps and Games] Captain_Throwback:
I was able to pull in the repo from the OP as a remote for CM11 and cherry pick the patches no problem.
[Android Apps and Games] prabhjots:
So, [MENTION=1162986]Captain_Throwback[/MENTION] are you able to build?
[Android Apps and Games] Captain_Throwback:
Yes, I am able to build along with my CM11.
[Android Apps and Games] kayedward01:
I have a similar issue, but more policies. My corporation requires no unsigned apps, packages, plus SD and phone encryption. I'm on GS3 with CM10.2. Version 4 works perfectly and bypasses the policies, but version 5 states my device doesn't support them and won't let the connection proceed.

Any idea if this is something to do with CM 10.2 being 4.3 and version 5 coming from AOSP 4.4? Or is it just additional policies that require different workarounds in the app?

Edit: Updated to Cm 11 with 4.4.1 and same problem with version 5.
[Android Apps and Games] 640k:
Thanks for the bump. I wonder if I should try v4 to see if there are any different results.
[Android Apps and Games] kayedward01:
V4 seems to work just fine for me. The only downside is that it's the older email app version. I'm hoping a future update of 5 will help, because there's a lot of nice features in the kitkat app. The biggest thing for me is calendar and contacts with a native integration, so I can live with an older email format for awhile.
[Android Apps and Games] creeve4:
v5.1 please? Based on 4.4.1 source
[Android Apps and Games] BlackFang171:
CyanogenMod update script

Here is a CyanogenMod update script so that you don't have to re-flash every time.

http://pastebin.com/tdRq99F9
[Android Apps and Games] Kirpman:
will there be an update for android 4.4.1 (KOT49E) ?

Thanks
[Android Apps and Games] :
Dont want to steal the OP's thunder, but the PIN was driving me nuts. Hence I modified them - based on the script from rustamabd here

I then odexed the email and exchange apks and created a flashable zip..

Notes:

4.4.1-based from Nexus 5 KOT49E

this is a temporary solution until the OP has time to update his

though odexed, it is NOT ART compatible

DOWNLOAD 4.4.1 hacked email - ODEXED
[Android Apps and Games] Captain_Throwback:
ART compatibility?

I was able to build with CM11 using the cherry picks from the OP's github, but when switching to ART Email kept crashing, I assume due to those same patches. Is there any chance to get an update that will also support ART? I'm actually not sure why it doesn't now.
[Android Apps and Games] starbucks2010:
I'm using a I9505 with FoxHound ROM v3.4 (Android 4.3 MK8) and inside /system/app I see only SecEmail_J.apk and SecExchange.apk. Looking inside the archives from OP I see that the script is looking for Email.apk, Email2.apk, EmailGoogle.apk, Exchange2.apk and Exchange2Google.apk.

So after flashing this .zip I'll end up with 2 email applications or what?

Thank you.
[Android Apps and Games] fury683:
I tried using the Manual System App Install method, and it didn’t work. I am on a rooted Moto X with a locked bootloader (not Dev Edition), and write protection is off.

I’m not 100% if the changes I made are what caused the issue or not. I made a copy of my Email.apk in /system/app/ which Root Browser named Email – Copy.apk. I then renamed the original one to backupEmail.apk. In hindsight, I’m not really sure why I copied it AND renamed it, but I did. I think I rebooted after renaming, but I’m not sure. I saw the “Android is updating” popup a few times during the process. Anyway, I then copied the modified Email.apk and changed the permissions to match the existing one (rw-r--r--) and rebooted again. As soon as it booted up and I got an FC on the app. I rebooted a few times and it still FC’d every time.

I deleted the modified one and renamed by backupEmail.apk back to Email.apk and rebooted, but it still FC’d every time. When I look at it in Settings > Apps > All it says it’s 0.00B for size.

I have it disabled right now so it doesn’t FC on me, but I’m not sure what I need to do to restore it. I’d like to get the modified one working, but if it doesn’t work, I have no need for Email.apk at all, since I won’t use it if the bypass doesn’t work.

Any ideas on what else I can try for the modded one, or at least getting the regular one back so it’s not FUBAR in the future for OTA purposes and such?

Thanks!

Edit: Not sure what I did... but I got it to work. I went to the Email.apk in my Root Browser and tapped on it, and it gave me the option to install. I did that, and it was successful (for the original Email.apk that I had backed up). I rebooted and the app worked (didn't FC). I didn't add my account because I didn't want the policy.

I then went in and removed that app, and copied the other two in. I rebooted, and it said "Android is updating" and booted. No FC. I opened the app, and it worked. I added my account, and got a prompt saying it might need to apply policies, and the account loaded. I did get a notification after a few minutes that just said "Security policies have changed" and tapping on it brought me to the Email settings, but that was it. I swiped away the notification and the emails were there, with no policies changed.

So it worked...?...!

Anyone know how this will impact me if I try to take an OTA down the road? Will I want to restore my other two Email.apk and Exchange2.apk files first, or will it not matter?
[Android Apps and Games] mpegripper:
does anyone know if the aosp 4.4.1 email client fixed the exchange sync problem that people were having with the OPs v5.0 mod (that used the aosp 4.4 email app)?
[Android Apps and Games] stomicron:
Not sure what issue people were having here but 4.4.1 is supposed to fix some Exchange issues

http://productforums.google.com/d/msg/nexus/PMOplIFLGAk/_QiigppU3AYJ
[Android Apps and Games] mpegripper:
perfect, exactly the issue I was having.
[Android Apps and Games] cc101:
It works, but I get FCs
[Android Apps and Games] jorgeszabo:
Hi all - Did someone get the 4.4.2 update? If so, can you please let me know the version of the email and exchange apps? I believe I may have a conflict of versions after installing the modded apks from the OP and reverting to the stock to flash the update.

Thanks,

J
[Android Apps and Games] Haul:
I see Email 6.1-937116 and Exchange Services 6.1-937116 on both the Nexus 5 and Nexus 7 LTE after updating to 4.4.2.
[Android Apps and Games] EmperorX:
I have the same issue... Driving me nuts! Any idea how to solve without flashing the zips here? Just curious. Thanks!
[Android Apps and Games] EmperorX:
Has anyone successfully got any sore of bypass working on 4.2.2 without fc's? I'm having no luck with any route I take.
[Android Apps and Games] :
Yes.

Flash my zips, and as always, delete your account before you do (or after and delete all data from email/exchange apps). Does not work on ART!

4.4.2 Email Hacked - DEODEXED

4.4.2 Email Hacked - ODEXED

Return to Stock - 4.4.2 ODEXED

EDIT thanks for the heads-up from [MENTION=1188493]Calkulin[/MENTION], I was able to create a Deodexed version that works with ART

4.4.2 Email Hacked - Odexed AND working on ART
[Android Apps and Games] fury683:
So I got mine working yesterday, and it downloaded my data, but hasn't synced since. I see some threads in this post saying that 4.4.1 has addressed some sync issues, but not sure if that is the issue here.

It looks like yours are the updated 4.4.2 files, but I don't know that I can flash them. I used SlapMyMoto and have a locked bootloader, so I don't have a custom recovery (I don't think...). Can I still use these?
[Android Apps and Games] :
without a bootloader unlock and custom recovery, no you cannot.
[Android Apps and Games] fury683:
Thanks for the quick reply. I guess I'll just have to wait for OP or someone else to provide one I can install in /sys/app manually..
[Android Apps and Games] :
you can manually push these of course if you are rooted. Just download the version you want (like the ART version I just uploaded), extract the 4 apks from the archive (winrar opens apks for example) from System/app. Without a proper backup via nandroid, I would never attempt "open heart surgery on anything though. But it is possible IF you know what you are doing.
[Android Apps and Games] [V]endetta:
OP also in flashable zip iirc
[Android Apps and Games] fury683:
Not sure I follow.. I took the zip file that OP provided, removed Email.apk and Exchange2.apk from /system/app and then placed his copy of Email.apk and Exchange2.apk in my /system/app folder, and rebooted. That was all I did, and it worked to add my account and sync once, but it hasn't pulled any new data since.

Is removing/copying the existing apps the "open heart surgery" you're referring to, or something different? I appreciate the help, just want to make sure we're talking about the same things.
[Android Apps and Games] :
I hope you dont mind, but I will stay out of this. I merely provided - given I was tired of waiting myself - working flashable versions UNTIL the OP has the time to do his updates. I didn't come into this to teach or troubleshoot and this is not my thread :). If you dont have a working backup, I advise you not to do it or only at your own risk. Period. (sorry, but I have seen to many people blame people left right and center because they "thought" they were in the know, but really were not. Then the Gurus need to pick up the pieces).
[Android Apps and Games] CNLiberal:
Is there a return to stock 4.4.1? I want to flash the 4.4.2 update, but I need the stock apks first. Thanks!
[Android Apps and Games] fury683:
No problem at all. I completely understand. I too have seen people blame others for offering their advice, and don't blame you. I'm surely not an expert, but I know my way around. I'll just wait for now, not the end of the world. Hopefully OP or someone else can provide the APK that I can install without flashing.

Thanks again.
[Android Apps and Games] EmperorX:
If anyone can teach me / us how to do this... That would be amazing. I am stuck on 4.4.1 unless I flash my stock system.img (Nexus 5) ... I know no other way to get around this... If anyone knows how to extract/package system apps as zips that install in the proper location with the proper permissions... Please pass that info along. I'd like to start doing things for myself rather that bothering others.
[Android Apps and Games] CNLiberal:
I would imagine we could remove Exchange account, fastboot flash system system.img from the stock 4.4, then in TWRP, force an upgrade to 4.4.1 zip, then apply the 4.4.2 zip then flash the Exchange Patch files. I was trying to avoid this, but it might be the only way.
[Android Apps and Games] EmperorX:
Thats what I've been doing... I need to find a better way!
[Android Apps and Games] CNLiberal:
I haven't done that yet. You're saying it's working to do all that?
[Android Apps and Games] EmperorX:
I haven't had the time, but that's what I did for the previous 4.4.1 update and it worked great. If someone had the stock 4.4.1 apks in a zip that would flash directly where they need to go in system/apps with the correct permissions we could avoid having to fastboot the system img entirely. I don't know how to create that but would love to learn so that I can update while mobile (I travel for a living and can't readily flash system img files via pc) .
[Android Apps and Games] CNLiberal:
I tried to flash the 4.4.2 ODEX Email Hack on page 62, got a FAILED message in TWRP. I'm guessing these aren't flashable?

EDIT:

I forgot to say that I fastboot flash system system.img from the 4.4 image download. Then I rebooted to TWRP, flashed the 4.4.1 zip, then the 4.4.2 zip, then SuperSU 1.80. Then I tried flashing the 4.4.2 ODEX Email Hack listed above, and that failed. I just went back and read it and it says that won't work as it's not flashable. I would really enjoy a flashable 4.4.2 zip. I'll wait patiently like everyone else.
[Android Apps and Games] EmperorX:
Thyrus specifically said they are for flashing...
[Android Apps and Games] spamminator:
Why not just delete the modded APKs and replace them with the stock ones? Worked for me when doing my Nexus 7 OTA.
[Android Apps and Games] EmperorX:
I can't find the originals.. Lol. In the 4.4.1 patch folder they are .p files
[Android Apps and Games] CNLiberal:
Neither the odex or deodexed zips will flash in twrp for me.