yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Haul:
He was clear that they are not flashable. If you want to return your 4.4.1 system to stock so that you can flash the 4.4.2 OTA update, do the following, but you'll need root as well as a semi-decent understanding of a UNIX shell.

1) grab the .zip that Thyrus posted on page 59

2) extract the 4 files from the .zip to the root of your SD card. Drag and drop in Windows works fine for this.

3) delete your Exchange accounts from your phone

4) adb shell

5) /system/xbin/su

6) mount -o remount,rw /system

7) delete the modified .apk's from /system/app. Depending on how you installed them, the filenames may differ. If you used cragacgomez's flashable zips, you'll want to run:

a) rm -f /system/app/Email.apk

b) rm -f /system/app/Exchange2.apk

8) cd /system

9) copy the stock files that Thyrus posted from your SD card to /system/app:

a) cp -a /sdcard/EmailGoogle.apk .

b) cp -a /sdcard/EmailGoogle.odex .

c) cp -a /sdcard/Exchange2Google.apk .

d) cp -a /sdcard/Exchange2Google.odex .

10) fix the permissions on the files that you just copied:

a) chmod 644 EmailGoogle.apk

b) chmod 644 EmailGoogle.odex

c) chmod 644 Exchange2Google.apk

d) chmod 644 Exchange2Google.odex

11) change the group:

a) chown root:root EmailGoogle.apk

b) chown root:root EmailGoogle.odex

c) chown root:root Exchange2Google.apk

d) chown root:root Exchange2Google.odex

12) mount -o remount,ro /system

Please make sure that you deleted the modified files first in step 7. I have no idea what will happen if you have multiple copies of the same app installed but with different filenames.

If you did the above correctly, you should now be able to flash the 4.4.2 OTA.
[Android Apps and Games] CNLiberal:
Above, Thyrus says "Flash my ZIPs". Regardless, I'll wait for OP.

EDIT: I'm a moron. I tried grabbing these files on my N5 via the TapaTalk app. It didn't redirect to the DrobBox link. It just downloaded the link text I'm assuming. I'll try the DropBox files.
[Android Apps and Games] Haul:
Apologies, a few posts back you were replying to someone trying to revert back to 4.4.1 and I mistakenly thought you were still referring to it.
[Android Apps and Games] 640k:
these work with my '12N7 no problem.

can someone package them so we can install as an .apk? i don't currently have any developer tools loaded.
[Android Apps and Games] EmperorX:
I didn't realize that he had posted the stock 4.4.1 email files previously, that is all I needed. After upgrading to 4.2.2 with the OTA zip I can no longer use email with the zips he provided... Constant fc's. Oh well, back to 4.4.1 I go.... Can't encrypt my device

---------- Post added at 09:47 AM ---------- Previous post was at 09:15 AM ----------

Disregard. Got the fc's to stop. The odex art version does not work for me though. Standard odex works great
[Android Apps and Games] CNLiberal:
I deleted the old Exchange account. Rebooted to TWRP, wiped cache/Dalvik. I've flashed the 4.4.2 ODEX. When I setup the account, Exchange crashes. However, new emails come in as I can see them in the Notification bar. But, I can't see them in the email app. The app is empty, no folders or anything. Should I remove this and start over?
[Android Apps and Games] 640k:
did you do anything with the old apps? i used a root explorer (estrong) to backup the app, disable the app, then i flashed the new package using twrp, undisabled the app and has been working fine.
[Android Apps and Games] CNLiberal:
I figured the flash would do that for me. The OP ZIPs do that already. Let me try uninstalling them and deleting them and starting over.
[Android Apps and Games] 640k:
agreed, was jsut curious. haven't had any crashes, and I'm even getting better stability from sync than with 4.4 on my Moto X.
[Android Apps and Games] CNLiberal:
I just deleted all the Email and Exchange APKs that were present and their ODEX files. There were 4 email/exchange APKs. Once I did that, I rebooted into Recovery, flashed the 4.4.2 ODEX ZIP, and entered my Exchange details again. All seems to be working as expected! Thanks for providing the ZIPs!!
[Android Apps and Games] 640k:
bump up again. can soemone package these apps? i don't have a dev environment set up.
[Android Apps and Games] ptr_hamilton:
What do you want it to be packed? It's already flashable.. Btw, here's version 2 http://xdaforums.com/showthread.php?p=48423316
[Android Apps and Games] glebonator:
Does not work. Just keeps force-closing after setting up the account.

Installed the ones from this thread directly over it and everything configured fine after clearing the account: http://xdaforums.com/showthread.php?t=2531268
[Android Apps and Games] Kirpman:
I had no problems using xposed :)
[Android Apps and Games] CNLiberal:
How are you using XPosed to get around the stock email/exchange security lock? Or am I misinterpreting you?
[Android Apps and Games] EmperorX:
There are xposed modules that can be downloaded within xposed itself that are for Exchange bypass.
[Android Apps and Games] Kirpman:
Jep. I use a module that has a version of 5.1.1 I think. Works flawlessly
[Android Apps and Games] ntquartex:
Thanx again...I've replaced version 4x by v5...it works fine on my hox 4.2.2 stock rom...

Sent by Tapatalk 4 on HTC OneX...
[Android Apps and Games] craigacgomez:
Updated mod in OP... non-root installable version coming soon!

v6.0

1. Rebased to AOSP android-4.4.2_r1 (KOT49H)

2. Made some modifications to the bypass code to fix issues with storage encryption

3. Improved robustness of the bypass logic

4. Added backuptools script for custom ROMs like CyanogenMod, SlimRoms, etc. which will automatically restore the mod after re-flashes and/or updates to the ROM. Credit [MENTION=3211907]BlackFang171[/MENTION]
[Android Apps and Games] 640k:
this is relevant to my internets...
[Android Apps and Games] Beefmeister:
Seems to be working A-O-K here. But then, I never had issues with previous versions......! :)
[Android Apps and Games] apostrophi:
Hmmm, has anyone gotten this to work on non-stock?

I just tried it on my Droid Maxx (rooted, 4.2.2 with camera patch) and the exchange service just dies every time I try to set it up. Anyone gotten it to work on either this or the Moto X ROM?
[Android Apps and Games] craigacgomez:
Added a non-root user installable version of the mod. I do not have a device with a stock un-rooted ROM at the moment, so any feedback is appreciated!!!
[Android Apps and Games] 640k:
Non root method doesn't work. Apps need to be package as something else as the system thinks you're trying to replace the system apps but the signatures don't match.
[Android Apps and Games] Beefmeister:
Just in addition to this...... it seems that the backup script didn't work for me. I installed a CM11 nightly with the built-in updater and CWM 6.0.4.3, and ended up back at stock.
[Android Apps and Games] craigacgomez:
Hmm... interesting... which phone do you have? Generally speaking, the package in stock ROMs is com.google.android.email/exchange... and AOSP is com.android.email/exchange... but it looks like you phone has the AOSP Email & Exchange packages... I will PM you a test package sometime later today, if you wouldn't mind testing!!
[Android Apps and Games] fury683:
I tried this before with an older version too before I was rooted and it did the same thing. I also tried after I was rooted, and it also didn't work.

I got the 5.x version working (as in, not FC), but it only did the initial sync, and never again. It was eating a ton of battery (trying to sync?), but never did sync again. I removed the Exchange account and disabled the app (your version).

I'd like to try it again, as I read that there was a sync issue with the 4.4.1 update, and I think I saw this is now 4.4.2, which did address a sync issue according to change logs.

I am rooted on a Moto X but don't have an unlocked bootloader, and no custom recovery. I installed yours by (copying and) deleting the stock Email.apk and Exchange.apk and replacing them with yours. When I rebooted it said "Android is upgrading" and the app worked, just didn't sync.

Wondering if I could disable yours, or even revert mine to stock and then try your non-root method on my phone. Willing to help test too, to an extent.
[Android Apps and Games] prabhjots:
I just finished testing this on a stock unrooted Nexus 7, it sees that we're trying to replace a system app, and fails.

On another note, If it is a user app, it should work on Touchwiz ROMs as well, right?
[Android Apps and Games] 640k:
Its the signatures. You should be able to package this as a different app. Maybe just change the name? Like others have pointed out, your apks are trying to replace system apps, which can't be uninstalled on a non rooted phone. Any time you repackage an apk, the install will fail if the signatures don't match. I just don't fully understand the workaround.

BTW on Moto X.
[Android Apps and Games] prabhjots:
I think "refactoring" the package name should do the trick...
[Android Apps and Games] 640k:
i think the first go-around (or rather the last one) actually showed the app as a separate install on your device. so technically you end up installing an "alternate" email/exchange app, which is the real reason you need to disable the system apps (two exchange services would probably step on each other).

theoretically this approach should work without incident. i've just been patiently waiting for hte solution.
[Android Apps and Games] craigacgomez:
So changing the package name requires from amount of work and testing. Can you try to install it via adb and let me know what error message it displays?
[Android Apps and Games] 640k:
i can, but i thought the signature error was evident. not sure you'll get different results.
[Android Apps and Games] craigacgomez:
Trying to figure out if it is just a conflicting provider authority
[Android Apps and Games] tangcla:
can't you do adb install -r?
[Android Apps and Games] 640k:
adb install -r will do nothing to a system app on a non rooted phone.

As far as I know, three things are important:

Package name;

Signing key;

Version code.
[Android Apps and Games] craigacgomez:
You are correct. I always assumed that the package name for the stock Email app was com.google.android and AOSP was com.android... I need to make quite a few changes to change the package name and I will take a look at this over the next few days as time permits...
[Android Apps and Games] Tel9000:
If you can make this email app installable on a non-rooted Moto X with 4.4, I will be happy to throw a healthy donation your way. Pin or no pin, the 4.4 exchange email app is badly broken and appears to be fixed with the 4.4.2 update.

Motorola support had been no help. I'm just a guy who wants to check email, and I don't want to have to switch to another platform to do that. Thank you in advance.
[Android Apps and Games] prabhjots:
In the mean time, use cloudmagic from the play store
[Android Apps and Games] HPT:
Dears,

The bypass logic 6.0 for Exchange doesn't work on GT-N7000 with Asylum Omni 4.4.2 ROM. I did a clean/fresh install in recovery mode (no previous email/exchange apk's installed), but it forces to install a client certificate & a screen lock security code... Any suggestions how to bypass this ?
[Android Apps and Games] BoringHusband:
Additional feature request:

It would greatly help me if the bypass could include the checks for 'Don't allow consumer email' and 'Don't allow Internet sharing', as these currently are the blocks on our corporate email.

Otherwise thanks for this bypass, as before it was not even possible to see what policies denied access to the email account.
[Android Apps and Games] 640k:
Wow, I thought I had it bad!
[Android Apps and Games] lastms:
I did the same as you but I'm hitting the msg on sdcard encryption. Anything got to do whether I'm using ART instead of dalvik? Tried both and still no-go for me...stuck at sdcard encryption.

May should ask if it support omni?
[Android Apps and Games] rjames123:
Is backup script automatically added on V6 root version ? Or do I need to do something?
[Android Apps and Games] HPT:
In addition : the screen lock stays active even if email & exchange apk's have been removed & related cleanup has been done. Reinstalling the Asylum Omni 4.4.2 ROM from scratch is apparently the only way out to get rid of this screen lock. Or is there any other trick ?
[Android Apps and Games] 640k:
i'm not sure what you're asking. if you've had to encrypt your storage, the only way around the password/pin lock is to completely wipe your device. encryption cannot be undone.

if you didn't encrypt your storage, then removing any sort of locking mechanism should be easy.
[Android Apps and Games] darkmanlv:
Tried v6 on Echoe KitKat v2.1 with Android 4.4.2 and still can`t connect to our corporate exchange :( Shows can`t connect message without any other errors. Tried SSL/TSL, SSL/TSL (accept all certificates), without SSL - nothing works... How to fix it ?
[Android Apps and Games] Captain_Throwback:
Are you putting in your information correctly? Make sure when you input your username you do Domain\Username, otherwise it won't authenticate correctly.

The older Android version email apps had some help text to remind you to do this, but it's still necessary even though that text is gone.
[Android Apps and Games] darkmanlv:
Yes, i tried with domain\username and with [MENTION=548242]domain[/MENTION], nothing works. I see in exchange that new device is created but no last sync time, and phone shows error that can`t connect...

Tried with fix v6, v5 and v4 from android 4.3.
[Android Apps and Games] Tel9000:
I tried this app and it's probably the best 3rd party app available. But when I tried it, it attaches "sent from cloud magic" to every email, without the ability to remove it. I use my phone for business. I might as well change my signature to "sent with rainbows and unicorns".
[Android Apps and Games] EmperorX:
This too, is also my plight.
[Android Apps and Games] kpoverdorf:
Please excuse my incredibly noobish question. I have been using a Nexus for so long, installing anything was a simple task. I am currently on an ATT Moto X rooted and Since I don't have a custom recovery to install zips from I'm not entirely sure how to go about installing this. I feel dumb asking this. I just don't want to attempt something and botch it. I would rather do it right the first time. Can I use ADB or do I need to use the manual install?

Also, what's the difference between the Root and non Root version?
[Android Apps and Games] prabhjots:
Both adb and manual install should work fine.

Since you're rooted, I'd recommend going for the root version.

Non root version is only for those who are not rooted, and this should theoretically install a user space app. (Though it doesn't work on non root devices for now)
[Android Apps and Games] kpoverdorf:
Thank you

So would something like this work?

--update_package=/sdcard/ExchangeNoPIN-v6.0.zip

---------- Post added at 01:20 PM ---------- Previous post was at 12:23 PM ----------
[Android Apps and Games] prabhjots:
Manual install means... Extract the root version zip and copy email.apk and exchange.apk to /system/app and set permissions
[Android Apps and Games] 640k:
i'm playing with an extract of 4.4.2 email/exchange and I'm getting a different error:

INSTALL_FAILED_CONFLICTING_PROVIDER

the apks are named different too. is this easier to troubleshoot? supposedly you just modify the manifest.xml, but it's encrypted, so i'm not sure how you do that.
[Android Apps and Games] prabhjots:
It's like the developer heard you. They just released an update which will allow to turn off the "sent using cloudmagic" message.
[Android Apps and Games] Tel9000:
That's funny. What a coincidence. Glad I could help?
[Android Apps and Games] darkmanlv:
after changing "Allow Non-provisionable Devices" parameter in exchange and restarting it - sync done with v6 of patch, thanks!!!
[Android Apps and Games] FredC94:
Hello, I see in the last changelog: Added backuptools script for custom ROMs .... how is this supposed to work ?

I'm wondering because after flashing the script (v 6.0) and a new nightly the exchange security policy has came back...

Thank you
[Android Apps and Games] HPT:
Gents, I retried to whole installation procedure but still with no luck

Type of phone : GT-N7000 Galaxy Note 1

ROM : Asylum_Omni_4.4.2_20131219_n7000 (Android 4.4.2)

Kernel : Asylum_Omni_4.4.2_kernel_20131219_n7000

Installed tiny Gapps without Email & Exchange apks

Rooted - flashed the latest SuperSU

Phone not encrypted

Selected runtime : Dalvik

Flashed ExchangeNoPIN-v6.0.zip in recovery

This is what I did / experience :

1) Flashed the zip ExchangeNoPIN-v6.0.zip in TWRP (no need to remove existing Exchange accounts as there were not installed yet)

2) Wiped cache & dalvik-cache

3) Reboot

4) Setup Exchange account :

a) Entered email address & password (type of account = Exchange)

b) Entered Username, PW, Server, port 443 (default), SSL/TLS security type

c) When I select client certificate I've got the message to set a lock screen PIN or PW before I can use credential storage - I accept, otherwise I cannot continue the setup procedure.

d) I choosed a 4 digit PIN

e) Next warning : no certificates for exchange services found - I installed the company's client certificate (client.pfx) from SDcard/Ext. SDcard

f) I selected VPN & Apps as Credential use & OK

g) Choose certificate : allow

h) Account setup - Next - validating server settings

i) Warning : remote security administration - request to allow remotely control some security features - clicked on OK to finalize account setup

j) Account settings : inbox checking frequency = never (manual method)

k) Account setup done

l) Reboot

m) email works but screen lock is still active

5) Side remarks :

- network monitoring is activated - trusted credential installed to make this possible

- Screen lock still active - cannot be disabled in settings

- trusted user credentials can be deleted in settings but make no difference

6) It all went wrong at step 4) c) - I cannot skip this step as account settup will not be completed

Conclusion : Security bypass does not work on my phone/ROM, or did I missed something ?

PS : It worked on JB without any problems

Pls advice on the path forward. Tx a lot.
[Android Apps and Games] quadomatic:
Is there any chance this could be repurposed for apps like Airwatch MDM?
[Android Apps and Games] BlackFang171:
Glad you could make use of that script!
[Android Apps and Games] FredC94:
Hello Blackfang, maybe you could answer my question about the backup script (see above)

Thank you
[Android Apps and Games] Nalij:
What method did you use? I tried the manual and flash method and both times and i had to apply a pin for completion.

Appreciate any insight you can offer, thanks in advance.
[Android Apps and Games] Yndi:
Hi,

I used this on CM11 and it worked some time but at some point it the mail accounts (I use two) don't show up and It's impossible to readd them, without deleting the data of this app. Happend three times.

And data: could you add the possibility to store data on SD? My two accs use 213MB which is quiet a lot for my phone.

Thanks
[Android Apps and Games] apxeng:
+1
[Android Apps and Games] Captain_Throwback:
Thanks again for this mod. Cherry-picked the new patches, enabled ART, and everything is working smoothly on my CM11 build.
[Android Apps and Games] kpoverdorf:
I was having trouble with that. Eventually I was able to get it done. It kept asking me to install the app after I moved the apk and it would fail. Then randomly it worked. Yay! Lol.

I have been using this mod for such a long time. I'm in the IT dept of our company and I can't stand our requirements. This is a sanity saver.

Thanks!
[Android Apps and Games] gunnermike:
I have been using this patch since v2 and haven't had the first issue until the last week or so. I am trying to install on my nexus 7 2013 with cm11. I followed the manual instructions exactly and I keep getting "You don't have permission to access this server". I have checked and rechecked all my settings and password and it just wont work. Anybody have any ideas?
[Android Apps and Games] gunnermike:
No one? Anybody have any ideas?
[Android Apps and Games] fury683:
For those asking.. I did this with my Moto X that is rooted, but the bootloader is locked.

I downloaded the root ZIP in OP and extracted on my SD card. I used Root Explorer to rename Email.apk and Exchange2.apk to add .bak to the end.

I moved in the two apks in the ZIP to /system/app and rebooted. Added my exchange account and was never prompted to accept the certificate. When I did this with a previous version, it worked to add the account but it only did one sync and then never again. It also constantly tried to sync, causing huge battery drain.

Now it works great! Thanks a ton OP for the work on this. I donated a few bucks for your efforts. Cheers!
[Android Apps and Games] zelet:
This mod used to work for me and now I'm getting the error below:

This server requires security features... blah blah blah... Require SD card encryption, Don't allow unsigned apps, Don't allow unsigned app installers

Is this something that can be addressed/is being addressed?
[Android Apps and Games] crakedparrot:
Working 4.4 NoRoot yet?

I am checking in to see if this has been resolved yet... Fingers Crossed!!
[Android Apps and Games] lepa71:
Did anybody installed this manually or otherwise on Verizon S3 jb 4.1.2? Thanks
[Android Apps and Games] yakovpol:
Version 6

Many thanks for the version 6. The certificate stored in the system is working now!

Regarding one of the previous versions, was there an option to change the Sent from address (if you have more than one mailbox configured) when reply/forward the message? In the version 6 this is possible for a new message only.
[Android Apps and Games] gunnermike:
Has anyone had any luck getting this to work on CM11?
[Android Apps and Games] rjames123:
I use it everyday :)
[Android Apps and Games] kaz219:
I can't upgrade to android 4.4.2. I have reflashed the stock recovery and I get:

assert failed: apply_patch_check("/system/app/EmailGoogle.apk", "47c62a516b5fe4173699c34e698f2c77d984d658", "1bb861b885fb9733347c8c762da9782b195b8aa9")

E:Error in /cache/cc80dccc7febf9b7685d56ac5c1094f3e9eaa023.SS-I9505GUEUCMKG-to-UCML4_Update_FWD.zip

(status 7)

Installation Aborted.

​

Is it related to ExchangeNoPIN-v5.0.zip? How do I fix this? Will installing ExchangeNoPIN-v6.0.zip on top of it help?
[Android Apps and Games] gunnermike:
Could you explain EXACTLLY what you do to install it? I follow the instructions in the OP and I get "You don't have permission to access this site". I cant get it to work on any 4.4 ROM.
[Android Apps and Games] zelet:
Gunnermike: it doesn't work for me either when it did when I was on 4.1.

Now it says my phone doesn't support the security policies of: encrypted SD, unsigned apps, and unsigned app installers.
[Android Apps and Games] Beefmeister:
When I upgraded to CM11 I did a clean install: wipe System, wipe Data, flash CM11, GAPPS and Exchange NoPin zips, boot phone, setup exchange email accounts. That's all there is to it.
[Android Apps and Games] rjames123:
Yes this is the step i followed too . Installed zip from recovery along with ROM,GAPPS.
[Android Apps and Games] kpoverdorf:
Running v6.0 I am starting to get the "Authentication error" notification. It doesn't seem to prevent me from receiving emails and all my information is correct. What could be the problem?
[Android Apps and Games] rjames123:
I too get these , but I believe this comes when it fails to reach exchange server momentarily.
[Android Apps and Games] crakedparrot:
Has there been any progress on the No Root Installable version?

Sent from my Verizon Moto X
[Android Apps and Games] jayboyyyy:
mirror? link is down
[Android Apps and Games] theodric:
Confirmed working on HTC One 4.4 when none of my previous repository of hacked Email apps would. Thanks!
[Android Apps and Games] crakedparrot:
Thanks for your input, can you clarify which method you used? Flash, manual w/ root or manual - No Root?

Sent from my Verizon Moto X
[Android Apps and Games] wassimo78:
I use v6.0 but when add my account exchange return error because i don't supported SD encrypt.. :(