yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] eac:
This is completely another approach.

For other guys here (for me at least) the option is not greyed. On the contrary, it's very functional and for a little time the mails are coming in html format.

It's tested...

The problem is that the setting is not permanent.

All the best!
[HTC Sensation] shantur:
Its really strange. I am using the HTML format for so long on my phone now. Its never changed and its the same changes that i do to all roms as explained in OP.

For 3.2 Android, can you try the attached com.exchange apk in OP. Although very less chances but it might just work.
[HTC Sensation] shantur:
I am using the one for 6.6.5 on 6.6.7 and it works flawlessly
[HTC Sensation] shantur:
For the curious ones, i have added a simple howto in OP about the mod
[HTC Sensation] Socrguru:
Just to clarify for others, where it says "Select the first one in the results," it means select the first "SyncManager;->processProvisionData" in the search results (not the first search result for processProvisionData).
[HTC Sensation] shantur:
Thanks for pointing that out. I will update the OP
[HTC Sensation] eac:
And you're using an Exchange account as well or an IMAP or POP account?

I'll give it a try and post back.

All the best!
[HTC Sensation] eac:
Nope, it's not working...

If you'll find some time and want to help me, here it is the apk.

I'll try myself following your guide, but I have to admit I'm not so confident in my success...

All the best!
[HTC Sensation] olly2009:
Viper ROM

Can anyone advice on which mail.apk to use for Viper rom on Sensation ? orDroid ?

Thanks.
[HTC Sensation] ver2go:
Anyone having problem on CleanRom 4.0 for HTC One X? I was using

signedATT-OneXL-Sense4-Mail.apk

On CleanRom 2 to 3, but now on 4 I'm getting:

"Unfortunately, Mail has Stopped"

I did wipe before installing CleanRom 4.0.

Also tried Mail-Sense4.0-Fixed-v2.0.apk with same results.

Thanks.
[HTC Sensation] d.cortez:
if CleanRom 4.0 is an odexed ROM, then it will not work without renaming the Mail.odex file on CleanRom 4.0 to something like Mail.odex.bak. the Mail.apk version above is for de-odexed ROMS.
[HTC Sensation] ver2go:
Thanks so much. That did the trick. Much appreciated.
[HTC Sensation] shantur:
The guide is for Sense based roms. For AOSP you would need com.exchange.apk from your device.
[HTC Sensation] baste07:
Can you mod my mail app for sgs iii
[HTC Sensation] shantur:
I can try. can you post the mail apk and if any exchange apk is present from Sgs iii
[HTC Sensation] cool400:
I've got the problem (using the 6.6.3-version), that every 3 or 4 days I get the message, that Exchange needs some security-rights to work properly :confused:

So it seems that Mail updates itself in the background :eek:

Right now I've updated ARHD to 6.6.7 and I ask myself, what could I do to prevent Mail from this annoying behaviour?

Which version of Mail without security should I use?

Best regards and thanks a lot

cool400 :cool:
[HTC Sensation] biff6789:
The email and exchange apks for the Galaxy S3 are both linked below (SecEmail.apk was too big for XDA's limit):

http://depositfiles.com/files/yr8nj5wr8

Are you still willing to see what can be done to disable exchange security for the S3?
[HTC Sensation] chrisw99:
Any chance of a release based on the latest Mail.apk from the new ARHD 6.7.0 released yesterday?
[HTC Sensation] eac:
OK sir, I'll look for the AOSP file you told me, as well, but until then can you look to this Mail.apk from Android_Revolution_HD-One_X_7.1.0?

Thank you a lot for all you're doing for this community.
[HTC Sensation] eac:
I don't have a com.exchange.apk in my tablet. I have just one single "com" and this is com.sec.android.app.minimode.res.apk

Not any kind of exchange package, just that Email.apk from my post.

I repeat, it's about Overcome 10.1 ROM on a Samsung Galaxy P7500 tablet.

All the best
[HTC Sensation] RWOLUPO:
any news about that one?
[HTC Sensation] biff6789:
No word yet from OP :(
[HTC Sensation] baste07:
Waiting as well for that
[HTC Sensation] shantur:
I had a look at the APK and it is very different from HTC. It will be very difficult for me to mod apk without being able to test.

If anyone has the patience and some knowledge about smali, i can give pointers and help them.
[HTC Sensation] cool400:
@rathore4u

I've got problems with your APK for ARHD 6.6.3.

I wanted to use it with my ARHD 6.6.7 (I will update to 6.7.0 ASAP) and when I try to install the APK, I get the error-message that a package with the same name, but with a different signature is already installed :confused:

Any hints about that?

Best regards and thanks for your really good work

cool400 :cool:
[HTC Sensation] shantur:
I think you didnt remove the older one before installing modded one.

I just installed ARHD 6.7.0 and modified the new Mail.apk from 6.7.0 dont know if anything is changed.

Adding in OP
[HTC Sensation] eschelon:
Those of you looking for the Galaxy S3 mail apk with exchange disabled, look here:

http://xdaforums.com/showthread.php?t=1781664
[HTC Sensation] eac:
If somebody would be interested: I've used Mail.apk made for Energy ROM in InsertCoin 7.3.0 ROM and is working...
[HTC Sensation] salman saso:
Mail.apk made for Energy ROM is not working with me

only this one is work Mail-Sense4.0-Fixed-v2.0.apk but is has hotmail problem

I need help or a new version release
[HTC Sensation] eac:
What ROM are you trying to use Energy Mail.apk in?
[HTC Sensation] salman saso:
I use ARHD 7.21 Rom

Thank you for feedback
[HTC Sensation] eac:
Well, then this is understandable...

I didn't find myself an working apk for ARHD 7.x.x, through those offered by our friend rathore4u, either.

And I did'n say in my post other than the Mail.apk for Energy ROM is working for InsertCoin 7.3.0 as well. That's all...

I've just want to help one having this ROM to not wait for a special apk, but to use this one instead.

I didn't ask for a ARHD 7.x.x mail.apk because I'm not using it for day by day maters, I'm just testing it.

And on the other hand, I've thought I will manage moding it myself :p

Bad choice from my side...:o
[HTC Sensation] RWOLUPO:
is there any version for cm10 aka jelly bean on siii?
[HTC Sensation] eac:
Is this question related to this thread?

Is the question about a Mail.apk for a CM10 ROM installed on a S3?
[HTC Sensation] chrisw99:
Thanks for putting the version from 6.7.0 base up.

I used to use lightningbugs colour theme, until I realised using themes like this overwrite the .apk file which may be several versions on by then. Since then, I have just dragged the .png files from the theme app into the new version of the app. Seems to work ok.

So if anyone is interested, I've attached the 6.7.0 version from the OP with colour icons in. Just rename to Mail.apk and overwrite the one in /system/app
[HTC Sensation] twilightgod:
Great mod

Works in both sense 4 and AOKP.

Thank you for your great mod!
[HTC Sensation] jay_ntwr:
Ah ha! That fixed me up too on CleanROM and the One X. Renamed the Mail.odex to Mail.odex.bak. I followed the manual instructions otherwise and used the Mail-Sense4.0-Fixed-v2.0.apk and it works great.

Thanks to everyone for this! I have facial unlock working now too.

---------- Post added at 03:24 PM ---------- Previous post was at 03:20 PM ----------

Thanks, and donation sent just now!
[HTC Sensation] shantur:
Thanks for donation...

I am happy i was able to make you happy
[HTC Sensation] dave-:
+1 thanks!
[HTC Sensation] dan0412:
Can someone identify whick apk would work with Cool ICS CMDA ROM? Neither Mail-Sense3.6-ARHD-6.4.0-v2.0 nor 6.5.0 works. Thanks.
[HTC Sensation] denverpedro:
JB (4.1.1) Fix?

Has anyone done this for a JellyBean Email client? Specifically AOSP (CM10).
[HTC Sensation] denverpedro:
CM10 / JellyBean Update

Actually just solved my own problem. Not sure if it's 100% yet or not since i got an "exchange stopped working" message as I was setting up my account... but after that it was fine (now receiving e-mails normally and synced calendar, etc.).

Attached is the CM10 Email.apk; use at your own risk (i.e. back up your existing Email.apk and/or do a Nandroid before using this).
[HTC Sensation] breezer260:
I just posted this in the 3d section. This should work.

http://xdaforums.com/showthread.php?p=30234565#post30234565
[HTC Sensation] Nekromantik:
will the onDroid mail apk posted work on all Sense 4 Sensation ROMs?
[HTC Sensation] eac:
Hello again rathore4u.

Can you put once again your magic finger on our Mail.apk damn files?

I'll post here the package from ARHD 9.3.0 ROM

If you'll have time and will maybe you'll help me (us) once again.

Respect!
[HTC Sensation] wbvczar:
Will any of these work for the new ICS leak for the HTC Thunderbolt that comes with Sense 3.6?

Edit: I am willing to try one and see, but which one would be the best to start with?
[HTC Sensation] shantur:
I have added proper JB Exchange fix.

Thanks

Try any of Sense 4 apks in OP, some pages back people were talking about Sense4 roms

I might when I get time, till then why dont you try the guide that i have put up on OP.

Wear the modder hat.

Try any of Sense 3.6 apks closest to your phone. You can mod yours with the steps provided in OP.
[HTC Sensation] y1mrn:
ARHD 9.3.2 modded Mail.apk

I have taken your advice and tried your guide in the OP with success! Many thanks.

I have attached the modded Mail.apk for ARHD 9.3.2 HTC One X.

I'm assuming it will also work on 9.3.0, though I haven't tested it.
[HTC Sensation] shantur:
Good work !!

Is this for Desire HD?
[HTC Sensation] y1mrn:
HTC One X.

Sorry - I have amended the post.
[HTC Sensation] eac:
Believe me, I've tried (and not just once), but for now this hat seems a little bit too large for my head.:cowboy:

The Windows Mobile area was a place where I've done a thing or two, but Android is just slips through my fingers...yet...

To be honest, my Android knowledge is so small that I'm not sure I even understand completely your guide.:o

So much about my skills...

Thanks a lot mate!
[HTC Sensation] y1mrn:
Np. Did it work?
[HTC Sensation] strikegun:
Well I am using the Andorid Revolution HD ROM on the OneX and your mod works well y1mrn. Finaly a mod wich runs on sense 4.1.

I was looking about 3 hours to find one or trying making the mod my self.

But I had some issue about that it doesn't find the framework.
[HTC Sensation] eac:
Like a charm :)

I have a little something, but I'll keep an eye on it to see if I didn't misunderstood the behavior.

It's about multiple notification sound for the same mail, until I read the mail.

I did face this, some months ago and I'm not sure if it's about ROM, custom mail.apk, ROM+custom.apk "joint" or is just my mind :D

Like I've said, I'll keep an eye on it and keep you posted.

All the best.
[HTC Sensation] shantur:
The framework thing can be gone around by just decompiling source and no resources. You can do this by selecting the option "Set decompile mode" in apk multi tools.
[HTC Sensation] strikegun:
HÄH? since 4 Days the mod from you worked.

But just now my phone told me I had to apply the exchange policy? I did nothing, phone runs since 2 Days.

edit//

Sorry just relized, that yes first sync works, but i only got Mails from the day I added the exchange account.

So it seems a little part disabling is missing. the part of syncing.

Could you take a look on it?

thx
[HTC Sensation] y1mrn:
Sorry strikegun - I am actually no longer using ARHD (I was just testing it, but I didn't suit me) so I cannot personally check if I am / am not having a similar problem. I have rechecked rathore4u's guide in the OP and can confirm that I have followed the instructions correctly. Unfortunately my limited knowledge/experience doesn't go any further than that - sorry. Not sure if eac is having similar problems or if rathore4u can help.
[HTC Sensation] eac:
My mail.apk is working just fine.

Thanks again.
[HTC Sensation] Captain_Throwback:
Greetings, rathore4u (and everyone else too)!

I have an HTC EVO 4G LTE, and yesterday we got an OTA upgrade to Android 4.0.4, Sense 4.1. I have attached a deodexed version of the Mail.apk from that ROM.

Can you modify this APK to disable the security? I miss my Face Unlock :(. Thanks!

In the meantime, I will try to decompile the APK myself, but I always seem to get errors when trying. I'll have to log into Ubuntu and see what I can do.

EDIT: Would help if I attached the APK :eek:, lol
[HTC Sensation] Positronic:
I can finally post in the dev section! :victory:

Sense 4.1 flashable version below. Thanks to OP, Tommy and all others involved.

http://themikmik.com/showthread.php...nge-Security-Disabled-*New-Sense-4-1-Version*
[HTC Sensation] cool400:
Hi,

does this mod also works with my Samsung Galaxy S3 GT-I9300?

Best regards

cool400
[HTC Sensation] Positronic:
I don't think these will work. Try: http://xdaforums.com/showthread.php?t=1781664
[HTC Sensation] shantur:
Cool....

Many people are wearing the modder's hat :)

Depends which rom are you using
[HTC Sensation] mrnetsick:
confirm this one working on rooted stock htc one x (odexed)

confirming the apk attached below from the post below (constucted with the info from this thread) working on rooted stock htc one x sense 4.1 (odexed - 2.17.401.2)

http://themikmik.com/showthread.php...nge-Security-Disabled-*New-Sense-4-1-Version*

i would not use the zip from the url above if using a htc one x. instead just grab the apk below (i extracted it from the zip from the url above) and replace via adb from recovery, wipe dalvik/cache
[HTC Sensation] Nekromantik:
Will this work on Viper S Sense 4.1 on Sensation?

edit: just flashed it after deleting all email accounts and it does not work.

Still getting asked for security policy which disables pattern unlock screen which I hate.
[HTC Sensation] moose1313:
exhcange issue

im running RemICS by team dirt on the OG EVO, ive tried 4-5 different mods to get this pin off but all keep force closing exchange before i can fully set it up, ive tried op's ics aosp to no avail. I am willing to mod myself but dont usually dive that deep. and i believe ive tried downloading the apk tool before but cant because all i have is company computer soo if any can get a chance please mod the following apks you'll definately get a thanks
[HTC Sensation] banesi:
working perfectly
[HTC Sensation] Nekromantik:
Did you make any changes?

As I tried it and it still wants to install security policy.
[HTC Sensation] banesi:
I'm using this one, working without problems.
[HTC Sensation] Nekromantik:
Did not work. :(
[HTC Sensation] GreyAlex:
Hi all.

I'm from Russia, and bad English, and can't find answer.

I have One X, Android 4.0.3, Sense 4.0, Rom 1.29.707.11.

When i try to connect to WiFi on work, i using personal certificate to authorize. Then, my phone want, that i set security gesture or pin code.

Phone rooted. Can i fix this promblem anyway?

Thank to all.

Using google translate.
[HTC Sensation] Positronic:
Sounds like your work network is requiring security policies be set on your phone, yes? It may be best to see if there's a fix/hack for rooted phones for this and then root your device and apply. If you can't find a fix, then I'd say you have no choice but to set the pin to use their network.
[HTC Sensation] bryanchapman9999:
Anyone got this working on ViperS 1.3.5??
[HTC Sensation] Golubev:
Dear friends! I'm on JB HTC Sense HOX and the only one apk in system\app has name like Mail-nonprime.apk which sound like it is mail application. Did anyone has patched version of this file?
[HTC Sensation] shantur:
Try the guide on OP to mod. If not try posting the apk.
[HTC Sensation] Golubev:
Thankxx! Here is my APK. Please help me to fix it

View attachment 1397836
[HTC Sensation] the orange bandit:
Recently switched to an HTC Vivid, and loaded Holics ROM on it (http://xdaforums.com/show...php?p=32721311). ICS 4.0 w/ Sense 3.6. I tried a few of the Mail.apk's attached here, but none worked - once I pushed it and changed the permissions, it simply wouldn't connect to Exchange server.

Has anyone successfully used one of the Mail.apk's available here for the HTC Vivid on ICS?
[HTC Sensation] shantur:
Try posting guide on OP or try posting the apk
[HTC Sensation] nickluck:
Hi rathore,

here is the .apk for ViperS 1.3.5.

Would yuo please modify it?

Thanks

Nicola
[HTC Sensation] nickluck:
Is there anybody who can modify this (or give me link to tools like modified apktools.jar)?
[HTC Sensation] Raven2k:
Try the ordroid version. Worked here like a charm :)
[HTC Sensation] sachinkhanna:
Any chance getting this to work for JellyBean Sense4+ Mail.apk on the EVO 4G LTE? I tried following the instructions, but it doesn't seem to work to manually make the smali changes. Also, the ICS Mail.apk doesn't work either.
[HTC Sensation] lanewhit:
+1
[HTC Sensation] theshowman:
Thanks for your great work.

** EDIT **

I re-read your post again, and towards the end, you mentioned that "you removed the odex file from system folder" leading me to believe that you have in fact the "de-odexed" version in your attachment.

So, I replaced the attached version with that of mine (HTC One S running Team Black Out JB Sense+ custom ROM) and moved on to setup EAS - and lo and behold, all security restrictions are now lifted!

Prior to this, I couldn't even use the Stock Email Client since HTCs version doesn't support some features required by our Corp. IT (the unsupported list is somewhat dumb of our IT to enforce but they do!)

Big thanks to OP and f948lan work your great work - now I can retire TouchDown!

** Previous Post **

Am I correct to assume that this is a "odex" verison of the the apk - ie it relies on the odex file to exist in the ROM?

The reason I ask is that I'm on a Sense+ JB custom ROM that is de-odexed (on HTC One S) and the apk file size that I have is nearly twice as large, leading me to think that the apk file provided by you relies on the odex file - is that correct?

If so, Would you by any chance be able to also provide a full apk file that is fully "deodexed"?

Thanks again
[HTC Sensation] shantur:
Great work guys....

I am just back to modding stuff, was away for couple of months due to new baby. Apologies to all who were waiting for me and i couldnt reply to them.

I have just added a Mail-Sense4.5 apk taken from ViperS 1.6.3 Rom. Some how I wasnt able to use the Mod already in ViperS installation option and that one seemed to be older Mail.apk. So here is one for you in OP.

-Enjoy
[HTC Sensation] smirkis:
is there any difference in the mail.apk you have listed for JB and the newest JB mail.apk in 4.2.1? i just want to make sure i'm using the most recent apk, if you need it i can upload it. i just don't know how to apply the change lol Thanks!
[HTC Sensation] shantur:
The onlu JB apk is Exchange2_AOSP_JB this was taken from Bruce's 4.1 Build. I havent compared 4.2.1 apk.
[HTC Sensation] henrylar:
so does anyone know whether it also works for 4.2.1?
[HTC Sensation] henrylar:
I checked myself - works fine - and also 4.2.2 :)
[HTC Sensation] misiek_to_ja:
Hi all,

It seems Elegancia users have been neglected in the Exchange security topic, so here it is: modded Mail APKs with Exchange security disabled for latest Elegancia Sense 4.1 release (3.6.0) and latest Sense 3.6 release (3.8.0).

rathore4u - can you put links to these files in the OP, so people can more easily find it ?
[HTC Sensation] dweidman:
Any chance for a Sense 5 update? I can forward the apk. :) (I took several hours and tried to do this myself - but ultimately couldn't get it to work with the "Failed to create account" error.

-D
[HTC Sensation] shantur:
Post the APK, I will try it once i have some time. Let me know which Rom and phone this apk was taken.
[HTC Sensation] dweidman:
http://xdaforums.com/showthread.php?t=2184706
[HTC Sensation] shantur:
Try this and let me know if it works for you.
[HTC Sensation] dweidman:
I don't think it worked - but in my mucking around... it is fixed? No idea how... I am on the original file again. :)

Edit - I was wrong - it isn't fixed (the exchange activesync was broken, had to manually refresh it all the time.)

Second Edit: the apk above doesn't work. Same "Failed to create the account".
[HTC Sensation] shantur:
What process did you follow? try doing exact things in OP
[HTC Sensation] dweidman:
Do you mean for the smali edits - or the install instructions?

I think I tried your instructions as well as the instructions one page back (from the guy who got the 4.5 sense (the 0x0 instead of 0x1)).

It compiled and signed - just didn't work - would fail when trying to add the account (last step in setting up exchange). (the same error as the guy with the 4.5 fix).

-D
[HTC Sensation] ilan2307:
htc one s - viper one s Mail.apk

hi guys

i am using viper one s 1.2.1

i have modified my mail.apk as described

but it got stuck on creating account ,after it verifies the user/pass --looks like the same issue dweidman has

few things ive tried:

1.flashing Mail-Sense4.0-Fixed-v2.0.apk ,created account suucsesfully but could fetch any email ,i.e i could send an email but

had an error message of "sync expireincing some problems..."

2.set up an account using original Mail.apk ,swapped to my modified apk ,then i could recieve email and send them ,

but the account dissapeared from the account list ,so the only way to fetch mail is by hitting a refresh button

any suggestions?

---EDIT---

hi found a woekaround

used an AOSP patched Email and sync client

from this post : http://xdaforums.com/showthread.php?t=1749921<br%20/><br%20/>[APP%20MOD]%20<span%20class=

this one works for me :AOSP Android 4.1.x

hope it will help until we can sort out active sync cant create account issue
[HTC Sensation] shantur:
Re: [MOD][APP]Exchange Security Disabled - JB, ICS AOSP, Sense 3.6, 4.0 & 4.5 -WITH H

Do you see any exceptions in logcat?
[HTC Sensation] shantur:
Re: [MOD][APP]Exchange Security Disabled - JB, ICS AOSP, Sense 3.6, 4.0 & 4.5 -WITH H

Is it Sense 4.1?
[HTC Sensation] Raven2k:
Re: [MOD][APP]Exchange Security Disabled - JB, ICS AOSP, Sense 3.6, 4.0 & 4.5 -WITH H

The one in my sig work great on ViperS 1.6.3 Sense 4.1
[HTC Sensation] shantur:
Re: [MOD][APP]Exchange Security Disabled - JB, ICS AOSP, Sense 3.6, 4.0 & 4.5 -WITH H

There is one in OP from ViperS as well
[HTC Sensation] ilan2307:
4+
[HTC Sensation] shantur:
Re: [MOD][APP]Exchange Security Disabled - JB, ICS AOSP, Sense 3.6, 4.0 & 4.5 -WITH H

You can use ViperS one from OP
[HTC Sensation] ilan2307:
throws an exception : "unfortunately Mail has stopped" :confused:
[HTC Sensation] Raven2k:
Re: [MOD][APP]Exchange Security Disabled - JB, ICS AOSP, Sense 3.6, 4.0 & 4.5 -WITH H

Sorry for posting it again, but the one in my signature work great with ViperS 1.6.3. It is not the one that comes with vipers though, its the one from ordroid.
[HTC Sensation] ilko_74:
Hi can anyone have Exchange security disabled apk for hypermiui 3,118v0,1 sensation xe room.

whatever I tray I can’t disabled security.
[HTC Sensation] YACO:
Any chance someone can help get the SENSE 5 Mail.apk fixed?

Nevermind, I did it!!! :)

Attached is the Mail.apk from HTC One (Sense 5) patched for no exchange lockscreen/required pin.
[HTC Sensation] dweidman:
Nice - confirmed working. :)

-DCW
[HTC Sensation] shantur:
Re: [MOD][APP]Exchange Security Disabled - JB, ICS AOSP, Sense 3.6, 4.0 & 4.5 -WITH H

Nice work. Did you change anything other than i described in op? Would you like to share?
[HTC Sensation] Nekromantik:
Please delete
[HTC Sensation] dl:
HTC One?

Is this what I need to do:

1. Get rid of accounts, force close, clear data.

2. From ES File Explorer, delete /system/app/Mail+nonprime.apk

3. Do I need to delete Mail+nonprime.odex?

4. Paste the downloaded file into /system/app

5. Do I need to rename the downloaded file?

6. Reboot into recovery, fix permissions.

7. Reboot and it works?

I did everything above except 3 and 5. Mail+nonprime.apk is always back in system/app when I look after rebooting, and there is no security fix.