yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] CNLiberal:
The question should be, do we really need an updated KitKat version? The reason I ask is because, aren't most of us trying to avoid the issue that the lock screen is enabled and doesn't give us access to our lock screen widgets? Or are you guys just using it to circumvent all company policies?

We should wait and see what KitKat does as far as Exchange Security policies and the lock screen. If we can still access widgets, and leave the security policies in place, wouldn't that be the best of both worlds?
[Android Apps and Games] moonjak:
You would let someone remotely control your phone?

(= BeanStalk LGG2 =)
[Android Apps and Games] jayboyyyy:
my work requires encryption that you can only remove via a factory reset. I'm trying to avoid that. And the pinlock for another email account. I have never lost a phone and will lock it down within minutes if i ever lost it because i would notice relatively quickly. So yes, i used it to circumvent all company policies.
[Android Apps and Games] mitchst2:
Request for 4.4 email bypass here too, ready to rock for GPE update in next two weeks. That would be great.
[Android Apps and Games] BlackFang171:
What I meant was, you likely have to mod the exchange services as well, not just the email APK. could be wrong.
[Android Apps and Games] craigacgomez:
I will be updating this with the Android 4.4 version soon!!
[Android Apps and Games] litso:
Good news! I can only stand a PIN lock for so long.
[Android Apps and Games] prabhjots:
I repeat my query. Can this be refactored to be used as a standalone app and not require root?
[Android Apps and Games] craigacgomez:
Haha... precisely why I always use this!!

I will try...
[Android Apps and Games] prabhjots:
Thanks! Please let me know of you need any help. Would be happy to do so.
[Android Apps and Games] Skeeter35:
Do you or can you do an inverted version?
[Android Apps and Games] irrrze:
4.4 apk

I managed to build Email & Exchange2 apk based on 4.4_r1 aosp code plus craigacgomez's patch, it works with {ROM} 4.4 MAKO-odexed.NEXUS 5 port , I attached both, and below is the installation instruction in the adb shell with root privilege.

Given you adb push both apk to /sdcard/app/

1. mount -o remount,rw /system

2. cp /system/app/E* /sdcard/backup

3. cp /sdcard/app/Email.apk /system/app/EmailGoogle.apk

4. cp /sdcard/app/Exchange2.apk /system/app/Exchange2Google.apk

5. chmod 644 /system/app/E*.apk

All credits go to craigacgomez, i just shameless build the package:)
[Android Apps and Games] prabhjots:
Thanks, where did you get craigacgomez's patch from?

Can you also publish source, please?
[Android Apps and Games] irrrze:
The patch is mentioned in OP
[Android Apps and Games] sshark:
Thanks, I manually pushed this using Root Explorer and set permissions there on my N4 running CM10.2 latest nightly.

My report is that EmailGoogle app yet does not show up in the launcher as a separate app, side-by-side with the current app.

I know OP had a disclaimer that it worked on a 4.4 ROM but wanted to report findings for the community, since vast majority of us are still on 4.3.

Sshark

---------- Post added at 09:11 AM ---------- Previous post was at 09:08 AM ----------

Is there significant difference in functionality between 4.3 Email app and 4.3 Email app?

One thing that I was hoping that Google would fix was " "text wrapping issues" " in this stock email app!
[Android Apps and Games] prabhjots:
I'm using it on gs3 with Cm10.2, works well.

Difference: the stock 4.4 email app is almost identical to the new gmail interface with sidebar and swipe to delete functionality..
[Android Apps and Games] fabi280:
Is there something to disable the security requirements for the vpn connections?

Gesendet von meinem Nexus 4 mit Tapatalk
[Android Apps and Games] prabhjots:
I'm also interested. Haven't found anything for this purpose so far
[Android Apps and Games] sshark:
Thanks, after your post I went to system/app folder and manually installed the two zips.

It "upgraded" system email app and I have now working version which sits on top of stock app with updates and no security .

My company does periodic check so I have observed that eventually server recognizes that security feature has been compromised and stops syncing until unmodified version is restored.

--------------

That brings another question - is there any visible difference is stock Calendar app? Is so, can someone make it workable and upload it!
[Android Apps and Games] ajislav:
Hi, thanks for the work. What is your guess about this working on CM 10.1 stable?
[Android Apps and Games] CNLiberal:
Yes I would. Only because it's possible to have sensitive data on the phone. PHI information, or corporate data. The only reason I was circumventing was so that I could use the lock screen widgets. I still had a pattern lock in place. I just want to use the darned lock screen widgets.

Besides, you let Google have remote access to your phone. They can, and have, remotely removed malware from phones in the past. If they can do that, they can do almost anything to the phone.
[Android Apps and Games] bigjobber69:
Works great on sgs3 on cm10.1. Thanks OP
[Android Apps and Games] gismo2004:
For me the apks for 4.4 are crashing after server-settings tab on my NEXUS-5 are there apk's out there for nexus5?

cheers

Edit: working after removing odex files?! strange isn't it?
[Android Apps and Games] buffal0b1ll:
D2vzw carbon ROM 4.3.1 firmware. Downloaded and installed the 2 4.4 apk. They both upgraded existing 4.3 no pin Email. Had to re authenticate with exchange server and now email and calendar are syncing. Contacts NOT syncing. Tried reboot, toggling the sync contacts at the app and accounts level, clearing app data for both contacts and contact storage. Any ideas?
[Android Apps and Games] prabhjots:
Well, no. Not strange, since the modified apks are deodexed.
[Android Apps and Games] gismo2004:
Ok... But i thought it is not possible to Start the APP if odexed but thx for the answer!

Cheers
[Android Apps and Games] buffal0b1ll:
OK so I solved my own Exchange Contacts problem, but it worked out really weird and in a way that I'm actually quite please with.

I took the steps in the post above and then gave up for a while. Checked the phone a few hours later and still no Corporate Contacts syncing;-(

So I decided to delete the Corporate account and set it up again (like maybe I should have deleted my Corporate account before every installing the Email and EmailExchange apks, right?). THIS TIME when I set it up I made one setting different--I chose the "SSL/TLS (Accept all Certificates)" instead of "SSL/TLS", but I have no idea if this really made the game changing difference.

So the usual prompts came up and Email started syncing and I went over to contacts to check the progress. WHOA! There's contacts syncing, but those aren't actually in my Corporate address book---wait, I recongnize some of them---what, I don't believe it, all of my autocomplete "NK2" contacts from my outlook are moving into my Android Corporate Contacts.

At first I didn't like it. I thought it was a problem. This never happened in 4.1, 4.2, and 4.3. But then I realized that I could benefit from this. Email's biggest weakness was that I always lacked the ability to do much more than reply to messages because I don't have many of my non-global address book contacts added in my Address Book. I just rely on the Auto Complete in the TO: field that really only ever worked on a PC using the MS Outlook. NOW I have all those contacts at my fingertips on my phone, and I hide them from the People queue by ticking show only Google contacts. If I need to call one of the dozen Corporate Contacts I actually ever bothered to add to my address book, they still come up in a Search in People.

Not sure if this blessing in disguise will persist when my favorite ROM jumps the shark to 4.4, but right now in CARBONROM 4.3.1 with 4.4 EMAIL I'm loving it!
[Android Apps and Games] sshark:
Can someone post unmodified Email.apk and EmailExchange.apk which will be backward compatible with4.3?

My company has notorious sec policy which checks implementation of policy every so often and when the server doesn't find or suspects tampering, the email stops syncing!

At least I would like to enjoy latest version of AOSP email if not without sec policy override feature.
[Android Apps and Games] prabhjots:
This modified email reports to the server that everything is in order, while making no actual changes to security settings.

When server checks for security settings, you will very often see a notification,

"server updated security settings for this account; no user input required."

Enjoy :)
[Android Apps and Games] idic:
Latest version up and running successfully on KitKat (Nexus 5). Looking forward to having it updated with the new features (swipe to delete etc.) of 4.4!
[Android Apps and Games] sshark:
Not to be rude but after a day or so my email stops syncing with the server.

I noticed that this problem persisted for all versions.

Going back to original question, can someone upload 4.4 Kitkat ASOP email app modified to work on 4.3? :(:confused:
[Android Apps and Games] prabhjots:
http://xdaforums.com/showthread.php?p=47063058
[Android Apps and Games] buffal0b1ll:
What you are asking for already exists.

The 4.4 apks that you download in the post above will upgrade your Email and Exchange services on 4.3 and work with your calendar and contacts too. I advise deleting your corporate account before upgrading.
[Android Apps and Games] luisjoseb:
Thanks for share it, is working fine in 4.4 MAKO-odexed.NEXUS 5 port

I made a flasheable ZIP to flash with CWM o TWRP
[Android Apps and Games] felixjai:
How did you get it to work after deleting the odex files? After deleting the odex files, the Email app is not showing up on my Nexus 5 anymore. :confused:
[Android Apps and Games] jayboyyyy:
you can either remove or rename your old email.apk and exchange2.apk as well as their odex files then put these new email files in there with root explorer or whatever. change permissions to rw-r-r. then reboot the phone and it should all be working. If no email app appeared after your removed the odex files, that is because you either didn't change permissions to the new apks you moved into the system/app or because you never moved them in there in the first place, they don't need odex files to run.
[Android Apps and Games] prabhjots:
Next, copy the apks and fix permissions
[Android Apps and Games] felixjai:
It is working now. I just needed to restart my launcher for the Email app to show up. Thanks guys.
[Android Apps and Games] jayboyyyy:
im not a guru but I'm almost positive you don't need odex files because the deodexed apk doesn't use them to run. Meaning once you take the odex and the apk file you compile them into one apk that is now a deodexed apk. This would be the apk that is in this thread. Odex files are called onto by the apk but if it is a deodexed apk then it is built into and does not call on an odex file. I am on a moto x which has odex'd apks and i merely renamed my old email and exhcnage apks as well as my odex email and exchange files with ".bk" at the end so i can re install them easily if necessary then put the new apks in the system/app then gave them the permissions you said, then rebooted the phone and the new apks are installed on boot.
[Android Apps and Games] Evilmonkee:
I still have not been able to get this to work on my AT&T Galaxy Note 3 JB4.3. My phone has been rooted on the stock TouchWiz rom using the Universal Root method from this forum(to avoid triggering KNOX).

I'm pretty darn sure I have followed all the directions correctly. First I deleted all my email profiles and rebooted, just to be sure. The files in the system/app folder on my phone are named SecEmail_J.apk and SecExchange.apk. I renamed both files by adding .bk to the end. I copied the Email.apk and Exchange2.apk files to this folder, renamed them the same as the originals, and set their permissions to rw-r-r. Then I rebooted again.

Upon reboot, the email app keeps crashing and the phone becomes unstable because of this, until I restore the original files and reboot again.

As an aside, I've been a long time iphone user until last week when I got my first Android phone, so I'm still trying to learn/adjust to all the changes. I've also been a long time jailbreaker. TBH, jailbreaking seems a lot more straightforward than rooting has been for me. Probably because the vast amount of different devices running on the Android platform versus just the few iphone/ipad/ipod versions.

It's unfortunate that the Exchange bypass seems so complicated and elusive on this platform. On my iphone there was a simple tweak called Exchange Unlock that was easily installed via Cydia, without even having to delete your Exchange account. I'm not trying to stir the pot, just making an observation.
[Android Apps and Games] jayboyyyy:
there are other user friendly modules that you can run that try to bypass security. iphone and android comparison are worthless because one is only one phone with one software and all apps are driven through the software. android has many phones many softwares, and each carrier/distributor often makes their own software for the phone on top of android. Enough about that though. Is your device odexed? if so you need to rename the odex files as well. If not, Idk what else to tell you besides that it might not be compatible. Perhaps someone with more knowledge will chime in to assist you.

also, when you removed the accounts, you might as well have deleted the data for the accounts too before attempting all of this. sometimes that is an issue as well.
[Android Apps and Games] prabhjots:
No wonder. This isn't meant for touchwiz or other OEM ROMs. Works best on aosp.

Sorry for spoiling your android experience, but Samsung is playing right to the galleries, even leaving behind apple. If you want a true android experience, try a nexus device.
[Android Apps and Games] force70:
Works just fine on tw..on my s3, s4, note 2 actually.

sent from my S4 or Note 3..nexus 5 on the way!
[Android Apps and Games] shanyel:
I followed the instructions and email stops syncing after first time. So I see like 10 emails and than it stops...

Deleted my account and followed the exact instruction...

Tried on both 4.3 and 4.4

Any help?
[Android Apps and Games] prabhjots:
Great!! Tried doing this without root? I have a friend who just will not root his S4, but still would love to use this.
[Android Apps and Games] Evilmonkee:
Could you elaborate?

I realize this, which is why I stated I was just making an observation based on what I've experienced so far.

In response to whether my or not my device is odexed, I believe it is. But I did forget to mention that I renamed the two .odex files as well. So that doesn't seem to be the issue.

I'm not sure how to do that. When I restored the original files, I had to go back and recreate all my gmail accounts, as well as my exchange account. It didn't seem like any data was retained.

I keep searching for answers, but it's hard to pin down specifics based on my carrier/model/software. There's a lot of conflicting information(even in this thread) which makes it hard to figure it out. I don't know if anybody has been able to get it to work on an AT&T GN3, running v4.3 of Touchwiz. Searching google certainly has not been of any help other than pointing me here.
[Android Apps and Games] force70:
Nope sorry all my devices have root.

sent from my S4 or Note 3..nexus 5 on the way!
[Android Apps and Games] marcocsh:
Thanks for the zip buddy! I don't understand why there is only 1 thanks for you!
[Android Apps and Games] jorgeszabo:
Quick question here.Is the latest zip found a couple of pages back the modified (No PIN) stock 4.4 Email app or is it a port of the 4.3 version from the OP?

Thanks,

J
[Android Apps and Games] [V]endetta:
Modified with security bypass
[Android Apps and Games] davy917:
FC-ing for me in stock 4.4 on Nexus 5, can anyone else confirm?

Edit: Nvm just needed to delete the odex files, thanks!
[Android Apps and Games] jayboyyyy:
the xposed framework has modules that are supposed to bypass security but I'm not familiar with touchwiz devices and what root exploits they can use and can't use. Maybe someone more familiar could help you with that.

for all devices that i have owned, the user friendly way to delete data is to go to your apps, go to "all apps" tab, then scroll down to your email app, click on it, then you will have the ability to clear cache, clear defaults, and clear data. Click on clear data, then do this for the exchange account as well before you delete them. Not sure what you did before that would have caused you to have to put in your gmail account as well. that is weird (assuming you use the gmail app for your gmail account). you could try PMing the person that posted that he was on touchwiz and had it running to see exactly what he did. You can also research the xposed framework to see if it is compatible with your device. But it may softbrick the device so make sure you know how to get out of that before diving into that process.
[Android Apps and Games] aostrom:
Working on Shiny 4.4 / Gnex (Toro)

I installed this on Shiny ROM, KitKat 4.4 (11/2) build, and it's working perfectly. I used the zip created a couple of pages back instead of having to do the install manually. Many thanks to Craig and all those who made this work!

Andy
[Android Apps and Games] jayboyyyy:
Just to let others know. I'm on Moto x and had the email installed fine. took a few attempts to get it to add accounts for two emails I had using exchange. Finally got them to work. The app worked fine for about a day before i noticed I wasn't getting emails. I went and did many forced syncs to no avail. It also then only showed like two emails in my inbox as well. Finally got one of the syncs to actualy sync but only on one account. I had to remove the app and put the prior version from the OP back on the device. Idk if it is a compatability issue or an issue with what was changed in the app, but it eventually stopped working for me. Sad, because deleting emails in the notification bar was pretty nice.
[Android Apps and Games] billteeth:
Zip is FC'ing for me on Nexus 4 w/ the Nexus 5 port. Not sure if this works for mako, but how do you delete odex files?
[Android Apps and Games] [V]endetta:
Working great on mako

my droid sent this while having its Kit Kat break
[Android Apps and Games] jorgeszabo:
I was about to flash the zip from a few pages back until I saw this post. What did you do to remove the odex files? Do I need to back these up along with the EmailGoolge.apk and Exchange2Google.apk from the stock ROM?

I'm using a stock Nexus 5 with TWRP Recovery.

Thanks,

J
[Android Apps and Games] to0:
It's working on my Nexus 5 with stock 4.4. I deleted these before installing:

/system/app/EmailGoogle.apk

/system/app/EmailGoogle.odex

/system/app/Exchange2Google.apk

/system/app/Exchange2Google.odex
[Android Apps and Games] ronniler:
lock screen options fixed or grayed out

Hi!! After 2 weeks reading not to screw up my new S4 ATT MF3 Graviton on safestrap I decided to register. It is time to take part of it ;)

I am a S2 very happy user that used early email.apk version to circumvent locking and ecryption policy. I couldn't live without this on my S4, so after some tests I think I finally got it. I followed the instructions on the quote. In my case, since i am on 4.2.2 the name of the files were

Email2.apk

Exchange2.apk

But all the paths and permissions are the same

However, after I created my account I see that all the lock screens are gone. I can only use the one I was using before creating the account (on my case: none :good: ). Is this an expected behavior?

Is there a way to check the actual policies that currently apply?

Thanks!!
[Android Apps and Games] idic:
Am I missing something with the install process? There's a lot of talk of flashing zips in recovery or changing permissions if you do it manually.

I just renamed the apk and odex files in system/apps (to preserve them for returning to stock versions if I need to) and then just tap on the two new apk files and they install just fine as you would any other sideloaded app.

Am I missing something, or are the instructions more complicated than they need to be?

(Everything works fine, I've been using various versions on 3 different devices for a few months now.)
[Android Apps and Games] rajeshm:
Need help for Samsung SecEmail_J based on andriod 4.3

Hi, Can anyone please port a new email security policy patch using SecEmail_J for the new android 4.3 release for Samsung S3 I9300.

I am getting the below EOF message while trying to patch the apk using email-policy-patch-3.3

Recompiling ...
work\out-SecEmail_J.apk\sstream\lib\objs\StoryItem.smali[0,-1] mismatched input
'<EOF>' expecting END_METHOD_DIRECTIVE
[Android Apps and Games] prabhjots:
SecEmail is closed source. This is based on aosp email app. There's no such patch in this thread.
[Android Apps and Games] jshamoon:
Thanks man, brilliant!
[Android Apps and Games] Tiketti:
I can confirm this working on a rooted Nexus 5 4.4 (build KRT16M).

I added ".bak" at the end of the original Email and Exchange .apk's and .odex's in /system/app. Copied modified .apk's from Dropbox to that location. Modified permissions. Rebooted. Added Corporate account.

I'm on stock recovery so I didn't even wipe anything.
[Android Apps and Games] shanyel:
did you manage to overcome this?

thanks
[Android Apps and Games] jayboyyyy:
nope, I'm hoping it must have to do with not being on kit kat. Once we get our update, ill try to run it again to see if it works. I mean it did work up front, after many different tries of getting it to let me add an account (actually had to wait an entire day and try again and it finally let me add the 2nd account even though the first time i installed the apk it let me install my 2nd account but wouldn't let me install the first, then it switched when i installed them again, weird). But after a couple days it just stopped syncing up properly. It kind of would sometimes and kind of wouldn't but I never found a workaround. Tried clearing stuff reinstalling, clear cache, data, everything that i could think of. Decided to put the prior version back on and just run with that unitl kit kat comes out for the moto x
[Android Apps and Games] shanyel:
Yep, happens the same here. Takes some time to sync calendar and contacts. Email syncs for first time and stops. It has nothing to do with this hack. It happens also on native app

Hope someone finds a solution
[Android Apps and Games] jdubso:
Works for me on Nexus 5, stock rooted.

Only issue I have is that I have a persistent notification saying "Security Policies have changed."
[Android Apps and Games] sshark:
So me thing happened to me as ell. Calendar and contact would sync fine bug email stops syncing after couple of days. I thought this was because of my company's security policy but might this have to do anything with the hack and specific server configuration?
[Android Apps and Games] EmperorX:
Same thing happened to me. I went into advanced settings for the account (server address, name, password etc). I changed nothing. And hit done. Immediately after that I've been getting email ever since.
[Android Apps and Games] UnitFoxhound:
Works Perferct

This worked perfect on my galaxy nexus, and now the latest version works perfect on my nexus 5 on kitkat. Thanks a lot for this. The PIN is so annoying, and I'm highly dependent on my email.

I tried many other fixes that didn't work, but this one has always worked flawlessly.

Great job. Got you a beer.
[Android Apps and Games] EmperorX:
Hmm. Email keeps stopping as mentioned previously. Is it the mod or a Google problem? Anyone run stock and see this behavior? Screwed me over today when I missed Corp emails for half the day...

---------- Post added at 05:59 PM ---------- Previous post was at 05:42 PM ----------

Should add that I'm on a Nexus 5. Stock 4.4
[Android Apps and Games] cgulliver:
Issue is a defect in the app, not this mod. Change from push to check every 5/10 minutes til Google fixes.