yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] TEK112:
You need to have access to Exchange Management to make the changes. A System Admin is usually the one to make this call as it is a breach of normal security protocol. It all depends on how friendly your employer is.

http://blogs.technet.com/b/exchange/archive/2007/05/23/3402905.aspx
[Android Apps and Games] BushyIII:
HaHa, that kills it for me.
[Android Apps and Games] stalkerrus:
Is there any way to install this apk as new one and not replacing the old one since the phone I was asked to install it to does not have root access?
[Android Apps and Games] TEK112:
No, because essentially it is the same program. The only difference between the two is a hex edit allowing a bypass of security from the remote server.
[Android Apps and Games] DJeneral2:
Unfortunately this didn't work for me either...presumably due to policy settings by my IT department.

However it does seem odd to me that 3rd party UIs like Blur and Sense (and their associated clients) can work when AOSP and its derivatives cannot. Shouldn't there be a way to get the 3rd party policy handling into these more streamlined APKs?

Thanks.
[Android Apps and Games] shafty023:
The policy handling is not done in the framework, it is done in the application code itself. Therefore it's impossible to copy/mirror the policy handling from Blur/Sense into AOSP since Blur/Sense both are closed source applications. I've already added more policy support into my paid app "Enhanced Email" but there are a few left to add but I need access to an Exchange server with these policies in place so I can add full policy handling up to Exchange 2010.
[Android Apps and Games] ice-man1989:
I love this...THANKS...I can still use JKay Deluxe!

The only wired thing is that the icons are wrong..

So that I have a green phone symbol to write a new mail

That is not a big issue, but nobody wrote it here...so I am

confused, if my person is the only one with this problem
[Android Apps and Games] uk300:
Hi,

Ive been trying to install this all day but getting nowhere. If I copy the email.apk to /system/app and reboot then i get the application failed and closed down and then have to re-do my rom to get it working again, ive tried reading as much of this thread as I can but its got massive.

Am I doing something wrong?

thanks
[Android Apps and Games] TEK112:
Download titanium backup.

Make a backup of email.apk and then uninstall it. Reboot and then install the hacked email.apk. Make sure that it installs to the phone and not to the sdcard otherwise, it will lose your email settings every reboot.
[Android Apps and Games] uk300:
Thanks,

Ive got titianium backup already, couldnt live without it but cant seem to uninstall the email.apk either from applications or root explorer. Am I missing something, can I just delete the .apk and reboot?
[Android Apps and Games] TEK112:
You could, but I don't understand why titanium can't uninstall it. What does it say when you try?
[Android Apps and Games] shafty023:
It likely is failing because you still have the "device admin" enabled. You can remove it via Android Settings->Location & security->remove local device admin. Now you should be able to uninstall.
[Android Apps and Games] uk300:
o.k thanks, removed and re-installed using the hacked version but how on earth do i get rid of the 10 character password! arrrgghhh

Tried removing exchange profile and starting again but it says "disabled by remote phone administrator" but this option is not set on the exchange active sync policy.

please help

simon
[Android Apps and Games] jayenoh:
Shafty do you have any advice on compiling the project? I've downloaded the Android CM7 source but don't know where to go from here. I think I need to compile it to create my own android.jar - am I right?

Thanks
[Android Apps and Games] ice-man1989:
I still have battery draining effect, even if I deactivate push...

A little bit annoying :-( Any advice?

I am using a Galaxy S2
[Android Apps and Games] sstenhjem:
I am in the same boat. Have been running CM 7.1 stable and was getting the Device Administration warning, even though I don't have it enabled on our Exchange server. That was annoying (this only started happening with the flashing of CM 7.1). So found this and it works great, except that my battery that was lasting 12 -14 hours and is now only 8. Sad, but happy that I don't have to use password protect, couldn't unlock my phone after a couple libations, LOL.
[Android Apps and Games] trystan2k:
Hi Guys,

If I understood correctly the battery drain and other main issues could be caused because this Email version is old, correct ? I mean, it was compiled with 2.3.4 (correct?) and now we are at 2.3.7 and some bugs were fixed, right ?

Anyway, yesterday I download CM 7.1 source code and I changed the source code, following shafty tips (got your source code and found the SecurityPolice section, and did the same change) and compile the changed code.

Now I have the last Email version (even that in Applications list, it show as 2.3.4 but I notice some changes like, now I can choose the account color - which I cannot do with the apk in the first post but could done with the one that comes with CM 7.1, so I think it seems to be the new one) and until now it is working fine.

I tried to upload the files into the post, but it always failed, so I had uploaded both zip file to be applied with CWM and the APK itself at:

http://www.sendspace.com/file/ak92y9 [Email.zip]

http://www.sendspace.com/file/46uyw7 [Email.apk]

Btw, what I was doing wrong when attaching files? I´m using Windowx/Chrome and it only says 'Upload failed'...

Let me know if you find any issues, but I higly recommend to you to do a backup of your Email.apk (and also your complete run unsing nandroid).

-Trystan
[Android Apps and Games] britoso:
Thanks. Verified this works fine on CM7 2.3.7 10/10/11 nightly
[Android Apps and Games] cmdauria:
Does my company have any way of finding out if I use this?
[Android Apps and Games] schwinn8:
So, you're saying this is a new/updated email with the same security modifications as the original? If so, I have pre-thanked you for that! :)

Is this still an ADB-push install, or can it be installed by the apk directly?
[Android Apps and Games] paudergalsch:
Hi,

Just a quick one:

Is there a modified version of email 3.0.0.1 client (Honeycomb)?

The one above is the 2.3.x version, right?

I have S2 with Gingerbread 2.3.4 and CF-root (CWM+Superuser). Everything else is stock and so I would also keep the stock email client but just get rid of the exchange security... :-)

thanks.
[Android Apps and Games] rockosifraldi:
Trystan, This works on MIUI 1.11.4... amazing I was looking for this for days! Thanks
[Android Apps and Games] deadtorights:
Hi,

Can you post the link to download for the stock rom for HTC EVO 3D GSM please?

Thanks
[Android Apps and Games] brandoncampbell:
I've tried every modified email and non of them work for my exchange server. Is there more security features you can disable in this to make this work? Does anyone have a step by step guide on how to open and modify the apk. I would like to look inside and see if I can make changes to fix it.
[Android Apps and Games] banesi:
Thanks but something went wrong, your Email.apk just gave me a nice long 7h wakelock draining my battery almost flat :(
[Android Apps and Games] britoso:
"enhanced email" is available for free today 11/17 on the amazon app store.

Adds this and a lot of additional features.
[Android Apps and Games] cjkpkg:
You sir deserve a thanks for that amazon tip...
[Android Apps and Games] shafty023:
And can I get a thank you for allowing my app to be given away for free for a day :)
[Android Apps and Games] britoso:
i had a feeling it was yours. The quantum solutions name threw me. Great work. !

No more adding in Email.apk to nightlies for me!

Thanks
[Android Apps and Games] trystan2k:
Ohhh man, I lost it :-(. Any chance for another day? (and if possible in market since I am outside US)??
[Android Apps and Games] amit864:
thanks a ton.
[Android Apps and Games] schwinn8:
I, too, wasn't sure if it was this app or not... it certainly sounded familiar. Congrats on getting "listed" on Amazon, and getting the free app deal!
[Android Apps and Games] Apnea123:
"Enhanced Email" is a great application. I've two remarks:

1: Enhanced Email is always trying to access the internet, even though in the settings the parameter "Inbox check frequency" is set to never. Is this normal?

2: Is there any option to disable the application start-up at boot up?

I've limited data usage traffic and memory, and I want have control over the applications installed on my phone.
[Android Apps and Games] rangness:
Any email.apk for new ICS ROM ports on NS4G yet? Thank you in advance! Live off this method.
[Android Apps and Games] somecanuck:
Yes, it's normal for it to do that even with frequency set to "never". It does that for me as well, and the service continues to run. I wish I could change the priority of the service to 11 instead of 4 so it's killed more frequently, but I have no desire to mess with the init.d scripts or run another app just for that purpose.

Startup can be removed using a program like Autoruns.
[Android Apps and Games] :
I've been using this app since you first released it. any idea when an ICS version will be ready or an ICS Email.apk with policies removed? Thanks in advance, keep up the great work on your app.
[Android Apps and Games] defro:
The new email.apk in ICS is AMAZING! I tried it on my N1 using this alpha build:

http://xdaforums.com/showthread.php?t=1348670

It would definitely be a worthwhile effort to port the new email app to gingerbread, so all the poor souls who can't upgrade can at least get this app.
[Android Apps and Games] gessi2000:
Can anyone provide a link to email.apk v3.0.0.1 without Exchange security?
[Android Apps and Games] lwestfall:
Font size

Thanks for this helpful app! Is there a way (in the app or with some workaround) to decrease font size for messages & inboxes? I'd really like to see alot more on the screen at a time. Thanks!

LW
[Android Apps and Games] death2verizon:
hey shafty, now that i know enhanced email is yours, got a question for u.

i just got a new htc amaze last week so i downloaded the trial version of EE and it will NOT let me sync to my exchange server. (SSL unchecked - authentication failes, SSL checked - can't connect to server)

If i run touchdown trial it connects and syncs just fine. i just have to enable the "accept and trust all certificates" checkbox. (otherwise it fails also). as soon as i hit that box, it fetches me the certificate, i can login perfectly.

problem is, so far the ONLY place i have found that "accept all certificates" option is in touchdown. Everyone tells me i should even have that setting in the stock email that came with the phone. I'm pretty sure i should definitely have that option in EE, but it's simply not there. I have even tried flashing just about every other ROM available, still no "accept all certificates option"

What the hell am i doing wrong?
[Android Apps and Games] britoso:
My EE has 'accept all ssl certificates' in server settings->incoming settings. CM7.253
[Android Apps and Games] death2verizon:
ohhhhh, good thing i asked =)

i was only looking for it during the account setup process.

So anyway, I installed the modded email.apk u have on the OP, and now i DO have that setting during the setup anyway. *shrug* wutever, at least thats fixed...

Still having a prob tho. your modded email.apk, still doesnt connect, even with that setting available now.

Is EE more "robust" then the modded email.apk, as far as security policies n stuff? if so i will go reinstall it and try to get it working now that i can enable that, cuz i'd much rather give u my money then the other guys

btw, this whole time, that other brand (which i will refrain from mentioning in your thread again) is working fine with the same password, etc.

whether it is running cuncurrently with EE, or even after uninstalling it

p.s. - when i say "security policies" im referring to bypassing them, not enforcing them, lol
[Android Apps and Games] Bangincrazy:
Just downloaded this. Works great. Thanks!
[Android Apps and Games] mgmind:
im currently running ICS 4.0.1 and i tried finding the email.apk using titanium backup but no luck... then when i try and install the email.apk using astro i get this message :

application not installed:

an existing package by the same name with a conflicting signature is already installed

i guess this doesnt work for ICS? i had this in cyanogenmod 7 and worked fine....
[Android Apps and Games] mgmind:
bump anyone?
[Android Apps and Games] TEK112:
What do you mean no luck? As in it isn't there or you can't uninstall it? It is right under Earth 6.1 and above Exchange Services 4.0.1. You need to uninstall (make a backup first), then reboot and then install the modified apk you have. At least, that is how it worked in previous versions. Or alternatively, you can jam a crowbar in your wallet and pay for enhanced email (I did) and have a fully supported app with updates.
[Android Apps and Games] mgmind:
when i look for it using titanium i see Email 4.0.1. and Exhange Services 4.0.1. but when i try to uninstall Email i get this error:

Cannot Remove System App:

Failed to Locate the apk file.

then if i just try and install the modified Email.apk and overwrite using Astro, i get

application not installed:

an existing package by the same name with a conflicting signature is already installed

any ideas what it could be?
[Android Apps and Games] jsomby:
I *think* that you have to go to system/app with root explorer etc and remove email.apk from there and put this one there. I *think* so, cant be 100% sure. At least that way the closed source email.apk worked.
[Android Apps and Games] TEK112:
How about opening root explorer and going into system/app and cutting emailgoogle.apk and pasting it in the sdcard folder and then rebooting? Make a clockwork backup first in case this upsets your system. I am just as new to ICS as are most, so old tricks may have consequences.
[Android Apps and Games] mgmind:
well i just did a factory data reset, then once i was fully booted i opened up

titanium, i found Email.apk, i finally got it to uninstall... i then installed the modded email.apk.. everything went smooth but now my email app keeps crashing. wont even find my emails...

im going to do another factory reset and try your method

is anyone successfully running this modded email.apk with ICS? i wonder if its just not compatible being as the new ICS email.apk is 4.0.1 and the modded email.apk is still 2.3
[Android Apps and Games] TEK112:
You may have to remove the other email.apks that are listed. Personally, I would not bastardize your set-up this way trying to integrate a gingerbread email client with ICS. I thought you were modifying the ICS email.apk.

If you get it to work, please post your results so others could benefit.
[Android Apps and Games] mgmind:
yes i uninstalled email.apk via titanium, then installed the modded email.apk via astro but the email app keeps crashing.. im going to try by going into system/app with root explorer remove email.apk from there and put this modded email.apk in there...

im not sure if this is going to do anything but i will keep you updated. i may have to just go with your suggestion and get enhanced email.. if i get that i will be able to bypass the exchange security correct?

update:

just tried going into system/app with root explorer remove email.apk from there and put this modded email.apk in there but same thing, email app keeps crashing... im starting to think someone is going to have to modify the email 4.0.1 apk to by pass the exchange security for it to work :(
[Android Apps and Games] TEK112:
Enhanced e-mail is excellent. I get the occasional force close, but it is nothing that hinders its performance. Updates are rolling out every week and yes, you can bypass local security and even spoof your phone to be something else. I have my phone show up as an iPhone to appeal to people at the company I work for.
[Android Apps and Games] mgmind:
Thanks, i instaled enhanced email on my ICS rom and everything worked fine..

on another note i tried installing this modded email.apk on my Oxygen rom following the same exact steps, (uninstall via titanium, install email.apk via astro) and everything works and i bypass the security but then after a while i start getting a bunch of forced close and cant open the email app anymore..

does this email.apk only work for cyanogen? on my cyanogen rom everything works like a dream...
[Android Apps and Games] TEK112:
No, I think it only works on android 3.0 and lower. I had it on my droid og running a non cyanogenmod based rom.
[Android Apps and Games] mgmind:
thanks, i'll try uninstalling completely again and see what happens...
[Android Apps and Games] schwinn8:
Keep in mind, everyone... this modified email app is NOT DESIGNED to be "installed"... you must leave the original one installed, and just replace the original email.apk with this one.

For experimentation purposes, I tried it the "install" way and it crashed all the time. The point is, you cannot do it this way... you must replace the apk manually.
[Android Apps and Games] shafty023:
Haven't written here in a while but glad to see people are still using my mod. Your explanation is correct. No one should try installing this mod, it needs to replace the existing one in /system/app
[Android Apps and Games] shafty023:
This should technically work in ICS except you would have to disable calendar/contacts syncing for the FC messages to go away. ICS made big changes to their sync adapter code which I fixed in my app "Enhanced Email" but which this mod does not have fixed.
[Android Apps and Games] shafty023:
Accept all certs is definitely an option during account setup. It is a checkbox near the bottom of the screen. By the way, it's possible at the time you wrote your post that I had an older version of EE trial on my site. You should try now as it is based on the latest EE code.
[Android Apps and Games] ravindrank:
Thanks :) yes it was all fine 4.0.0 but sync causing issues in 4.0.3 ...btw I was using on alpha ics on my galaxy tab

Ravindran K

Sent from my Samsung Galaxy Tab
[Android Apps and Games] TEK112:
Support the dev and download enhanced email. Syncing with ICS is fixed.
[Android Apps and Games] steadicam:
Secuity

I couldn't agree more. I have been given this line of bs yet the directors\'s iPhone doesn't have the ability to be locked remotely or the presidents iPad. But god forbid I have my calendar unlock. Lets grow up most of use don't deal with the launch codes for our nation.
[Android Apps and Games] jazzboyrules:
Running rooted odexed stock 2.3.4, Email good but Calendar not syncing

Hi, I downloaded the version 2.3 of Email.apk in your first post.

I am running rooted (odexed) stock 2.3.4.

1. I renamed the existing Email.apk and Email.odex to Email.apk.bak and Email.odex.bak and copied your modified Email.apk to /system/app

2. Email didn't start immediately,it kept on force closing. So I rebooted, set up my email account again and now the email fetching is happening correctly.

BUT, now my Exchange calendars are not visible any more. My earlier Email.apk verison was 3.0.0.1 and this version is 2.3. Could that be the reason? I have the calendar sync enabled in the settings but still can't see them.

Can you please provide a fix so that I am able to sync my exchange calendars as well?

Thank you.
[Android Apps and Games] milksky:
Hope it can work well in my phone
[Android Apps and Games] X-Stranger:
Have removed Exchange security from native phone Email application on my GSMART G1345 following these steps:

1. Pull Email.apk (and Email.odex if you have stock ROM as I have on my device) from /system/app and put them into safe place just in case you want to restore original application version

2. Backsmali classes.dex from Email.apk archive (or Email.odex in my case, don't forget to use -I option for backsmali). For this operation yoy might also need to to pull some other files from /system/framework folder - backsmali output can help you detect what exact files. In my case I had to pull android.policy.odex, bouncycastle.odex, core.odex, core-junit.odex, ext.odex, framework.odex, services.odex

3. In resulting out folder find SecurityPolicy.smali file and fix methods called IsActive, and IsActiveAdmin similar to this:

.method public isActive(Lcom/android/email/SecurityPolicy$PolicySet;)Z
.registers 2
.parameter "policies"

.prologue
const/4 v0, 0x1

return v0
.end method

.method public isActiveAdmin()Z
.registers 1

.prologue
const/4 v0, 0x0

return v0
.end method

4. Smali out folder to classex.dex file (this should be done for both cases, even if you have Email.odex)

5. Using 7-zip add classes.dex into source Email.apk. You might need to resign this file if there was classes.dex previously (in my case I didn't need it)

6. Remove old Email.apk (and Email.odex) from /system/app folder (you need to have your phone rooted for this to remount /system/app to read-write).

7. Push new Email.apk to /system/app folder, chmod 644 onto this file. Reboot

8. Open Email application, create Exchange account and have no lock anymore!
[Android Apps and Games] Cygnust:
Hi,

i'm interested in your method, would it work with ICS email client ?

Is there any other solution for ICS ?

Thanks a lot
[Android Apps and Games] X-Stranger:
Well, have not tried with ICS, but you could test. Or send me your Email.apk and I'll take a look.
[Android Apps and Games] TEK112:
Yes, buy the app "Enhanced Email" and support the developer who first created this workaround. No chance to break anything and Enhanced Email is more feature filled than the stock ICS email client.
[Android Apps and Games] Cygnust:
I'm considering it i'm gonna test the trial :)
[Android Apps and Games] lpasq:
True but my EE full market app yet plays nice with ICS mail widget.
[Android Apps and Games] sids911:
Exchange Policy Enforcement or is it the Zenprise MDM??

Hi All, I feel I can ask this question here in this threat, as it is somewhat related.

I have my device SGS2 synchronized with our corporate network. Our corp uses Zenprise for MDM solution which has me running this ****ty app zenprise for employees always running on my device.

Also, when I configured the inbuilt email app - it asked me all sort of privileges and became an admin for my device.

now the question - when I rooted my device, somehow corporate admins knew about it and I got an email from them that it has been detected that I am running rooted device and I should remove the root or take it to the service station.

How do they find THIS out? Is it zenprice MDM that reports rooted device or is it Exchange Security policies???

Now this time - after a flash I did install the zenprise MDM but I have not configured email . I simply used Touchdown and now I dont have to use PIN on my device lock and I doubt how many exchange SPs are enforced anyways. But I really do not know if I should try rooting again. My only reason to root is that Titanium Backup Pro which does a wonderful job and I am completely comfortable using it.

So, is it the exchange or is it the MDM which detected if the device is rooted? Any ideas?
[Android Apps and Games] TEK112:
Whichever app asked you to allow your company to become a device admin is the one that is logging everything you do. Most likely it was exchange that granted the admin access. They do this so if you lose your device the exchange system can act as an admin and wipe sensitive data from your device.

Also, you do not need root for titanium to backup/restore user apps. Root gives you extra abilities like modifying/removing system apks and so on.

---------- Post added at 09:23 AM ---------- Previous post was at 09:23 AM ----------

I have no idea what that is.
[Android Apps and Games] lpasq:
Enhanced Email v1.33 running on my tablet Android version 4.0.3 is not compatible with the email widget that comes as part of Ice Cream Sandwich for home screen scrolling display of the stock Email.apk accounts. However, the stock calendar widget works to display EE's account's appointments.