yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] arkaodd:
Maybe its becuase I'm up waaaaay too late screwing with this, but I can't get astro to view these as installable APK's.. and I can't even get SU to dump them into /system/app/email.apk.

I was hoping they'd fix my wife's LG ally email force close issue..

Also, I am adownloading a whole Rom.. maybe that'll fix it too.. PM me if you can tell me what I'm doing wrong.. I'd be glad to listen humbly.. (or mirror files, I run a private LAMP box if anyone wants some file hosting)
[Android Apps and Games] Virnik0:
I am maybe rude, but who may want hosting from person which is claiming that his hosting is running on POSIX platform, but can't handle basic linux commands in the first place?

Sent from my GT-I9000
[Android Apps and Games] Loccy:
I seem to be having problems getting my IMAP account running on the latest version of this. A lolcat yields the following:

W/Email ( 1423): Last network activities:

W/Email ( 1423): * OK [CAPABILITY IMAP4rev1 UNSELECT STARTTLS ID CHILDREN NAMESPACE IDLE] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information.

W/Email ( 1423): 1 CAPABILITY

W/Email ( 1423): * CAPABILITY IMAP4rev1 UNSELECT STARTTLS ID CHILDREN NAMESPACE IDLE

W/Email ( 1423): 1 OK CAPABILITY completed

W/Email ( 1423): 2 ID ("name" "com.android.email" "os" "android" "os-version" "2.2; FRF91" "vendor" "HTC" "x-android-device-model" "HTC Desire" "x-android-mobile-net-operator" "[my mobile provider]" "AGUID" "[big long string of chars]")

W/Email ( 1423): * ID( "na

D/SurfaceFlinger( 177): Layer::setBuffers(this=0xa289f0), pid=1423, w=1, h=1

note the last line W/Email line being cut off - that's actually what I get, not a copy and paste error. The only modification above is mobile operator and the AGUID parameter (which was a random string of chars followed by an equals sign - removed just in case it's device specific or is somehow linked to my ID/details). I suspect something's crashing out during the initial negotiation with the IMAP server?

The same email account works fine in the stock Sense email client (I'm running a Sense ROM) and in older versions of your email.apk.
[Android Apps and Games] tvjunkie:
Works quite well on Samsung Galaxy with Froyo 2.2.

But I see one issue: the icon in the homescreen and menu doesn´t display the number of unread documents anymore. The icon just doesn´t change whenever a new mail arrives.

Is there any possibility to change this behaviour?
[Android Apps and Games] shafty023:
Interesting enough I actually got quite a few comments from people getting confused with the old message saying it needed to activate a local device admin. People assumed it wasn't working for them so I replaced that text with what you see now. Since this mod can never be released mainstream into any official ROM and will live as an underground release for those who want it it'll likely live as-is with the current text. I released the entire source code for my mod on page 1 in case someone wanted to search for that text String to verify nothing funny is going on.

As far as the icons I noticed that as well. It is likely due to changes in framework-res.apk in gingerbread that causes the icons to be wrong. If I get some free time at some point I'll take a look at it. The account color thing is likely because you are running a gingerbread rom (probably compiled from the CM source code) that doesn't yet include any of the account color code. That wasn't added by Google and was added by the CM team (likely mtwebster). There's nothing you can do about that except wait for it to be added to the CM src code hopefully at some point.
[Android Apps and Games] shafty023:
It likely means the gingerbread source for this Email app requires something in the framework files that your Sense ROM (froyo) does not have. That's my only guess and the only way to validate it would be for others running Sense to verify this newest mod doesn't work for them as well for IMAP
[Android Apps and Games] shafty023:
Doesn't the Samsung Galaxy (you didn't specify which model you have) have TouchWiz UI? If so that would be the obvious reason why you can not see total unread emails. That's because that feature is not built into the stock Android Email code and is something Samsung added into their own applications (not something a mod will have access to). Just a guess.
[Android Apps and Games] pkx:
Nexus S user here, the stock app in /system/app seems to be EmailGoogle.apk

I renamed Email.apk to EmailGoogle.apk and overwrote what was there.

Removed device security, added back my exchange acct. Got the notice to just hit OK to bypass security. Shortly thereafter I once again got the notification that I needed to allow a device admin and choose a PIN :(.. so it seems it did not work for me.
[Android Apps and Games] tvjunkie:
S I9000.

I wasn´t aware that this feature was a Samsung mod. Google should pick up it. This is really useful!
[Android Apps and Games] tvhoesel:
Thank you!

It worked for me on the MicroMod's Gingerbread v.18 ROM.

I replaced Email.apk in ..\system\app with the package I downloaded here.

Then flashed the complete ROM and no Exchange Security check.

Note: after setting up your exchange account, the systems reports that you need to set the security policy. Just reject it and it works like a charm...
[Android Apps and Games] laolaxyz:
I tried this mon with Darky's Gingerbrad edition - no success (can't connect to any server after replacing the original Email.apk with the moedded version).

Any suggestion ?
[Android Apps and Games] shanyel:
attached an updated Email.apk in a recovery package.

you can also push it via ADB (just grab the APK from the zip file)

already patched w/o security enforcement

enjoy
[Android Apps and Games] jaredt2:
I've been unable to connect with any of these as well. The only one that has worked for is the one from this thread

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

but unfortunatly its the Email.apk from CM6, not 6.1 or 7, which basically means you don't get that fancy option to select the account colors.
[Android Apps and Games] lgmayka:
Since my new HTC Evo Shift 4G couldn't handle Hotmal ActiveSync, I loaded this email.apk. It correctly displays mail and calendar, but not contacts. Unless the contacts are someplace other than People?

EDIT: The contacts showed up--it just took a while. However, they don't have photos. :(

EDIT2: No HTML. Not even the URLs are clickable. This may be the killer. I don't know whether I can live with pure text email, without clickable URLs.
[Android Apps and Games] laolaxyz:
thank you - but in the meantime I had success with this...

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

I patched the Email.apk (whis was delivered with the Darky ROM) just after a clean install (incl. wipe) of the Darky ROM and this works perfect now (even a separate program (global adress book) can access to the Exchange server without forcing security policy...
[Android Apps and Games] shanyel:
I'm using that exact tool...
[Android Apps and Games] hotttoddie:
Still not working for me - im not sure what my company is doing, but i still get the error message : This server requires security features your phone does not support.

Is there any kind of logs/debug output I can examine to figure out what policy they are looking for? (and in turn feed this back to the community?)

-t
[Android Apps and Games] c-dric:
Hi,

previous version was working perfectly for me, so i tried this one, and there is no more client certificate option...

Is there a way to put it back ?

Thanks in advance

c-dric
[Android Apps and Games] aktorun:
Nexus S

2.3.1

Change the Email.apk to EmailGoogle.apk and pushed with adb

recreate my Exchange account

did not work

keep asking PIN code
[Android Apps and Games] webwude:
Hi!

I replaced stock email app with this one... everything is working fine. But be aware: after replacing, all barcode apps stop working (force close). It seems that there are some dependencies... if I restore the email app back to stock, those apps are working again. After all - the advantage of disabled pin overrules this matter in my case ;)

All the best,

ww
[Android Apps and Games] shafty023:
You have to remember, and I believe I put this in the first post, that my mod does not lie to the exchange server and tell it that the email client supports ALL security profiles. It still only supports whatever is implemented in the code. In order to lie to the exchange server all of those security profiles would have to be added to the code because when you're authenticating you have to send these profiles to the Auth server. The Auth server then decides if you will be allowed access based on what you support. If they have the "allow unprovisioned devices" checkbox unchecked then you will not be allowed as you do not support all security profiles that they require.
[Android Apps and Games] shafty023:
It will likely be added back in to the CM repo as more CM features are merged into the gingerbread branch. It wasn't "taken" out but hasn't been added back in. A lot of these features are not Google standard features, they were added in by developers on the CM team contributing to the project.
[Android Apps and Games] shafty023:
Anyone who has an issue should be watching their logs to find out why it's not working. If you are getting asked for a pin that immediately tells me you still have a copy of the "stock" Email.apk installed and the one you pushed did not get installed. Just pushing an apk to /system/app or /data/app does not mean it will be installed. It likely collided with your existing or previous Email.apk that had different signatures then what I signed this one with.
[Android Apps and Games] shafty023:
Has anyone else seen this issue? I have all my barcode apps working fine. You should tail your system logs when a FC occurs to see exactly why it crashes. It should give you a stacktrace that will tell you what caused the crash.
[Android Apps and Games] pkx:
aktorun,

I had the same problem (same device and steps as you went through even), and I was going to ask shafty to elaborate, but I seemed to have figured it out. I just went into Root File Explorer and clicked on the EmailGoogle.apk and it asked if I wanted to install. I said yes... then removed and re-added my exchange account, and now I can use the pattern lock of my choosing [or no security at all, but I prefer pattern lock] instead of a PIN code. Thanks shafty!
[Android Apps and Games] martijndutch:
Hi all. I'm using the 'first' modded email.apk on my desire with the original 2.2 rom. It installed using Astro and works fine side-by-side of the original email client. I now have three clients; gmail,. mail (original) and E-Mail (the modded from this thread). Only issues I experience are:

* Sometimes the mail client seems to be frozen. I can still access email etc, but no new mail arrives. Going into flight mode and back usually fixes that. Seems to be related when going from wifi to 3g

* In contacts, corporate directory does not work. When I access that function, I get the connection wizard from the original mail client

I see on the first page of the thread that there is a new version. I have the following questions

* Where can I download the new APK? Or do I need to compile myself (no clue how, load it in eclipse?)

* Does it work on Android 2.2?
[Android Apps and Games] lgmayka:
Why was email.apk removed from post #1?
[Android Apps and Games] shafty023:
whoops that was a fudge on my end. If someone else can post it I'll add it back to the first thread. My bad everyone. My development environment is being used for some work I'm doing so I don't have the Email src ready to be compiled right now.
[Android Apps and Games] Virnik0:
Hello shafty, can you compile email.apk with colors settings included? Thanks a lot :-)

Sent from my GT-I9000
[Android Apps and Games] Metalazzo:
Indeed it would be nice :)

Like you, I hate entering a pin code to read emails... For the moment, nothing worked on Oxygen 2.0RC6 (which is great btw) :(
[Android Apps and Games] kovjanos:
Finally I re-compiled the code from op but I got

error message. Anyway, here is the apk:

R, Janos
[Android Apps and Games] shafty023:
Finally got my dev environment into a suitable state and recompiled the modded Email app. You can grab it from the first page now.

Just a heads up to everyone. I'm working on a version with additional features (it'll also have the pinlock requirement removed) that I'm going to be releasing on the Android market as a paid app very soon. I'll also be taking feature requests for the paid app and will also be providing support to those that buy the app. I want to thank everyone that has enjoyed my mod as I'm sure everyone who has downloaded it hates the security features of Exchange as much as I do. I'm shooting for a price between $0.99 - $1.99 but haven't decided yet. I "hope" everyone will at least consider tossing the measly change my way in support and of course rate it 5 stars :) I'll be leaving this thread up with the modded Email.apk free of charge but it won't be updated anymore. Thanks everyone!
[Android Apps and Games] MasterMike1485:
This should support inc as well correct since its a base android app only one way to find out i guess
[Android Apps and Games] shafty023:
It does support the htc incredible. Already verified on a friends inc while back
[Android Apps and Games] kovjanos:
Waiting for Your app!

R, Janos
[Android Apps and Games] kovjanos:
I think this also contains the FORCE_RESULT_OK trick, but it still doesn't work. setting up the account I got that "a required sec policy not supported", but because of the the forced_ok_result it steps forward. What I got is just a black screen without syncing...

Janos
[Android Apps and Games] shafty023:
It's possible my new version corrects this but it's also possible your Exchange server requires a specific security policy that is not yet supported in Android.

How this works:

Email app connects to Exchange server and authenticates

Exchange server alerts the Email app that Security Policies are enforced

Email app acknowledges and authentication ends. This is when the Email app begins launching the "Local Device Admin" setup screen so it can enforce the security policies

My mod bypasses the Local Device Admin and acknowledges that supported security policies have been enforced even though they aren't

ActiveSync is initiated with Exchange server and a list of security policies that the Email app is enforcing is sent to the Exchange server

It is at this point that the Exchange server determines if it will allow you to sync or give you the error that you're getting

You see, it's the "list" of supported security policies that ends up getting you denied when syncing. Exchange will allow you to authenticate as long as you have the right user/pass/domain. But it will deny you the ability to sync if you don't have a required security policy enforced. This sending of the list of supported security policies is done every single time your phone tries to sync. It is not a one-time only thing. This is done in case the Exchange server decides to add a security policy or remove one.

It would REALLY help if you could find out which security policy your phone needs to support in order to allow sync. This would help so I might be able add support for that one to the list of supported security policies :)
[Android Apps and Games] kovjanos:
OK. I already set up adb and (perhaps tomorrow) I'm going to compile a debug version to see the policies as there are no policy errors in the log...

R, Janos
[Android Apps and Games] kovjanos:
This is from plain android 2.3 emulator, not CM7, but I think the issue could be the same:

V/EAS Parser( 400): Policy not supported: 913
V/EAS Parser( 400): Policy not supported: 912
V/EAS Parser( 400): Policy not supported: 915
V/EAS Parser( 400): Policy not supported: 916
V/EAS Parser( 400): Policy not supported: 917
V/EAS Parser( 400): Policy not supported: 918
V/EAS Parser( 400): Policy not supported: 919
V/EAS Parser( 400): Policy not supported: 920
V/EAS Parser( 400): Policy not supported: 921
V/EAS Parser( 400): Policy not supported: 922

Hope it helps.

R, Janos
[Android Apps and Games] britoso:
new version from today works fine as well. thanks
[Android Apps and Games] shafty023:
I think I have it fixed. Found a part of the code which deals with account security holds & security policies currently enforced on the phone. I'm holding off on releasing the new Email app on the Android market until I redo at least the icon to something different. Definitely don't want to release my mod on the market with the same old crummy "stock" icon lol. I'll hopefully have that spiced up and released on the market this week for sure.
[Android Apps and Games] e1design:
Gingerbread Support?

Greetings,

Does this application support Gingerbread, specifically MDJ's CyanogenMod 7 v2.4 and higher?

Peace...
[Android Apps and Games] webwude:
Can you tell use something about those "additional features" ;)

Regards,

ww
[Android Apps and Games] kovjanos:
waiting for that new release - even if its not 100% ready. Better to use a v0.9 to access emails/calendars/contacts than waiting for the v1.0 more times :)

Thanks, Janos
[Android Apps and Games] martijndutch:
Hi Shafty,

I just tried the recent compiled version, but I notice that I no longer can select a certificate. Importing the certificate into the phone storage itself does not work. The old version had the option (and as far as I know your apk is the only one that does that) to select a .p12 certificate file. I need this, as our company server does not accept connections without anymore :(

Or is there a way to get the certificate imported in Android (yes I know how to do that) and then tell the email client to use that specific certificate?

Thanks,

Martijn
[Android Apps and Games] shafty023:
Yes but the one released on here allows for backwards compatibility by setting the target sdk to 8 (froyo) rather than 9 (gingerbread).

To answer your question the currently posted Email.apk file should work perfect with no issues. I don't think Android introduced anything new in their sdk v9 that affects Email. I'm almost 99% positive they didn't.
[Android Apps and Games] shafty023:
If I'm not mistaken certificates has been moved as of Gingerbread into Android Settings->Location & Security->Credential Storage.

If that's not what you're looking for I could look into adding it to my paid Email app. It wouldn't be added prior to me releasing it on the market but I would definitely look into adding it. If you say it was in the previous version (froyo based src code) then it should be pretty easy to patch it into the gingerbread src which would cut down on time till I could add it to my Email app.
[Android Apps and Games] shafty023:
Improved method of bypassing Exchange security which "should" eliminate all sync errors relating to security policies not being implemented

Ability to set Exchange server port inline

Any new bug fixes or features added to the Email src will be immediately available in my mod. Never have to wait. You'll just get a prompt from the market a new version is available and ur up-to-date

The list actually gets longer when you count in all of mtwebsters additions he made to the froyo branch which I'll be patching in. He is/was a great contributor to the Email src and thanks to the nature of open source I can add it in here. I've done my part by releasing my source code as well so definitely not being a leecher lol.
[Android Apps and Games] rockuman_ex:
The new version is missing "select all" ?
[Android Apps and Games] shafty023:
Yup. That wasn't an "Android" feature. It was an mtwebster feature that was added. He's no longer dev'ing or has taken a break for a while. So I'm working on merging all of his useful changes into my email app. I've been going through his commits today and there's TONS of code that's gonna have to be merged in. I'm also porting features being committed to the Froyo branch over to the gingerbread source. All in all it's gonna be a LOT of coding but in the end we'll have a feature-rich Email app again.
[Android Apps and Games] rockuman_ex:
can you please upload his version here? i need the "select all" feature desperately as i get 100s of junk emails everyday. selecting them 1 by 1 on the trash folder to delete them is a tedious task :(

thank you
[Android Apps and Games] shafty023:
I don't have it anymore. That was on the froyo branch. Perhaps someone else still has it? Or maybe it's in a froyo CM rom like CM6.1.

Of course don't forget the Email.apk you find in CM6.1 won't have exchange bypass in it.
[Android Apps and Games] bryanchapman9999:
Can I use this with a MIUI rom?
[Android Apps and Games] kovjanos:
Any ETA?

Beside the policy bypass, the second most important feature could be to have a config option to enable debug messages :) - just in case if we will have new policies...

R, Janos
[Android Apps and Games] e1design:
Gingerbread email.apk

Greetings,

I tried replacing the stock email.apk file on MDJ's Cyanogen v7 Gingerbread with no luck. I renamed the original email.apk file to email.apk.original and copied your email.apk into the same system folder. When I ran the application it looked and responded with the same "your phone does not support.."

I tried restarting the device but still the same result. When I looked at your version under "Manage applications" it reported v2.3 which is the same as the stock email.apk; is that correct?

Do you have any suggestions? Alternatively, do you have access to the stock Gingerbread email.apk? I actually don't mind having to type in the PIN; I just don't want to have to user Moxier to get my work-based email.

Peace..
[Android Apps and Games] shafty023:
ETA on the paid application release on the Android market? If that's your question I'm expecting to have it released this weekend. I'll be sure and reply on this thread when I do.

Adding that menu option to enable Debug is actually a pretty good idea. I'd have to tie in the EmailPreferences object wherever debugging is at in order to make it work. I'll definitely look into adding that. Definitely better than sending someone a debug enabled version to install :P
[Android Apps and Games] shafty023:
I don't see why not. I don't believe MIUI roms change anything in the CalendarProvider that Email relies on. Give it a shot and let me know. Just make sure and back up your existing Email.apk before trying so you can revert if needed.
[Android Apps and Games] shafty023:
That's because you incorrectly installed the modded Email.apk. You can't rename the existing Email.apk because it shares the same application name "Email" as my mod and contains the same namespaces. You need to move the existing Email.apk off to your sdcard and remove the dalvik cache file for Email.apk which "should" be located in /cache/dalvik-cache/system@app@Email.apk@classes.dex . And when I say "move" to your sdcard I mean copy over to your sdcard and then delete the existing file in /system/app
[Android Apps and Games] shafty023:
You should be able to grab this from a CM7 Nightly. I don't have the stock anymore since the one in my source tree is modified already.
[Android Apps and Games] kitkatxda:
FWIW, as others have reported, it seems to lead to FC of barcode scanning apps: barcode scanner, google goggles are two I have that FC.

That's on SGS, Darky's ROM 8.1.

Happy to pay for it if it's a separate app, ie. it's not replacing the default email app - to me that'd avoid some of those issues (at least in my thinking if it's a standalone package it shouldn't stuff other apps up?), and let people still be able to obey security restrictions if they have to (with default app) whilst at the same time keeping your app.
[Android Apps and Games] martijndutch:
It's a bit strange. I can of course import my certificate into the phone itself, but I can't connect to Exchange when I do that. The old version of your APK allowed me to select a specific certificate, as long as the .p12 file is in the root of my SD (not really secure). It seems that I (and my 30.000 colleagues - I see a nice business opportunity here) have this issue but no other companies. Ow, extra info: Android is officially not allowed according our company policies...