yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] buffal0b1ll:
I hear what you're saying, and can appreciate the "one-app-to-rule-them-all" mentality. The new Gmail does support Exchange, I set it up and it of course enforced the PIN

Making a NEW Gmail with security bypass is a great idea, but it could be too tall an order.

Correct me if I'm wrong, but once Email left AOSP and went to PlayStore that made the new PlayStore Email closed source, thus unable to use this hack on the most current version of Email. That's why I switched to the xposed module Exchange Security Bypass for Nexus devices & other AOSP based ROMs because it worked with the new closed source Email from the Playstore that I wanted to use. This module, by the way, didn't work to bypass security with the new Gmail running Exchange.

Following that unhackable closed-source logic, new Gmail (which currently is a leaked apk that for all I know could be open to hacking) will be on the PlayStore soon and also closed source.

Asking the xposed devs at repo.xposed.info to make an exchange security bypass for new Gmail and ExchangeServices3 may be a more attainable goal. But to make this even more complicated, xposed will soon be forced to jump from Dalvik to ART so there will already be some chaos in that arena.
[Android Apps and Games] _imac_:
It's all complicated.

At this moment I'm using nine exchange for corporate mail. In my opinion it is better than mailwise.

Also you can bypass security for device, and choose application level. Thus you can set pin only for the app.

If you work with exchange you should try this app.
[Android Apps and Games] buffal0b1ll:
Nine Exchange looks pretty cool. I'll give it a whirl too.
[Android Apps and Games] buffal0b1ll:
I'm liking nine exchange a lot, man. Thanks.

It's conversation views suit me. And it's server side search is very fast.

I'll likely pay for it and continue using my the trial period is up.
[Android Apps and Games] _imac_:
Yeah.

Its good enough. I think this is the best solution for exchange accounts in the market.
[Android Apps and Games] nedd1:
I can't get any exchange apps to work apart from the mail app flashed with this fix.

Is the problem here that my company only support the default mail app or should I be using the xposed module to bypass security on these other apps?

If I install the xposed module when I already have the zip from this thread installed will that cause conflict?

Sent from my HTC One
[Android Apps and Games] buffalosolja42:
does this work for vpn

Would really enjoy being able to open my tablet and get on vpn without my laggy pattern lock lol, thanks for your work.
[Android Apps and Games] mk262:
Does this still encrypt, wipe the phone if there are too many bad unlock attempts, etc?
[Android Apps and Games] m03sizlak:
Doesnt work on my nexus 7, JRO03D. Still have to agree to let admin wipe phone, encrypt device, control locks, disable camera, etc....
[Android Apps and Games] doc_v15:
Does it work with MIUI JB?

anyone tried it yet?
[Android Apps and Games] 305Freak:
Could some place a mirror to the AOSP Android 4.1.x version? Proxy blocks it at work. Dropbox will work fine. Thanks!
[Android Apps and Games] jchap2k:
Any hope we could get a version of the Samsung email patched like these? (From the leaked Jellybean version)

Samsung email apks
[Android Apps and Games] doc_v15:
Confirmed, it is working with MIUI JB, the AOSP does
[Android Apps and Games] aishokry:
This is awesome! Thank you! I've hated how I have to have a pin to get my work email!
[Android Apps and Games] xuggs:
Just a note for anyone who doesn't want to remove and add exchange accounts every time they flash a new version of their rom.

I am on CNA ROM and I flash every nightly ROM. I can't be removing and adding exchange account every time so I simply take the EmailGoogle.apk and Exchange2Google.apk and add them to my ROM's zip file under /system/app. I remove the existing ones from the ROM first. That's it. Now flash the ROM and you won't have to remove and add your exchange account with every ROM flash. I have been doing this since the past 6 ROM's I've flashed and mails sync and no PIN ;)
[Android Apps and Games] creeve4:
Which version for CNA?
[Android Apps and Games] xuggs:
Been using it with all CNA versions since the beginning including nightlies. Currently I am on v3.6
[Android Apps and Games] creeve4:
Which version of the MOD: CM10 or AOSP?
[Android Apps and Games] craigacgomez:
Any version will work!
[Android Apps and Games] darshakk:
Does anyone know if any of the version works with AOKP based ROMs?

I'm running AOKP cypherROM.

Which version of the MOD will work with AOKP based ROMs?
[Android Apps and Games] Raven2m:
I'm running Pons CM10 on a original incredible not sure what I'm missing but can get the built in email app to work. Tried to install the email.apk and ghostapps but the option to setup exchange email never shows up. I must be missing a step somewhere.
[Android Apps and Games] craigacgomez:
Any version will work with any AOSP or Vanilla stock ROMs...
[Android Apps and Games] Raven2m:
Never mide it turned out I had a bad apk file :o
[Android Apps and Games] x.para:
Flawless, thanks!
[Android Apps and Games] Plesk8:
not working with latest CM10 nightlies

This used to work for me but no longer does with the latest CM10 nightlies. I've tried the nightly from 9/28 and now from 10/3 and neither work. I'm on the Galaxy Nexus (toro). This could be due to the latest CM10 builds using JRO03R, which isn't listed in the OP as supported. Or, it could be something I'm doing wrong. Though, I followed the instructions very closely and it "used" to work for me. Anyhow, I'm putting this out there to see if anybody else has the issue. Thanks!

And, thanks to Craig Gomez for his development.
[Android Apps and Games] brydav:
@Plesk8 I am having the same issue on current CM10 nighties. Relieved to hear I am not the only one experiencing the challenge.
[Android Apps and Games] Aircraft800:
Which version did you get? Can you send me a copy?
[Android Apps and Games] panosx:
Downloaded the ExchangeNoPIN-v6.0.zip from the first post and flashed it.
[Android Apps and Games] Aircraft800:
OK. I did get it to work asls on my LG G2, but I found out what worked for me last time. I installed 'Xposed Installer' then had to find an older version of 'G2 TweaksBox 2.5' that had the 'Disable Exchange Security' baked in and checked it. Rebooted the phone, then added my Exchange account. For some reason the current version 'G2 TweaksBox 2.5.6' doesn't have that option, but setting it in the earlier version, and even letting TweaksBox update to the new version still allows me to use Exchange without pin.
[Android Apps and Games] stevemacer:
Hi, when I try to install the exchange services it says application not installed. I'm using lg g3 4.4.2 not rooted. It worked fine on my nexus 4. Is there something else I can try without root? Also, is there any way you could patch the new Gmail 5.0 and exchange apks?
[Android Apps and Games] mcfisch:
Patched: Lollipop AOSP Email/Exchange APKs 5.0

As stated here in the patch thread already I got the Lollipop versions on Gmail and AOSP Email patched.

A flashable ZIP file with the patched APKs of AOSP Email and Exchange2 I've attached here. It works at least with TWRP 2.7.0.1 on my Note 10.1 2014 (SM-P605) with CM11.

If the ZIP doesn't work for your particular device, extract the APK files from it and replace the ones in another ZIP that worked for you already - thats what I did: the files were patched through the policy hack (linked above) directly on my Xperia Z operating Lollipop. I then just pulled the APKs and placed them into the (renamed) ExchangeNoPIN-v6.0.zip from the OP here.

Many thanks to the OP, btw. :)

Known issue:

There seems an issue with Lollipops sync processes in general, at the AOSP Issue Tracker other users reported issues for the untouched apps as well. I also have the issue that push doesn't work, but interval syncing does, so I'd suggest avoiding upgrading to LP if ActiveSync is a deal breaker.
[Android Apps and Games] nadrojcote:
Thank you, I have installed this and now I have the corporate option back on my nexus 5 with android L, but when I set up my email it still comes up with the prompt remote security administration. Should I just click OK on this? I know with the xposed module I used to use the security message still came up and I just had to click OK.
[Android Apps and Games] Kun2210:
Not sure if I read you well, but should that work with new Gmail and its option to add exchange account? Not sure what am I doing wrong, but it does not work (I tried both flashing zip and manually putting apk in system/app). Could you please be more specific on how to make this work?
[Android Apps and Games] nedd1:
I just flashed the above and I have a notification telling me the app needs a "Security Update".

When I click it brings me and asks me to Activate Device Administrator. I clicked Activate and everything seems to be working. It hasnt asked me to set up a pin.

great work. Is there a version of the GMAIL app that supports Exchange for Kit Kat?
[Android Apps and Games] Kun2210:
[MENTION=663666]mcfisch[/MENTION] Not getting it - so this bypasses only the AOSP email security or works with new Gmail as well?

Wysłane z mojego GT-N7100 przy użyciu Tapatalka
[Android Apps and Games] nedd1:
something i just noticed. I have my email account sync set to Push but it is not working. I have to open the app to sync mail. This was working fine on the old version.
[Android Apps and Games] Kun2210:
OK, NOW I get it :D

To make the Gmail work I just replaced original Exchange2 with the new one that comes with Gmail 5, and then I patched it with cmd script from the thread [MENTION=2416936]mrfisch[/MENTION] mentioned.

Works like a charm, thanks bud!
[Android Apps and Games] mcfisch:
At least in Android L Gmail 5 and AOSP E-Mail 5 can coexist on a system, no matter if patched or not. It should work with KitKat also, but I didn't test this particular scenario. My Note 10.1 just has the new Email patched, but not the Gmail Exchange as my Xperia does.

However, KK-Users can find the patched Gmail 5 Exchange attached, Gmail itself doesn't need to be touched. Copy the APK into /system/app/ and set permissions to rw-r--r-- as usual. This should add the Exchange ActiveSync connector to Gmail 5 (remember, I didn't test this on KK).

In my cases the sync works flawlessly, no difference to the former versions from OP or the Xposed solution (had each setup running already in the past).

When the system asks for activation of the device administrator, just confirm - nothing will happen ;)
[Android Apps and Games] RedSkyRoad:
I'm on CM 4.4.4 and very confused about which files to flash and delete?

Do I follow the OP or do I scour the thread for all the attachments and hope I pic the correct ones?

Please advise...

PS: I want to use the GMAIL Exchange
[Android Apps and Games] mcfisch:
Install Gmail from Play Store (should be v5) and follow my post above. That's it.
[Android Apps and Games] ptr_hamilton:
Device administrator is still active. Original version removed that also. The pop-up appeared too, but then nothing else.

Your version only removes the need to set a pin.

Thanks anyways [emoji106]
[Android Apps and Games] Kun2210:
Well, I would think that this is the whole point of the bypass - why bother there's a device administrator active? Does it make your life any harder? The point of the bypass was to avoid having to use PIN/Pass for unlocking and this works flawlessly.
[Android Apps and Games] RedSkyRoad:
Exactly... It's for the pin, not the Device admin...
[Android Apps and Games] ptr_hamilton:
I was only comparing the original version to the current version, not judging anything.
[Android Apps and Games] Kun2210:
OK, no sweat ;)

Sooner or later someone will update the Xposed module and there will be no need of manual patching the APK. Meanwhile, hail to the [MENTION=2416936]mrfisch[/MENTION] and patch thread OP.
[Android Apps and Games] RedSkyRoad:
Works perfectly!!!! Thanks :)
[Android Apps and Games] lastms:
Works flawlessly in miui ROM on xiaomi notes.
[Android Apps and Games] the_newbie:
I'm on GalaxyNexus with CM11 (KK). I've installed the patched Exchange module, now i can add Exchange account in GMail v5 but Android still ask me for Admin. :(
[Android Apps and Games] Kun2210:
It WILL ask you for admin - just when you allow it, it won't ask you to set unlock security (if you made everything right). Just allow him to admin and you'll see.
[Android Apps and Games] the_newbie:
It ask me for "Remote administration" (White popup while configuring account).

When I press OK it goes in "Creating account..." then the black secuiry android page asking me to activate a device administrator. If I press "Activate", "GMail" appeare in "Settings -> Security -> Device Administrators" as the stock version of the Exchange module.
[Android Apps and Games] Kun2210:
And, as I said, this is normal. The point of this hack is to bypass the fact, that without it you would have to set unlock security to PIN, Password or Gesture. Using this hack, you can still have swipe-to-unlock, while using your exchange account. The fact that Gmail is in administrators does not change anything.
[Android Apps and Games] the_newbie:
Yes, you're right. I thought this mod was something like the one in the first post (no lock required and no admin) :o
[Android Apps and Games] divinewisdom:
i tried the zip on 5.0 it keeps saying app not installed. any ideas?
[Android Apps and Games] RedSkyRoad:
01] Remove all exchange accounts.

02] Remove stock exchange apk's

03] Copy exchange file in post 992 to specified location.

04] Setup exchange accounts
[Android Apps and Games] drmason:
Confirmed working on a Nexus5 rooted with Chainfires AutoCF. Thanks a bunch! [MENTION=663666]mcfisch[/MENTION]

Now I need only a way to disable the pin in my homewifi... (hate new versions for the lack of tweaks ;))
[Android Apps and Games] maximang:
It doesn't work for me (Galaxy S4 on Kitkat). Is there something to do with the other post, or just the 4 steps you described?
[Android Apps and Games] gotovishal:
Thanks ! Thanks ! Thanks ! Thanks ! Thanks ! Thanks ! Thanks ! Thanks ! Thanks ! Thanks ! Thanks ! Thanks ! Thanks !

Don't know the repurcussions of security requirements bypass, but definitely makes my life easier ! Thanks !
[Android Apps and Games] dacook:
Hi,

I created flashable zips based on your apk.

Use only with Android 5.0

Tested on Nexus5
[Android Apps and Games] wassimo78:
Hi, I bypass security using Xposed framwork with module exchange no pin on my S4 I9505, but gmail exchange doesn't work :'(

I have cm11 m12.. I try the dacook patch, but on kk maybe doesn't work.. Or only on my S4.. :'(

I hope that gmail exchange bypass arrive asap

Bye
[Android Apps and Games] StormBlizzard:
Hi friend, as you know Android L already released, could you please do the same job for new system?

Thank you. Any plan for this?
[Android Apps and Games] palanski:
Would this work to only disable to PIN element of the Exchange Security Settings? Will remote wipe, camera disabling, encryption settings, etc. still be enforced?

Thanks!
[Android Apps and Games] Captain_Throwback:
[MENTION=2322613]craigacgomez[/MENTION]

Any chance you'll be updating your github for Android 5.0? Looking forward to cherry-picking your patches :).
[Android Apps and Games] craigacgomez:
Yes, but I have yet to work out the changes needed for Android 5.0. I will update this as soon as I can!
[Android Apps and Games] mumboender:
So the first flashable zip is the security bypass and the second restores it back to stock? Should I unintstall gmail 5.0 and exchange services first? Going to give it a shot on a oneplus one running lollipop
[Android Apps and Games] Kenishi99:
I just tried it and sadly have to say that it didn't work...

I tried it thru gmail and with the e-mail app itself.

But I can confirm fhat the zip from op works. It doesn't have the lollipop design but at least it works.

BUT you have to unzip the file, copy the content to /system/app/Email and /system/app/Exchange2 by yourself.
[Android Apps and Games] kroonys3:
I'm really liking nine as well for corporate email. Bypassing the device level security is good.... Is there any solution for bypassing security completely?
[Android Apps and Games] general forceps:
Craig, the file server is down. Cheers
[Android Apps and Games] mitchst2:
Worked for me thanks

Sent from my One
[Android Apps and Games] MustGoFast:
Anyone get this working on the Droid Turbo? Thinking of getting one, but no root scares me.

Also the part of the exchange policy I'm trying to avoid isn't the PIN it's encryption. Will we have a bypass with Lolipop soon that works for this?
[Android Apps and Games] mbwsutherland:
I assumed this was for 5.0 gmail exchange security bypass correct? Now the patched apk is for KK and stock is for LP correct?. I tried swapping prebuilt exchange services out with the one provided. Still need security pin.
[Android Apps and Games] Kenishi99:
Wow, Nine is an awesome app!

It integrates itself perfectly into the system.

And you can sync tasks (Sharepoint tasks as well) and the notes.

And the only thing you have to set up is a pin. No encryption, no security setting for the lockscreen.

I can totally recommend it!
[Android Apps and Games] Sillik:
Works flawlessly on Nexus 4 with Android 5.0....
[Android Apps and Games] the_newbie:
Yes, they are still active.
[Android Apps and Games] mumboender:
Awesome. This worked on KK as well. On an S4 with TW email still installed. Seems like it can run concurrently.

---------- Post added at 10:15 AM ---------- Previous post was at 10:14 AM ----------

And it is awesome with Android Wear!
[Android Apps and Games] vomer:
The apk in this works but if I try to compose or reply then the email app crashes.
[Android Apps and Games] mcfisch:
It was working for me first, but I got different issues then:

on KK the new Exchange app starts crashing

on LP the sync Exchange in Gmail and the Email app stops working

So I'm now back on the KK package.
[Android Apps and Games] vomer:
yup looks like the no pin mod needs to be re-worked on. I got the Nine app in the mean time - it is actually really nice and works well
[Android Apps and Games] efattal:
I

I changed a little bit the zip file to make it work with latest versions of cm12 (just moved both files to folders) . Hoping this can help.

https://drive.google.com/folder/d/0B8g71puoe1DeWGJkN1JLdjdLbkk/edit

Sent from my 1+1
[Android Apps and Games] mcfisch:
Added the following to my initial post:

I recently reverted my tablet weith KK back to v6 from the OP to get push working again. On LP I'm still fiddling around, trying several combinations, but currently KK v6 with interval sync each 5 mins works best. :crying:
[Android Apps and Games] cxzoo:
Error running CORPORATE mail box setup

Hi Craig

Just flashed your latest zip file. I'm on a Galaxy s3, CM11 Android 4.4.4. Sortof thinking your current version is 4.4.2 therefore.....

I cannot open a new exchange mail account ( Corporate or IMAP ), it just crashes with the following report:

java.lang.RuntimeException: An error occured while executing doInBackground()

at android.os.AsyncTask$3.done(AsyncTask.java:300)

at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)

at java.util.concurrent.FutureTask.setException(FutureTask.java:222)

at java.util.concurrent.FutureTask.run(FutureTask.java:242)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)

at java.lang.Thread.run(Thread.java:841)

Caused by: android.database.sqlite.SQLiteException: Can't downgrade database from version 126 to 123

at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:361)

at com.android.email.provider.DBHelper$DatabaseHelper.onDowngrade(DBHelper.java:743)

at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:255)

at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:164)

at com.android.email.provider.EmailProvider.getDatabase(EmailProvider.java:440)

at com.android.email.provider.EmailProvider.query(EmailProvider.java:1174)

at android.content.ContentProvider.query(ContentProvider.java:857)

at android.content.ContentProvider$Transport.query(ContentProvider.java:200)

at android.content.ContentResolver.query(ContentResolver.java:461)

at android.content.ContentResolver.query(ContentResolver.java:404)

at com.android.email2.ui.MailActivityEmail.setServicesEnabledSync(MailActivityEmail.java:128)

at com.android.email2.ui.MailActivityEmail$1.run(MailActivityEmail.java:108)

at com.android.emailcommon.utility.EmailAsyncTask$1.doInBackground(EmailAsyncTask.java:247)

at com.android.emailcommon.utility.EmailAsyncTask$1.doInBackground(EmailAsyncTask.java:244)

at com.android.emailcommon.utility.EmailAsyncTask$InnerTask.doInBackground(EmailAsyncTask.java:118)

at android.os.AsyncTask$2.call(AsyncTask.java:288)

at java.util.concurrent.FutureTask.run(FutureTask.java:237)

Any advice on how to fix this?

Need to have Exchange working so that I can sync my work Outlook calendar with my phone.

thanks Colin
[Android Apps and Games] billyx1:
Could you please also remove the device admin?
[Android Apps and Games] billyx1:
Could someone Link THIS Version to the first page because it seams to be the only one working with Lollipop!
[Android Apps and Games] cxzoo:
Up and running

Thanks, I downloaded NINE and reinstalled the zip. While there was an error, I was able to carry on and enter a pin. then the app sync'ed.

All good

Thanks Colin
[Android Apps and Games] intrepid24:
Thanks!

Manual installation package v6.0 worked perfectly :)
[Android Apps and Games] marcotics:
I rarely post, but just wanted to say YOU ROCK !!!

Works flawlessly on Tmobile Lg G3 running 5.0 !!!
[Android Apps and Games] nedd1:
This was working for me on CM12 on my HTC one but is not working on GPE edition of Lollipop. Has something changed?
[Android Apps and Games] @atnfas_hoak:
Thank for updates
[Android Apps and Games] Dexogen:
Thanks! Exchange account works great, but when i add gmail account app crash. What could be the problem? :eek:

P.S. SGS5 Stock Android 5.0.
[Android Apps and Games] cynomad:
Works great on m7 running stock lollipop 5.01 (converted GPe), but not in m8 (same stock version, converted GPe). It installs w/o error but the email app icon does not appear anywhere
[Android Apps and Games] efattal:
Working fine on CM12 (temasek) for Bacon (OnePlus One)... Sorry, can't tell you more.

Sent from my 1+1
[Android Apps and Games] dccrens:
This worked like a champ on my Verizon NI 4.4.4 S5 rooted. Thanks!
[Android Apps and Games] howarmat:
you have to rename the files correctly inside. they wont work the way you have them named
[Android Apps and Games] dccrens:
Matt,

Not sure what you mean. I didn't have to rename anything.
[Android Apps and Games] nf999:
Working perfectly on sgs4 cm12!!
[Android Apps and Games] howarmat:
my bad, quoted wrong post somehow
[Android Apps and Games] mishko:
A true life saver! Works great on OPO + CM12 (Daleski75's builds)!
[Android Apps and Games] Pranksta02:
Hi there, which version would work best on nexus 5 with lollipop and simple asop
[Android Apps and Games] sansnil:
Worked just as you said on my venerable gnex running JB 4.3 with Gmail 5. Awesome, thanks x10!
[Android Apps and Games] dccrens:
Major Battery Drain

So this worked great at getting my corporate email. Love the fact of having a single email app. Unfortunately if just drains my batter. I had a huge number of wakelocks and battery usage. Tried uninstalling/reinstalling, removing account and recreating. Nothing helped. Any other suggestions?
[Android Apps and Games] cynomad:
Seems that open recovery does not write the files in the folders for me.Checkng at the system/app/email there is an email.apk which is only 1.5 mn. Any ideas?

---------- Post added at 02:13 AM ---------- Previous post was at 01:22 AM ----------

Fixed it, capacity issue- need to fix push syncing now