yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] sshark:
I am not sure how many people are having issue noted in this bug-report, but whenever you have exchange account with push/background sync disabled, performance of phone degrades drastically.

http://code.google.com/p/android/is...il&colspec=ID Type Status Owner Summary Stars

Apparently, the change to fix this problem has been committed to the repository, does anyone know how to get the updated app?
[Android Apps and Games] djmcnz:
Are you using the standard adb driver or one installed by a "one click root" app of some description? Modified adb drivers report 0 data and >0 seconds although the files do get moved.

If not, another cause of this can be pushing to a non-existent mount point... make sure everything is mounted correctly and is r/w.
[Android Apps and Games] sleeper42:
SOLVED!

I've been looking for this forever... and it works!
[Android Apps and Games] phatdaddyz01:
Has this been updated to the latest email.apk that comes with CM6.1? I noticed that it now has an email widget (shows # of unread emails) & I would love to have that feature. The exchange security is still intact with CM6.1 though, so I'm not currently using that Rom. Please let me know if this has been updated with that feature.
[Android Apps and Games] JudasD:
My exchange server is on a corporate network and they do enforce the secuity policies. I was able to sync my email with this apk and bypass the password screen. The byproduct is that the calendar will not sync with exchange. I get an error that the calendar is currently not available and to check back shortly. Has anyone else seen this?

I searched the 21 pages of this thread and did not see this issue brought up. please forgive me if it has already been discussed.

Thanks,

JD
[Android Apps and Games] granjerox:
I've installed the email.apk with the update.zip method. Now the email app doesn't open. it shows an error saying "process com.android.email has stopped unexpectedly". I have an Samsung Galaxy S 9000 with froyo 2.2 JP0 ROM.

I don't know how to remount /system as rw to restore the previous apk that i've backed up.

Can you help me to backup it up or even better explain me why the new email app doesn't work?
[Android Apps and Games] webwude:
Install root explorer and mount the appropriate folder r/w and copy your backup back - should work.

I will try this email.app in a few minutes ;) JPO.

Greetings,

ww
[Android Apps and Games] RotteRotte:
Hi. Sorry for "hijacking" a bit, but I've posted some questions regarding hacks and Samsung Galaxy S here: http://xdaforums.com/showthread.php?p=9278786#post9278786

I see you were talking about Galaxy S, so we maybe help each other here :D
[Android Apps and Games] webwude:
Okay, it didn't work - i replaced email.apk (and later on delete .odex as well), reboot, app keeps crashing - i went back to the original app, which is working or at least not chrashing at start...

Regards,

ww

update: finally i managed to get the alternative email.app working. But personally moxier mail is more advanced...
[Android Apps and Games] RotteRotte:
Galaxy S

Will this APK work in Samsung Galaxy S 2.2?
[Android Apps and Games] webwude:
Yepp.

The following procedure worked for me (2.2 Froyo JPO):

- Root your device

- Install Titanium Backup

- Install Root Explorer

- Back up existing Email.apk (and Email.odex) with Root Explorer

- Uninstall Email App with Titanium Backup

- copy new Email.apk to System\App with Root Explorer

- install Email.apk (with Root Explorer)

- reboot

This worked quite well...

All the best,

ww
[Android Apps and Games] granjerox:
thanks I will try it !!!
[Android Apps and Games] RotteRotte:
Done deal

webwub: Thanks for the information pushing me to do this. Very nice to see that it works on Samsung Galaxy S 2.2 too! It works like a charm and now I have a fully functional e-mail without that stupid security lock.

My method was somewhat different:

- Install Titanium

- Install BusyBox

- Backup Email.apk and Email.odex by pulling them with ADB

- Deleted Exchange account, uninstall Email.apk with Titanium, reboot

- Pushing this threads Email.apk to /sdcard/

- Copy the Email.apk to /system/app via Busybox, since it's root (busybox cp /sdcard/Email.apk /system/app/Email.apk)

- Reboot

- Done

Some questions I really hope someone can answer:

I'm not really good at this and even if everything is OK and working I'm a little worried I haven't done everything the right way.

1. Is everything OK with my solution?

2. I also must add that I didn't install the new Email.apk again, it auto installed once I rebooted after I copied it to /system/app. Should I install it somehow?

3. I also can't see any Email.odex anymore. Why?
[Android Apps and Games] Philbert123:
On my SGS I have only changed the original email.apk with the modificated one with root explorer. Nothing else and it works.
[Android Apps and Games] toxictigga:
Fixed - "This server requires security features your phone does not support"

This is the only application that resolved my problem - I had issues syncing up with my corporate email - which always gave a "Security" error - "This server requires security features your phone does not support"..

Took a while to find this.. Hopefully, this will help someone.

Background...

On my Samsung Captivate with Android 2.1 the Email worked fine with the corporate Exchange server... However, when I updated to Froyo (or Android 2.2) I had trouble adding my email account. Always gave the "This server requires security features your phone does not support" error.

Given the limited control I had with my corporate Exchange server... the only solution was to get something equivalent to Android 2.1. I tried all sorts of things... The only thing left was to compile Android 2.1 source code for Android 2.2... but, that would've been nasty.

To install this is all I did...

1. Get the Android SDK

2. Copy the Email.apk into the "tools" folder

3. Go to command prompt "cmd"

4. "cd" to the "tools" folder on command prompt

5. Enter command: "adb push Email.apk /sdcard/Email.apk"

6. adb shell

7. su (assumes you have already rooted and have some bash knowldege)

8. cp /system/app/Email.apk /sdcard/Email-backup.apk

9. rm /system/app/Email.apk

10. rm /system/app/Email.odex

11. cp /sdcard/Email.apk /system/app/Email.apk

12. reboot

It should work. I also had an app called "Apps Installer" that I used to install the app directly after Step 10. With all these steps I forgot the actual order.

This is not a complete guide... I'm just typing this up while things are fresh in memory... spend some time and sure you can get anything fixed.

Thanesh S
[Android Apps and Games] elsy:
Client Certificate

Tried very much the same thing on my samsung galaxy S. The installation worked well but it didnt fix the problem and gave the same error as before (The server... security.. error). In this new version I noticed a button for providing a client certificate which was not present in the earlier version. However, couldnt do much with that. Any clue how this came up?
[Android Apps and Games] 123jhe:
How can I install this Email.apk? Thx
[Android Apps and Games] c-dric:
Did somebody make an updated apk since september ?

(with latest source)

thanks in adavance.

c-dric
[Android Apps and Games] realcyberbob:
Has anybody gotten this to work on a mytouch 3g?
[Android Apps and Games] Webby33:
Interaction with the Exchange Server

This type of mod could affect enterprise security at my orginization, so I'm trying to figure out what it actually does:

Does your email pack tell the exchange server that it IS supporting/enforcing all the exchange policies it is requesting even though it is not?

Does your email pack tell the exchange server that it is UNABLE to enforce any polices, if it was able to do previously?

If the server has the flag "Allow Non-Provisionable Devices" unchecked; meaning that a device that cannot enforce a policy the server requires will be denied; does your email pack still allow the device to connect?

What I'm trying to figure out, is... does your email pack just tell the server "hey, I can't support any policies" like any older device that does not support policies and it is allowed/denied by the exchange server from there? ...or does it tell the server "yeah, I'll enforce all that stuff" but it doesn't?

Any answer to my questions would be greatly appreciated. Thanks for your time. :D
[Android Apps and Games] smart2smart:
Worked for me !

Thanks a ton for this, it worked for me, I am using a LG Optimus One with Froyo. Only one point that I would like to add to this thread is that you also need to remove the original Email.odex file else this new Email.apk does not work and just crashes on running.

Cheers,

Vikram.
[Android Apps and Games] jaredt2:
I was able to get this to work with one of my two exchange accounts. Oddly enough, the one that won't work with this apk is the one that doesn't enforce the PIN...
[Android Apps and Games] gtp:
first, many thanks to OP for his work!

but i'm experiencing something strange with the graphics on the menu buttons, see the screenshot attached. i even tried to make a fresh install, do all kinds of wipes etc. - all the same. i'm running MIUI_Au 0.12.3 ROM

this is not a show stopper, the app works fine but... you know, it's a little annoying :)

did anyone have anything similar? what could be the problem?

any advice would be highly appreciated!

UPD: damn, after spending a day with this apk i just realized that it is a N1 thread! and i'm on Desire! LOL. i think this could be the reason...

UPD2: on the other hand, here's the guy who is running this apk and seems to not having this issue: http://xdaforums.com/showthread.php?t=803316
[Android Apps and Games] roisagi:
"

how can i make /system a read-write directory? (its read only on my SGS)
[Android Apps and Games] gtp:
you can do it with "adb remount" (i think the easiest way if you have USB and adb)
[Android Apps and Games] roisagi:
have no idea what and how to do this....

(cannot copy email.apk to /system)
[Android Apps and Games] gtp:
first, you need root access to perform this operation. if you are not familiar with adb then I suspect you do not have root access yet. if so, this is a good time to start reading all those manuals, wiki pages, forums and faqs. all this stuff is already explained millions of times for all possible cases, you won't be the first.

if somehow you already have root access, you can try root explorer from the market, it's a paid app but it has an option to remount the system partition without terminal or adb. please mind that once you delete Email.apk you will lose all the information from any accounts that are already in your native Email app.
[Android Apps and Games] Virnik0:
use SGS Tools, then run remount script in it to rw

Easy, two clicks and you do not need PC
[Android Apps and Games] pykler:
Shafty, are your changes opensourced? If not, then it would be hard to know that you didn't put a backdoor to steal everyone's corporate passwords and emails.
[Android Apps and Games] addoyle:
Anyone tried this on Gingerbread yet?
[Android Apps and Games] britoso:
Yes! Seems to work fine
[Android Apps and Games] edufur:
It isn't working for me. I still get the error that the setup cannot continue because security features are required that the phone does not have. Any ideas?
[Android Apps and Games] britoso:
This works on my nexus:

su

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
[Android Apps and Games] shafty023:
They aren't but only because I haven't had the time to create a repo on git or google code. You're more than welcome to do it for me and I can email you the source code. I'm creating a new Email.apk without security policies based off the gingerbread source code right now. I always end up deleting my Email changes afterwards otherwise my 'repo sync' command will barf due to local changes not being committed upwards. Plus I never care to have the changed source code around on my laptop anyways because once the apk is compiled the modified source code is useless until I sync up with newer changes at which point I just go back in and make the changes again.
[Android Apps and Games] shafty023:
Keep in mind the modified Email.apk does not lie to the Exchange server and tell it that your phone supports EVERY security policy (SP). It will still tell it which SP's it supports and if you don't support a required SP then you will get the error that you're seeing.
[Android Apps and Games] shafty023:
The modified Email merely tells the Exchange server that the Security Policies (SP's) are enforced on the phone. Now, it does not lie to the Exchange server and tell it ALL SP's are enforced. Whatever SP's are enforced in the code are what are sent to the Exchange server. What those are I don't know off the top of my head but you can check the latest snapshot from Android to see for yourself. So if the latest Email src code does not support a specific SP but the Exchange server has it marked as required then you will be unable to sync up.

Every SP is still enforced locally on the phone except remote wipe & pinlock since we're disabling the requirement for a local Device Admin. An example of a SP still enforced is password requirement.
[Android Apps and Games] shafty023:
Your issue has to be your framework-res.apk file because the Email.apk grabs icons from there to fill in for those buttons. That framework-res.apk is what pretty much makes MIUI look the way it does so you can't just go changing it out for one from a CM build. Only thing you can do is open up your framework-res.apk file and locate the PNG files for those buttons and change only those out for the correct ones, then zip it back up (on linux only, don't use winzip in windows or you'll see FC's), and push it back to the original location.

I won't explain how to do all of that in detail because that's beyond the context of this Email Post but I'm sure others could chime in and lend a hand :)
[Android Apps and Games] shafty023:
New Email.apk released

Check the first post to grab the latest Email.apk based off the Gingerbread source code. I can verify it works perfect with CM6 and likely would work with other Froyo based ROMs.

I set the minSDK requirement to Android 2.2 as the default was Android 2.3 only.

Anyways enjoy everyone! Oh and either hit me up on Twitter or via PM if you have questions/requests as I rarely check all these threads that I post in. Just FYI ;)
[Android Apps and Games] SoCalNewb:
Droid X users - this .apk works fine under the official OTA 2.3.340 on my Droid X. I was resident to allow VZ to push the newest OS update to my device, but I am excited to say everything continues to work fine.

Thanks again Shafty!
[Android Apps and Games] coderuckus:
Thanks for the Gingerbread update! Works like a charm on my Vibrant (Eugene Froyo-GingerClone R2). Now if only I could get HTML email.
[Android Apps and Games] sshark:
I am hoping that by moving to 2.3 src code, problem documented in the following thread for 2.2 email.apk will be gone.

http://code.google.com/p/android/issues/detail?id=9307&q=aosp%20email&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

I am actually quite surprised that no one else has complained about this problem in this thread.

......

Anywho, shafty can you pl recompile 2.3 calendar to install on 2.2? I wish I knew how to recompile apk. I had unpacked an apk file and know where default version line could be...isn't it something like 8 for 2.2 and 9 for 2.3?:(
[Android Apps and Games] shafty023:
Here ya go. I haven't tried it so make sure you check your phone logs when installing Calendar or running Calendar in the event you hit FC's
[Android Apps and Games] dwang:
Can you provide a version that has hdpi icons and graphics?

Thanks!
[Android Apps and Games] sshark:
Thanks, can you pl also rename this as Google. Calendar so that my sense calendar and this can live together peacefully..:)
[Android Apps and Games] shafty023:
Just rename it on your end. Renaming doesn't affect the signing of the apk or its structure. Just as long as you don't uncompress the apk you're fine.
[Android Apps and Games] shafty023:
It does have hdpi

~/AndroidSource/packages/apps/Email/res$ ls
anim menu values-es values-nb values-sv
drawable values values-es-rUS values-nl values-tr
drawable-hdpi values-cs values-fr values-pl values-zh-rCN
drawable-mdpi values-da values-it values-pt values-zh-rTW
layout values-de values-ja values-pt-rPT xml
layout-land values-el values-ko values-ru

~/AndroidSource/packages/apps/Email/res$ ls drawable-hdpi/
appointment_indicator_leftside_1.9.png btn_star_big_buttonless_off.png ic_list_sent.png
appointment_indicator_leftside_2.9.png btn_star_big_buttonless_on.png ic_list_spam.png
appointment_indicator_leftside_3.9.png btn_yes_focused.png ic_list_starred.png
appointment_indicator_leftside_4.9.png btn_yes_off.png ic_list_trash.png
appointment_indicator_leftside_5.9.png btn_yes_pressed.png ic_menu_email_deselect_mail.png
appointment_indicator_leftside_6.9.png button_indicator_next.png ic_menu_folder.png
appointment_indicator_leftside_7.9.png divider_horizontal_email.9.png ic_menu_forward_mail.png
appointment_indicator_leftside_8.9.png email_quoted_bar.9.png ic_menu_reply.png
appointment_indicator_leftside_9.9.png header_card.9.png ic_menu_reply_all.png
attached_image_placeholder.png ic_btn_arrow_left_focus.png ic_menu_save_draft.png
bg_arrow_focus.9.png ic_btn_arrow_left_unselected.png ic_mms_attachment_small.png
bg_arrow_press.9.png ic_btn_arrow_right_focus.png icon.png
bg_arrow_unselected.9.png ic_btn_arrow_right_unselected.png ind_default.png
btn_check_buttonless_dark_off.png ic_calendar_event_small.png ind_sum.9.png
btn_check_buttonless_dark_on.png ic_email_attachment.png ind_unread.9.png
btn_folder.png ic_email_attachment_small.png one_pixel_border.9.png
btn_maybe_focused.png ic_event_email.png one_pixel_border_pressed.9.png
btn_maybe_off.png ic_exchange_minitab_selected.png one_pixel_border_selected.9.png
btn_maybe_pressed.png ic_exchange_selected.png presence_inactive.png
btn_no_focused.png ic_list_combined_inbox.png quickcontact_presence_bg.png
btn_no_off.png ic_list_drafts.png stat_notify_calendar.png
btn_no_pressed.png ic_list_folder.png stat_notify_email_generic.png
btn_star_big_buttonless_dark_off.png ic_list_inbox.png text_box.9.png
btn_star_big_buttonless_dark_on.png ic_list_outbox.png text_box_light.9.png
[Android Apps and Games] shafty023:
I sure do catch a lot of hell for this modded version of Email. Just wanted to throw that out there for everyone following this thread. People complaining about it hurting Android in the enterprise world. In actuality this modded version is not disabling Exchange security policies. It is only acknowledging that remote-wipe and pinlock are being enforced on the phone when they are not.

The only reason I created this modded version was because I HATE the pinlock requirement. The only way to not enforce pinlock is to not grant Exchange local device admin privileges which in turn disables the ability to do remote-wipe. All other Exchange SP's like password requirements (uppercase req, unique pass req, numbers in the pass req) still work. Pinlock on a device that can still be accessed via Recovery is just plain dumb.

So what I'm going to do is see if I can modify the local device admin code to acknowledge pinlock but not enforce it. That would still leave remote-wipe enforced which I can understand as being needed for a phone possibly containing sensitive company e-mails.
[Android Apps and Games] dwang:
Thats strange, on gingerbread all the graphics/icons are showing up as mdpi instead of hdpi.
[Android Apps and Games] shafty023:
Well don't forget that all of the gingerbread alpha's released into the wild are still alpha. Yes they are based on AOSP gingerbread but are likely from the CM source which is constantly being hacked at on a daily basis to add the CM bits back in. So on any given day you could be running a hacked up gingerbread port.

That's assuming you don't own a Nexus S in which case you'd be running official AOSP gingerbread and the mdpi issue would be something else I'd need to look at.

Is anyone else having the same issue? I'm running Android 2.2.1 right now and everything looks perfect so it'd have to be someone else running a Gingerbread port.
[Android Apps and Games] dwang:
Yep, in fact I do have a nexus s and everything is showing up as mdpi. :-)
[Android Apps and Games] pwvandeursen:
Quote:

I sure do catch a lot of hell for this modded version of Email. Just wanted to throw that out there for everyone following this thread. People complaining about it hurting Android in the enterprise world. In actuality this modded version is not disabling Exchange security policies. It is only acknowledging that remote-wipe and pinlock are being enforced on the phone when they are not.

The only reason I created this modded version was because I HATE the pinlock requirement. The only way to not enforce pinlock is to not grant Exchange local device admin privileges which in turn disables the ability to do remote-wipe. All other Exchange SP's like password requirements (uppercase req, unique pass req, numbers in the pass req) still work. Pinlock on a device that can still be accessed via Recovery is just plain dumb.

So what I'm going to do is see if I can modify the local device admin code to acknowledge pinlock but not enforce it. That would still leave remote-wipe enforced which I can understand as being needed for a phone possibly containing sensitive company e-mails.

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

Let me at least be the one THAT FULLY AGREES with you. However if indeed you could do the above, that would make it probably a little easier to get accepted. I can indeed understand the remote wipe (have everything backuped anyway, so its not a problem) but don't want to have tto enter the pin every time I open the phone. It's rediculous....

Thanks for the work, and since your implementation my phone has become useable again!
[Android Apps and Games] EvTomasi:
Works perfect on Nexus One @ CM6.1

Thanks.
[Android Apps and Games] mattb3:
Thank you for this mod. I for one don't think my IT department should be able to wipe my phone for any reason. Wiping the email account seems reasonable, but the whole phone? Even worse, with the default email app and the right security rules (like the ones my company implements), all someone(like my toddler) needs to do is pick up my phone and enter a blank pin several times and then whoops my whole is wiped. That is an absolutely ridiculous gaping hole. Anyway, thanks to your work, that hole is closed.
[Android Apps and Games] nbecker:
Latest Email.apk?

The link on the first page points to the latest Email.apk mod?
[Android Apps and Games] Virnik0:
yes. I am using it right now, it is 2.3 version.

Sent from my GT-I9000
[Android Apps and Games] britoso:
Installed it as a normal app, it prompted me that it would replace the system app, works fine :)

On froyo cm 6.1 too :)
[Android Apps and Games] Virnik0:
Strange. I had to manually remove original email apk wit it's odex and then place new email apk. But it works too.

Sent from my GT-I9000
[Android Apps and Games] Fitchman:
Works on CM6.1 G1!

Just wanted to again say thanks, and report that this works great, mail, contacts, and calendar all sync on CM6.1 on my G1 test phone! I did it as suggested earlier in the thread:

Observations on this new release:

The compose button is a smiley face and the refresh button is a Favorites/Important star, not a refresh icon

We lose the CM mod to change the color of the accounts in mail and calendar, which I love (since our company has a corporate color scheme, it's a great visual cue)

The "press OK to bypass" dialog is jarring. Perhaps just say, "Exchange server would like to verify your security settings" or something that doesn't imply that it might be doing something behind your back.