yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] billyx1:
cm13.0exchange_fix20160416.zip works on my LG G4 with Marshmellow. Thank you!
[Android Apps and Games] -LeoN-:
cm13.0exchange_fix20160416.zip working great on my Galaxy S5 (klte) with todays nightly of CM13.

Finally Exchange & Smart Lock :D

BIG TNX!!
[Android Apps and Games] kurtextrem:
I've the same problem as others: Seems like now that Gmail has Exchange integrated it skips the Exchange Services app. Which means it forces the security stuff.
[Android Apps and Games] 2detension:
Il il il si il kyk.Pike t

Envoyé de mon Xperia S en utilisant Tapatalk
[Android Apps and Games] rushco:
Yeah, what is up with that. I used Google with my school e-mail address since they use Google for the students. Now I got the forced security stuff if I want to view my e-mail. I'm trying to figure out a work around.
[Android Apps and Games] triccuz:
+1 , It would be good if someone knows how to bypass the Security check which popups after adding an Exchange account to the newest version of Gmail (which adds the support to Exchange accounts).
[Android Apps and Games] tuanjun:
For now, I am using Gmail for my Exchange account.

There are some cons:

1. Forced Security

2. Bad UI (conversation list for the long conversation is chaotic)

However, there is one very very big pro against Mailwise:

1. No limit on "Days for Sync" which means that I can find my old emails which was there for longer than 1 weeks (as in Mailwise case).

Please advise if you can somehow get Mailwise to keep your older email in your phone. If yes, I will jump to Mailwise in no time.
[Android Apps and Games] csk1jw:
It works like a champ!:good::good::good:

I use the file cm13.0exchange_fix20160416.zip with AOSP Marshmallow ROM 6.0.1 MOB30J for LGP880 from

http://xdaforums.com/optimus-4x-hd/orig-development/rom-aosp-marshmallow-6-0-1-t3376069

*** Flash the zip from recovery ***

Please keep it on topic. Other 3rd-party Exchange solution (Nine, TouchDown etc.) always have the option of not doing device encryption. You should not even be looking into this thread if you are suggesting 3rd-party solution.
[Android Apps and Games] adbiko:
Exchained

Just published a new app for this: Exchained ! Works with native mail clients, including gmail, with no need to root.

Search for "biko exchained" in the Play Store.
[Android Apps and Games] Rawi666:
Updated CM 13.0 exchange fix is ready to use folks :) https://www.mediafire.com/#v8a1bx55nfhbv
[Android Apps and Games] csk1jw:
Anyone tried on on Nougat ROM?
[Android Apps and Games] billyx1:
What about a version from Nougat AOSP?
[Android Apps and Games] Rawi666:
CM14.0 is not ready yet, but looking at code differences it should work fine if you flash exchange version from cm13.

Just make a backup/copy before doing so.
[Android Apps and Games] billyx1:
Why do you need a "ready" CM14.0? I thought you take the AOSP-Code of the Exchange und EMail-App, apply your patches and compile them?

I have been using the Exchange and EMail app on the correct, on older and on newer Android versions without any problems. I'm just asking to get a newer version of the Apps with bug fixes and new features from google.

---------- Post added at 05:31 PM ---------- Previous post was at 05:27 PM ----------

By the way: Is the Link correct? I'm not able to download something (even after registration)
[Android Apps and Games] Rawi666:
Yea, link seems to be wrong, please use this one https://www.mediafire.com/folder/v8a1bx55nfhbv/cm13

For compiling pure aosp I'd need to set up a new environment which in my case would take more than 1 day.

Futhermore nougat is not available for my Nexus 5 so I won't be able to compile it easily without any hacks - with CM it's easier and faster.

Email app that I provide is not actively developed by google or cyanogen so don't expect any new features when compiled from CM14.

The only changes that it receives are mostly language translations that CM team adds and that's it.

Just try flashing CM13 app version and let us know if it works.

Make a backup before flashing and if the app won't work restore from backup.
[Android Apps and Games] csk1jw:
I have a WIP AOSP Nougat ROM running on LG-P880. Will test it out.

By the way, is it possible to release the changes as patch for AOSP Email & Exchange. I understand that you have them in GitHub. I was wondering that if the change can be presented as patch, then perhaps the same patch would apply for both AOSP and CM-based source.
[Android Apps and Games] Rawi666:
If by 'patch' you mean a binary patch then no.

Google hasn't been maintaining AOSP Email/Exchange for quite a long time so there isn't really 'aosp mail' ;) It's CM's Email/Exchange as only CM updates this app (mostly with translation updates).

As this app doesn't have any hard dependencies to a particular OS version I think it should work on other roms as well, but everyone needs to try it on his own.

My patch just overrides 2 system files: /system/app/Email/Email.apk and /system/app/Exchange2/Exchange2.apk.

If you need to make a backup of your stock files then just use any root explorer to copy your files to somewhere else and prior to restoring the backup just replace them in zip archive and then flash your original apks.

It's that simple ;)
[Android Apps and Games] csk1jw:
No, I actually mean source patch, which I can apply to my AOSP source tree and build the APKs myself.
[Android Apps and Games] LazzyBro:
Thanks
[Android Apps and Games] Rawi666:
Sources of this patch are available on github

android_packages_apps_Email

android_packages_apps_Exchange

apply them on your source tree and you're ready to go
[Android Apps and Games] csk1jw:
Tried cm13.0exchange_fix20160906.zip on AOSP Nougat (NRD90S) for LG-P880.

It works like a charm:good::good::good:!
[Android Apps and Games] Nooby Paul:
Finally!

I've been looking for a possibility to get Exchange AcitveSync working on my AOSP ROM stock e-mail app for hours (darkobas rom on oneplus one). This app is working like a charm! Thank you so much!
[Android Apps and Games] dole_95:
I got this to work on Nexus 6P with Nougat after a lot of attempts. I think there might have been a problem on the server-side, becuase I did try with a lot of different programs (cm13.0exchange_fix20160906.zip, Gmail, Nine and Touchdown) and all of them got "Could not connect to server". So this (cm13.0exchange_fix20160906.zip: https://www.mediafire.com/folder/v8a1bx55nfhbv/cm13) works on Nougat, thanks!
[Android Apps and Games] Augustin79:
Hi

Did you just flash this file from recovery on your Nexus 6P. Also, what ROM were you using?

Thanks
[Android Apps and Games] mumboender:
It works for me flashing in recovery on CM14.1 on a OnePlus 2
[Android Apps and Games] dole_95:
Yes, I flashed it with TWRP! I'm using stock Android 7.0 NBD90X (rooted).
[Android Apps and Games] scotte9999:
FWIW, on a Pixel with the stock (not even rooted) ROM, doing the User Install (basically just install the two APK files) works for me. Thanks for whomever keeps maintaining this!
[Android Apps and Games] Rawi666:
Here is patched Email/Exchange for LineageOS/CM-14.1 :)

https://www.mediafire.com/folder/6ofa2u4rfwawg/lineage14.1
[Android Apps and Games] wolfballz:
Do you get notifications? I flashed this (the one posted just above my post) on a Nexus 6 running Pure Nexus 7.1.1 and I do get it to work and I get LED notification but no sound. Can't find anywhere to set a sound either and when I try to go to Folder Notifications it just crashes. Other than that it works fine.
[Android Apps and Games] Rawi666:
I kinda remember the crash you mention with 'per folder' notification settings. I think it crashes on non CM roms as the app requires some CM-specific image or icon.

Please post your logcat with the error and I can check if this is it or something else ;)

But other than this it should work fine
[Android Apps and Games] wolfballz:
I'll get a logcat a little later today. Other than the no sound it does work great and I do get an LED notification. Yes, the crash happens when trying to open the per folder notification and not just the main portion. Thanks for your reply.
[Android Apps and Games] scotte9999:
I get a notification in the status bad, but haven't tried sound or LED.

What about using LightFlow or similar if you want an LED+Sound?
[Android Apps and Games] wolfballz:
Not interested in using LightFlow. I just haven't seen an email app that didn't have an area to set the notification sound and it doesn't use my default tone either. But, since this is really meant for CM I understand there may be something missing. I can live with no notification sound since I still get an LED notification.
[Android Apps and Games] BrokenWall:
I installed the LineageOS/CM14.1 and finally I have proper Exchange support but I don't get any notifications at all even to the status bar
[Android Apps and Games] Rawi666:
It's not because of a specified app but due to Android 'doze mode' (google).

Try disabling battery optimization for Email and Exchange or use Root-Push Notification Fixer.
[Android Apps and Games] BrokenWall:
No i mean Even with the phone awake and opening the app then going back to the home page, I don't get an notification. If I go back to recent apps and open it, there the email is.

When trying to set notification settings I only have the option based on folder, when choosing Inbox the app crashes

Edit: so it is now giving me a notification in the status bar, but no vibration, no sound, and I am unable to edit those anywhere in the application.
[Android Apps and Games] lutherkingmartin:
Hello Rawi666, same problem for me with 14.1 exchange fix.

No notification problem with all my other app.

I try disabling optimization or use Root-Push Notification Fixer, but it don't work.

Mail Push work because new mails are already in the inbox when I open the mail app, but I never have notification.
[Android Apps and Games] Rawi666:
Unfortunately it's not something I can fix as this doesn't relate to my patch. I'm not the maintainer of this app (most probably noone is as it's not actively developed by CM/Lineage team)

Notifications in Android 6+ are difficult topic and they may not work as they should for many applications.

Disabling battery optimization and using Root-Push Notification Fixer is the best combo I know of in terms of improving notifications in android 6/7, but still it may not be as good as it was in android 5.

You can check if it works for you when using stock/unpatched Email/Exchange app (you can revoke remote admin at a later stage) but I bet it will work in the same way, as this patch has only disabled remote admin.

I have 2x Nexus 5 with the same Lineage version and on one phone Facebook notifications work flawlessly and on the other phone they are delayed by 8 hours sometimes.... and it's the same exact configuration..
[Android Apps and Games] azertguigui:
Hi, do you know a way to get this done on Android 7.1.1 (Nexus 5X) ?

I've been looking for this for months now...

Thanks for your help :)
[Android Apps and Games] homasholz:
Is it possible to patch the lastest version of the app?

http://www.apkmirror.com/apk/google...lease/email-7-0-1533254-android-apk-download/
[Android Apps and Games] Koeties:
I have tried all the versions posted herefor 13 and 14.1 on my Galaxy Note 10.1 with Lineage 14.1 rom. All of them crash as soon as i open the email app

Are the versions of the patched app only for phones? I can't figure out why it keeps crashing. :crying:
[Android Apps and Games] homasholz:
Uve set all permissions?

Is often a reason why it crahses.
[Android Apps and Games] chill4279:
Hi Rawi,

Just wanted to say that I have been using your patched Email/Exchange on CM13 now for many months without a single issue :good::good:

Thanks for all of your efforts so far...Your patch has been immensely beneficial! :highfive:
[Android Apps and Games] Koeties:
I'll have to check. I haven't set any permissions - doesn't the app prompt you? Where would I set the permissions?
[Android Apps and Games] homasholz:
No, you have to give permissions in app settings manually
[Android Apps and Games] Koeties:
OK will go check how to do that. Thank you!
[Android Apps and Games] thommy2312:
Short question, is it possible to patch samsung S7 touchwiz 7.0 nougat. If it works, can someone share patch apks.

Thanks!
[Android Apps and Games] Xetra:
Hi all

I wrote a little piece of script to fake device_id / User agent and remove security from exchange server

No need to root (see attached file)

Fake Id here (you can enable log.txt to get your device id)

$url=str_replace("DeviceId=LG_____________","DeviceId=SE_____________________",$url); // G6

Uncomment to remove pincode security:

//$response=str_replace(hex2bin("014a4d4e033100"),hex2bin("014a4d4e033000"),$response);

Install https://play.google.com/store/apps/details?id=com.esminis.server.php

Put this file in internal storage www/public

In the app settings choose router script

Router script file to www/public/Microsoft-Server-ActiveSync.php

Disable notification

Enable start at boot

In exchange choose 127.0.0.1 port 8080 without SSL

You can also put this file in an internet php server SSL

But you need this .htaccess file:

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule Microsoft-Server-ActiveSync$ $1.php [NC,L]

</IfModule>
[Android Apps and Games] zenaldo:
Hi thanks for your post!! It seems that your script might work for Galaxy S8 also...

The problem is I'm too n00b to follow your instructions.. :crying::crying:

There is a step by step anywhere I can follow to get your script working in my device?

Thanks a ton!!!!
[Android Apps and Games] Shtiff1:
Is this not working or supported anymore? Links in op are not working and full of ads. Or is there another way, I had to get rid of Xposed and now looking for another option coming from lockscreen disabler. Please advise.
[Android Apps and Games] chill4279:
Search for "Exchained" in the google play store...I have been using it for months now and works perfectly..
[Android Apps and Games] Shtiff1:
Is that the exact name of it?
[Android Apps and Games] chill4279:
yes, but unfortunately it will not come up at the top of the search results...you may have to dig around in the play store a bit....Honestly, I type in "Exchained exchange" in the search box in the play store....and then Exchained comes up about 10 apps down...
[Android Apps and Games] Shtiff1:
Found it, it works. Thank you.
[Android Apps and Games] Rawi666:
Hi,

Latest version of LineageOS patched Email app is here LINK

Sources from which it was compiled

android_packages_apps_Email

android_packages_apps_Exchange

Enjoy ;)
[Android Apps and Games] Termuellinator:
thanks man, works like a charm on ResurrectionRemix :good: :cool:
[Android Apps and Games] scotte9999:
This is great, thanks! Unfortunately, it looks like it fails (just like Exchained) with the recent GMAIL application update - the device security bits still get pushed through, even though the mask is changed.

Ideas?
[Android Apps and Games] adbiko:
Hi, regarding Exchained we are still checking if there are other possibilities (probably no) and current status is:

- gmail, starting from version 7.6.18 (of last june 30th) just ALWAYS asks for admin permissions, even when the exchange server reports there is no policy for an account;

- the request for admin permissions happens only when adding a new account, if you have already setup an account with an older version and then update gmail, everything keeps working fine;

- Exchained still works fine with other email clients such as the AOSP client, samsung client, etc.;

- we are releasing an app update next wednesday (v2.0) that will block an eventual exchange policy from gmail too, so gmail won't see the policy, however it will still ask for admin permissions; this update will also add support for more email clients, including Nine and WPS Mail;

The only other workaround for gmail seems to be 1) uninstall gmail using the play store, 2) manually install gmail 7.6.4 e.g. from APKMirror, 3) add your exchange account, 4) update gmail to latest version using the play store.
[Android Apps and Games] adbiko:
Exchained update released
[Android Apps and Games] petyasb:
It works, but it doesn't show me the pictures in letters! How can I fix it?

I use Resurrection Remix on Xiaomi Mi Note 2.

Does it show you the pictures? What version do you use?
[Android Apps and Games] Termuellinator:
if you mean embedded pictures in the mail, they don't show up like in outlook but as "attachments" at the bottom. But that's the same (i think :confused: ) as it was in the non-bypassed exchange-email?
[Android Apps and Games] Koeties:
Doesn't work for me on my Galaxy Note 10.1 (not 2014) with LineageOS 14.1 by lirokoa. Email app keeps crashing.
[Android Apps and Games] petyasb:
I'm not sure, haven' tried the non-bypassed exchange-email. But there is "Show pictures" button, i press it, but nothing happens :(

UPDATE:

Last version of Resurrection Remix for Xiaomi Mi Note 2 non-bypassed Email app doesn't support Microsoft Exchange Server, just POP3/IMAP, i can't use it at all.

I can see the pictures as attachments, but I can't open them.
[Android Apps and Games] Termuellinator:
Just tried it - it's strange, for some emails it works, for some i get the same behaviour as you. i don't see a significant difference in those mails or any cause for it :confused:

Well, i'm glad i normally don't care to much for embedded pictures in my work-emails :D
[Android Apps and Games] homasholz:
Updates?

Hello, works great. using your modded files for a long time now.

Are you still providing updates for that ??

Thanks :)
[Android Apps and Games] Rawi666:
I don't use it anymore but I recompile it from time to time for folks that still use it ;)

The latest version (from today) is here https://www.mediafire.com/folder/6ofa2u4rfwawg/lineage14.1
[Android Apps and Games] adbiko:
In case anyone is interested, Exchained now lets you customize the DeviceType and UserAgent too
[Android Apps and Games] homasholz:
[MENTION=2322613]craigacgomez[/MENTION]

I radomly have a look at your mediafire folder. Lo and behold, a new update was there. Thanks for that. :) :)

Works fine on 5T unofficial Lineage15.1
[Android Apps and Games] billyx1:
Please keep doing it! :good:
[Android Apps and Games] mbo2:
Thanks

Exists already a version for Oreo (lineage 15)?
[Android Apps and Games] Rawi666:
No. Feel free to compile and share it.

https://github.com/Rawi666/android_packages_apps_Email (this specific commit https://github.com/Rawi666/android_packages_apps_Email/commit/fe78d598bb74c76512e21bdbc6f58e43fffdf411 has to be merged to cm-15 repo)

https://github.com/Rawi666/android_packages_apps_Exchange (this specific commit https://github.com/Rawi666/android_packages_apps_Exchange/commit/7d7a8c067982e8b336208fd52c3f655a42b139f7 has to be merged to cm-15 repo)
[Android Apps and Games] homasholz:
is there even an email.apk version for oreo with exchange support? (without bypassing)
[Android Apps and Games] Smyl3:
Thanks for the updates to 14.1, but unfortunately its not oreo compatible :(

My stock email app got removed.

Im using not LOS but other custom rom, Omni Rom on Xiaomi redmi note 3 pro (alias kenzo)

Edit: I solved it! Yay! I had to remove the stock system email app before apply the zip.

I'm interested to compile own email app from rom source but it seems it needs a lot of effort and resource. I'm using Windows.
[Android Apps and Games] naufragato:
Have you solved?
[Android Apps and Games] desvariando:
Any free alternative for Oreo or LoS 15.1?
[Android Apps and Games] mikek753:
hi,

somehow it doesn't work for me.

I got "Email has stopped" error

I'm on S5 TW based rom

what can I do?

what other options, but give up and comply with outlook that will encrypt, pin, admin ...

thanks
[Android Apps and Games] billyx1:
Do you have as a starting point a command to compile only the two apps instead of the whole Lineage?
[Android Apps and Games] Rawi666:
It's not possible :)

You need to compile whole ROM and then grab two APKs from the output.
[Android Apps and Games] Zainano:
Download links are not working!
[Android Apps and Games] billyx1:
Updated version (from LinageOS version 9): https://gofile.io/d/sAzfgB
[Android Apps and Games] doctorman:
the link is dead, would really appreciate an update
[Android Apps and Games] doctorman:
Is this project still updating? any alternatives,

need to bypass outlook exchange admin requirements on android 10 stock ROM LG G8 rooted
[Android Apps and Games] doctorman:
any further update? what is the best way to go now in 2021?
[Android Apps and Games] billyx1:
Any suggestion for free file sharing site? Then I will upload.
[Android Apps and Games] steveroysston:
update works perfectly.
[Android Apps and Games] darkdelusions:
This worked great on my GS III running CM10 thank you
[Android Apps and Games] Dirtbiter:
Worked on my Galaxy Nexus with stock Android 4.1.2.

Did have to manually rename the EmailGoogle and Exchange2Google .apk and .odex files before installing the zip.

Still asks for all kinds of permissions, but does not actually use them.
[Android Apps and Games] sawyer815:
Works flawlessly with AOKP JB Build 5 with Trinity kernel. Thanks!
[Android Apps and Games] triphumphrey:
does this prevent all administrative functions of the exchange server, i.e. remote wipe, forced device encryption, etc?

Or does this strictly prevent the need for a PIN?
[Android Apps and Games] sawyer815:
Ran a test, it ignores remote wipe and pin. Can't speak on the other stuff but it probably ignores those as well. Make a nandroid and give it a shot.
[Android Apps and Games] akira02rex:
JellyBean, or, our device has issues with Exchange 2010. I'm a systems admin who set up an exchange 2010 server and I could not get my nexus working with it... but my friends shiny new iPhone 5 worked with no issues LOL.. go figure.. thanks Google.
[Android Apps and Games] Dirtbiter:
This prevents all administrative functions. I did not have to encrypt my device.
[Android Apps and Games] andrusk:
Works great on GSIII LiquidSmooth Rom.

Thanks!!
[Android Apps and Games] xCoolBreezex:
Works flawlessly and as advertised for me on an Epic Touch 4G (sph-d710) on AOKP JB Milestone 1.

No encryption, no pin, no remote wipe, full exchange email!

Thanks!
[Android Apps and Games] LMR1200:
Another example of a happy user; works great on SGS running SlimBean 2.9 :)
[Android Apps and Games] nybom:
Samsung Galaxy Tab 10.1

Installation aborts on Samsung Galaxy Tab 10.1 (GT-P7500 ) with CM10 (4.1.2).

Anybody got that kombination working? Might it be due to the memory setup with no external SD?
[Android Apps and Games] DeadStiff:
Works fine on the GT8.9, but I had to do a manual installation with Root Explorer, never could get the zip to work.
[Android Apps and Games] nybom:
Thanks, that did the trick.

BTW, the script deletes:

/system/app/EmailGoogle.apk

/system/app/Exchange2Google.apk

Is that necessary?
[Android Apps and Games] DeadStiff:
Yes those should be deleted just to prevent any weird things from happening.
[Android Apps and Games] G4rcU:
gentlemen....

I've installed the files manually, but unfortunately they do not work ( I am receiving erros that Email and Exchange has stopped).

when installing I have noticed that I don't have Email.apk and Exchange2.apk but respectively SecEmail.apk and SecExchange.apk.

Back when I was running 4.0.4 deleting those "Sec" files (with their odexes) and pasting hacked ones did the trick.

I'm running stock odexed JRO03C rom. Any ideas on how to make it work?

//edit

found solution :)

for those (like me) experiencing issues please go here http://xdaforums.com/showthread.php?t=1117452

solution in the above link is not a tweaked apk but rather a patch that will decompile, change and recompile files needed
[Android Apps and Games] turbosix:
so glad i found this thread..
[Android Apps and Games] brk3:
Anyone tested on 4.2 yet?
[Android Apps and Games] maintrain:
Working fine so far with mmuzzy