yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] TEK112:
I think I know what you mean. You want EE to release a scrollable widget instead of the static 1x1 they have showing the unread number? If that is the case, have you thought about emailing the dev. He is pretty good about responding.
[Android Apps and Games] Cygnust:
Hi,

I tried enhanced email and it's a great app but it's oversized regarding to my needs .. moreover i'm upset to discover this app 10 days after the price raised :(

I just need to bypass this f...g exhange security ..

Sorry if I ask too much but isn't it possible for you to update the email.apk in the first post with the ICS one ?

Thanks
[Android Apps and Games] xtonda:
Hi shafty,

since your mod is over a year old I want to make mod based on current sources. I downloaded your modified sources from first post and fresh sources from gingerbread branch of CyanogenMod android_packages_apps_Email repository on GitHub.

I found your comment and modification of com.android.email.SecurityPolicy.isActive(PolicySet policies) method (which is the only code modification I found) in your sources.

But in other threads on this topic patching of other methods like isActiveAdmin(), remoteWipe(), setActivePolicies() and other classes is suggested, the most complex patch I found is here http://xdaforums.com/showpost.php?p=9552887&postcount=280.

So my question is what is really necessary to modify to prevent annoyances like PIN enforcement, device encryption, remote wipe, etc. but keep server happy.

Thanks.
[Android Apps and Games] xtonda:
OK, this is my attempt. based on current CyanogenMod Gingerbread sources, built for HTC Desire (because it has same CPU and screen resolution as my Dell Streak), seems to work on my dell streak.

Email.apk and modified source files are attached
[Android Apps and Games] shafty023:
That's because EE syncs all calendar data with the stock calendar app. But all emails are handled internally within EE. Android doesn't provide a public database for emails whereas it provides a public database for contacts and calendar (the stock apps use this same public database). That's why the stock ICS widget won't work with EE for emails but the calendar one does. I hope that made sense
[Android Apps and Games] shafty023:
Ya there's definitely more than just modifying SecurityPolicy. There are changes that need to be made in EasSyncService.java, ExchangeStore.java, and ProvisionParser.java. I think those are the 4 files off the top of my head. Biggest one is definitely ProvisionParser.java in parseProvisionDocWbxml() method.
[Android Apps and Games] longthanh:
where do i find your Enhanced Email and more information on it?
[Android Apps and Games] TEK112:
Probably where you would least expect it:

https://play.google.com/store/apps/...51bGwsMSwyLDEsImNvbS5xcy5lbmhhbmNlZGVtYWlsIl0.
[Android Apps and Games] xtonda:
Being curios I compared sources you published in first post and sources I started with (fresh sources from gingerbread branch of CyanogenMod android_packages_apps_Email repository on GitHub) and unfortunately there is no difference in ProvisionParser.java and ExchangeStore.java. Difference in EasSyncService.java is only removal of dead code after SecurityPolicy.isActive(PolicySet policies) is changed to always return true.

Co please can you clarify this?
[Android Apps and Games] tebayo:
THANK YOU!!

Thank you very much for this modif. to email.apk. Being a paranoid user i am never comfortable giving my IT guy ADMIN control over my phone.

(NOTE: my thank button is not enabled-new user!!:p)
[Android Apps and Games] shafty023:
You're right. The copy I published here didn't contain all the extra bypasses I found and implemented in my paid app "Enhanced Email" :P

After I published the copy here I started working on my paid app. After lots of testing/debugging I ended up finding more bypasses required and implemented them in my paid app but never updated this copy. So while the copy here "works" to bypass most security policies it doesn't do them all.

EDIT

FYI, I'm trying to find time to take the Android 4.0.4 source code and implement the security policy bypass there as well. When I do I'll publish the source for it and a compiled apk. This mod would only work on Android 4.0 (ICS) and would not be backwards compatible. No ETA
[Android Apps and Games] Widget21:
I pledge $6 for this hacked app. Can't stand keying a pin each time I want to use my phone. I'm using SGS3 I9300 and on PICS 4.0.4.
[Android Apps and Games] TEK112:
Just buy enhanced email. It's his app.
[Android Apps and Games] xtonda:
Try this patcher http://xdaforums.com/showthread.php?t=1117452

I successfully used it with Galaxy Note.
[Android Apps and Games] ajadaah:
good subject

but i really want to know how to build the source code

please help
[Android Apps and Games] shafty023:
What OS are you using? (stock, sense, motoblur)

What version? (cupcake, donut, eclair,froyo)
[Android Apps and Games] thonl:
Should this work as an update.zip on a stock 2.2 Droid 1?

I get an error on verifying signature withe kanged_email_signed.zip that is up the thread.

Thanks!
[Android Apps and Games] shafty023:
This is a system app so you will need to have root in order to replace it.
[Android Apps and Games] thonl:
Even if I am trying to apply it from recovery? Didn't realize root mattered there.

Especially since the error was about unable to verify, and the same zip worked on my CM6 N1
[Android Apps and Games] serpentine009:
I am using an HTC Incredible with Stock Froyo 2.2 RUU installed running Sense.
[Android Apps and Games] dsMA:
Keep up the good work. It is so cool that there is a community out there that is willing to put in the effort to add missing functionality to the apps that come with the phone.

I am really looking forward to the folding moving feature to be added.

Will you continue to post your modifications to the the email.apk here in this post or do you plan on only giving them to the cm guys to be included in the roms?
[Android Apps and Games] TheTod:
I am running a CM6 rom from Cyan/Tazz v5 and can not for the life of me get this working. Have tried different methods but the intaller does not like this apk and stops the install. I am on an Eris platform. Ideas? Cyan/Tazz is a 2.2 ROM.

Have tried the rm Email.apk and then add this one and does not change in the fact that I get prompted for Exchange wanting rights to my phone. I don't remember that at all with 2.1.

Help?
[Android Apps and Games] rockuman_ex:
I am using geom411 stock frg33 rom. my n1 is rooted and unlocked.

All i need is to be able to "select all" messages. i can do "deselect all" which is of no use for me.

I tried flashing the update.zip from recovery, rebooted, no go.

and i tried pushing the email.apk to /system/app/, rebooted, and still to no avail.

Please help.
[Android Apps and Games] gIMpSTa:
You would need a custom recovery image to be able to flash this, so yes root totally matters in that sense.
[Android Apps and Games] shafty023:
This will not work on sense. They don't have the required framework code.
[Android Apps and Games] shafty023:
Added functionality would only be submitted to the CM repo to keep things consistent. Especially since a lot of the new features added thus far to email have been by the CM crew
[Android Apps and Games] shafty023:
If you are in fact correctly replacing the file you should be able to see select all. Please view the output from logcat to make sure errors aren't being thrown when you overwrite the existing Email.apk
[Android Apps and Games] rockuman_ex:
Thanks for the reply.

This is what i did.

Rebooted into recovery, and flash this file: http://dl.dropbox.com/u/458252/kanged_email-signed.zip

Rebooted, and still can't get the select all.

Then i downloaded the Email.apk from the first post.

Used Root Explorer to copy that Email.apk and pasted it into /system/app (replacing the existing file).

Changed the file permission to All Read, and User Write and none execute (as per all other files).

I even tried to change the permission to all read, write and execute and still can't get that "select all"

something i do wrong?

thanks for the help

edit: i'm using this rom (FRG33) from http://xdaforums.com/showthread.php?t=714184

edit 2: i think i know where the problem was. this rom has "EmailGoogle.apk" instead of "Email.apk"

So i renamed your "Email.apk" to "EmailGoogle.apk" and replace it on /system/app/, then reboot, all good now :)

Thanks
[Android Apps and Games] jprebb:
I had to do this as well...droid explorer shows it as email.apk but when you got to properties it says emailgoogle.apk. So I changed it to emailgoogle.apk and copied it over to the /system/app directory and set permissions as you did.

When I go back in to setup my exchange account it prompts me to resetup the PIN, which is what I'm trying to circumvent in the first place. Select all is nice, but I would much rather rid myself of the PIN.

I've tried removing the exchange account, then removing the PIN in security, then copying over the new email.apk (both as EmailGoogle.apk and as Email.apk) then setting up the exchange account and I'm always prompted that the server requires that I allow it to remotely control some security features.

Can anyone help me out with this? Thanks!

JP
[Android Apps and Games] dsMA:
Could you link me to the CM repositories?

**update**

is this the link to the email app:

http://github.com/CyanogenMod/android_packages_apps_Email

And if so how do I use the information on that page?
[Android Apps and Games] shafty023:
Yes that is the correct URL. There isn't anything you can use on that page. It is the source code for Email. You would need to sync the entire Android src and then you could individually compile the Email src.
[Android Apps and Games] dsMA:
So you submit changes to the source code back to CM and then we wait for them to include the changes in their latest release...is that how it works?
[Android Apps and Games] celestialspring:
Same here.

The pesky code is gone now :)
[Android Apps and Games] shafty023:
Correct. Code changes are pushed to CM repo to be accepted and then released in next release.
[Android Apps and Games] pwvandeursen:
Used this app for the past few weeks and worked perfectly. Since yesterday however, if I reboot I loose the email account. need to fill in the account again, and all is in order. Anybody know what I need to do to make it permanent?

thanks

Patrick
[Android Apps and Games] xtonda:
Email.apk is part of Android system and cannot be built using SDK like ordinary apps, it gets built during complete Android build which can be done only with Linux. Setting build environment for build to succeed is not trivial, it took me several days.

If you really want to do that, search for guides to building Android system.
[Android Apps and Games] B4yron:
Galaxy Ace Plus

I got a Samsung Galaxy Ace Plus with android 2.3.6 from work. I'm a bit new to android, I know more about iOS because I have an iPad for some time now.

Do I need to root my device to install this (Is this like using a filebrowser and replacing the existing Mail.apk or can I simply mail it to my gmail and install it, I mean will it replace the current mail app or install it next to it)?

Is there a free way to backup the device or do you need titanium backup so I can restore the device to the state I got it in if I have any problems?

Thanks in advance,
[Android Apps and Games] Kart_pan:
Any possibility this can be done for MIUI v5 email.apk
[Android Apps and Games] xtonda:
Just use patcher I linked few posts earlier.
[Android Apps and Games] audino:
I hate the pin code entering, therefor Ive treid your patch but Im getting following issue:

Unable to remount system partition for writing (are you root?)

Its an S4 with this rom http://xdaforums.com/showthread.php?p=45444308#post45444308

and root access trough SuperSU.
[Android Apps and Games] cityhunter62:
Thanks for this. Still useful when you're stuck with a Xperia Play Gingerbread 2.3.7, and all email apps on the store requires you an updated version of Android ^^
[Android Apps and Games] shafty023:
If you install Email.apk via "adb install Email.apk" then you will encounter the issue you are having. You have to mount /system read-write and copy it "Email.apk" over to /system over the existing file. This makes it permanent.
[Android Apps and Games] WillJitsu:
Will the Email.apk without Exchange security at the beginning of this thread be updated as cyanogen adds features to the Email app?
[Android Apps and Games] shafty023:
It can if enough people want it. Then the question would be should I release on major feature/bug fixes or when CM gets another official release....
[Android Apps and Games] WillJitsu:
Gotcha. Right now I'm having to choose between your modification and the ability to modify the account color (which is really nice!) in the Cyanogenmod version. Thanks for your time!
[Android Apps and Games] shafty023:
I'll sync the latest src and add my mod into Email.apk so you can have both :)
[Android Apps and Games] WillJitsu:
You, sir, are the man! Thank you very much!
[Android Apps and Games] malemutekid:
This is just what I was hoping for, THANKS!
[Android Apps and Games] shafty023:
Ok done. Uploaded and posted to Page 1.

[EDIT]

Account color is pretty cool. Didn't realize that was added already.
[Android Apps and Games] pwvandeursen:
Song what. Is the easiest way to update the mail app? Down well again remount and will all the settings remain?

Seems I was drunk as hell, or my text prediction was off, and I didn't check before sending..... So here it goes again

So what is the easiest way to update the mail app. Do I download the current apk, remount and push it again to the phone. If I do that will all my settings remain on the phone?

thanks
[Android Apps and Games] Th3heretic:
Thanks for the up, was trying to find this.
[Android Apps and Games] shafty023:
I have absolutely no idea what you tried to say
[Android Apps and Games] shafty023:
Lol no prob, I've had many of those nights where I don't make any sense. Ya just remount and push. And yes you will have to set up all accounts that were configured with Email.apk, not gmail.
[Android Apps and Games] iceman4357:
I assume this will only work for the 2.2 android phones and not the 2.1?
[Android Apps and Games] shafty023:
Yes bc Android 2.1 can use lockpicker to remove the pin lock requirement. Only in Android 2.2 is there Exchange security policy implemented. And if your device is running sense or motoblur this likely wouldn't work for you anyways.
[Android Apps and Games] selkara:
can someone help me a create a zip image from the new APK to install from recovery?

or can instruct how to do so?

many thanks
[Android Apps and Games] gibosn6594:
Is anyone working on fixing the lack of in-line forwarding issue in the E-mail app?

It's really sad that an Android phone can't read an e-mail forwarded by another Android phone.
[Android Apps and Games] shafty023:
Are you talking about a forwarded email appearing as a .eml attachment?
[Android Apps and Games] shafty023:
Why not just copy the Email.apk file to your sdcard and push it to /system/app/ yourself without the need for an update.zip file? That's essentially what those update.zip files do
[Android Apps and Games] gibosn6594:
Yes, and Android can't handle reading .eml files.
[Android Apps and Games] MrScoundrel:
exception on running Email.apk

I rooted my 2.2.1 Nexus One with rageagainstthecage as described elsewhere on this forum, copied your Email.apk to /system/app/EmailGoogle.apk, set its permissions to 644 like all the other apps in that directory, and now I get this exception when trying to set up an Exchange account. Any ideas?

I/ActivityManager( 87): Starting activity: Intent { cmp=com.android.email/.activity.setup.AccountSetupAccountType (has extras) }

D/dalvikvm( 1534): GC_FOR_MALLOC freed 6530 objects / 300824 bytes in 33ms

I/ActivityManager( 87): Displayed activity com.android.email/.activity.setup.AccountSetupAccountType: 291 ms (total 291 ms)

I/ActivityManager( 87): Starting activity: Intent { cmp=com.android.email/.activity.setup.AccountSetupExchange (has extras) }

D/AndroidRuntime( 1534): Shutting down VM

W/dalvikvm( 1534): threadid=1: thread exiting with uncaught exception (group=0x4001d7f0)

E/AndroidRuntime( 1534): FATAL EXCEPTION: main

E/AndroidRuntime( 1534): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.email/com.android.email.activity.setup.AccountSetupExchange}: java.lang.ClassCastException: android.widget.LinearLayout

E/AndroidRuntime( 1534):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)

E/AndroidRuntime( 1534):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)

E/AndroidRuntime( 1534):	at android.app.ActivityThread.access$2300(ActivityThread.java:125)

E/AndroidRuntime( 1534):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)

E/AndroidRuntime( 1534):	at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime( 1534):	at android.os.Looper.loop(Looper.java:123)

E/AndroidRuntime( 1534):	at android.app.ActivityThread.main(ActivityThread.java:4627)

E/AndroidRuntime( 1534):	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( 1534):	at java.lang.reflect.Method.invoke(Method.java:521)

E/AndroidRuntime( 1534):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)

E/AndroidRuntime( 1534):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)

E/AndroidRuntime( 1534):	at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 1534): Caused by: java.lang.ClassCastException: android.widget.LinearLayout

E/AndroidRuntime( 1534):	at com.android.email.activity.setup.AccountSetupExchange.onCreate(AccountSetupExchange.java:147)

E/AndroidRuntime( 1534):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)

E/AndroidRuntime( 1534):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)

E/AndroidRuntime( 1534):	... 11 more

W/ActivityManager( 87): Force finishing activity com.android.email/.activity.setup.AccountSetupExchange
[Android Apps and Games] rooshach:
Connection / Security error

For some hours my "new" email.apk was working properly. But now, on every sync i get the error

"Verbindung zu Server kann aufgrund eines Sicherheitsfehlers nicht geöffnet werden" ...

Transl. "Connection to server can not be opened, security error"

Any ideas ?

HP.
[Android Apps and Games] shafty023:
Do you have it set to PUSH or on a check interval
[Android Apps and Games] cybaba:
Installing on 2.2.1

Thank you for posting this !

I've already applied the 2.2.1 update.

Is it ok to replace Email.apk on that with this one?

Could you give more information about how to replace the apk file ?

1. Any specific terminal app to use?

2. whats the command to mount /system as r/w ?

thanks again!
[Android Apps and Games] defro:
Thanks to Authors and Modder

Worked on CM 6.0 N1.

adb remount

backup the original:

adb pull /system/app/Email.apk ./email_old.apk

adb shell rm /system/app/Email.apk

adb push <my email apk file> /system/app/Email.apk

adb shell reboot

I just hope to hell there's no shady code in there... ;)

h**p://yro.slashdot.org/story/10/09/30/1640223/Many-More-Android-Apps-Leaking-User-Data
[Android Apps and Games] bguild:
Hi Shafty023, what is the level of work required to retrofit corporate email search into this Email.apk? It seems lots of folks want to be able to search Corporate Email, but Google, but it seems the only way you can get this functionality is if the OEM codes it into their specific email application.

People have been asking for this feature for a while. It's really one of the main features which makes it difficult for business users to convert from BB to Android.

code dot google dot com/p/android/issues/detail?id=4709
[Android Apps and Games] jnizzle:
Is this .apk compatible with stock FRG83? I am using stock froyo rooted. It force closes everytime I choose either POP,IMAP, or ActivSync.

Is there something particular i have to do? I renamed email.apk to EmailGoogle.apk and cp'd it to the system/app. Made sure the permissions were set to 644 and rebooted.

My exchange connection can no longer be established with the latest update from Google, 2.2.1. I keep getting a "Cannot open connection to server." Funny thing is, i tried a few email.apk's that were supposedly from previous builds and they have the same results in terms of not being able to connect. Although they do no force close.
[Android Apps and Games] defro:
Update for 2.2.1??

I have this working with nightly 186 (FRG83 release 2.2.1) - which is actually pretty stable overall.

Question to shafty023:

Do you have any plans to add this "fix" to the new 2.2.1 release (and most recent CM tags) ??

I believe forwarding was fixed in 2.2.1 code so it would be good to roll that in at least.
[Android Apps and Games] cwaters:
Can you elaborate? I downloaded and installed your Email.apk on my unrooted HTC Incredible this morning. It seems to be working fine. I'm using it to sync up with my MSN/Hotmail account. Separately, I'm continuing to use the HTC Mail client to access my Exchange Server account.
[Android Apps and Games] davidwithers:
Just thought I'd add that if you already had a lock enabled, you need to remove it by going into settings > something and security > screen lock > type your code and it will be removed.
[Android Apps and Games] weaverinva:
HTML email support for Exchange 2003

Great work on this email.apk. Thank you so much.

Sorry to be a noob, and I think this has been mentioned elsewhere, but might you consider somehow enabling the html viewing that was in previous versions of email.apk?

There is much discussion but html email can be shown with exchange 2003 SP2 servers and seems that it was enable in a hacked email.apk some time ago.

Any work towards that would be appreciated!!!

Thank you so much.

All the best,

Mike
[Android Apps and Games] Synthoid:
I'm running stock but rooted FRG22D on a Droid 1, and Odexed. Does this required a deodexed ROM? I'm guessing yes because it doesn't even appear as an installed app.

Edit: It does work on odexed roms. Forgot to change permissions, once I did that and rebooted it showed up. However it FC every time I tried to set up the exchange account. So then I renamed EmailGoogle.odex as well as DroidEmailPolicy.apk and DroidEmailPolicy.odex, rebooted and now the account is setup and working. No more prompts at every reboot to configure the exchange server security settings. Thanks!
[Android Apps and Games] sshark:
ROM: Evo, Froyo 2.2. Rooted 3.28, Sprint/HTC Odexed --- Stock.

ROOT status: Rooted, Nand-unlocked, S-OFF

Overclocking/underclocking: None

I installed various versions of AOSP Email app which has capability of adding multiple exchange accounts.

In previous version of Email.apk (2.1), I could receive push notifications without background data or auto-sync enabled.

In this version (Email.apk, 2.2), after adding couple of Exchange accounts (Hotmail, Work) and setting them up to push, when I turn off both background data, performance of my EVO drastically decreases.

Linpack score (when background data [B]ENABLED[/B]): ~33

Linpack score (when background data [B]DISABLED[/B]): ~2.2

That's difference of approx 31 MFLOPS

This difference is noticeable even when I use any apps when background data is off. Performance is restored when I turn on background data.

I have tried all sorts of versions - Pure AOSP, CM6 Mods, Epic stock...I can reproduce same results. I have tried this on clean (without any other downloaded app) ROM as well.

I am wondering if anyone else is able to reproduce this and knows why this could be happening? Any response is appreciated!

~sshark