yashsingh1/xdaforums huggingface dataset:
[Sprint HTC EVO 4G LTE] mrcessn:
Anyone have any ideas on this one?

I've set everything up and it seems to be working, I'm only trying to sync mail, no contacts, tasks or calendar.

I can send an email with my phone with my exchange account, but it's not syncing my inbox or folders, so I don't see any mail, and new mail does not show up.

I've gone through both threads and haven't found anything like this to attempt a fix.

Thoughts?

Edit: Forgot to mention that I installed the zip file (Mail-MeanFeatures-NoSecurity-E4GLTE.zip) using TWRP.
[Sprint HTC EVO 4G LTE] Socrguru:
Did you remove your account first before replacing the app?

Also, I know my server only allows 2 mobile devices, and whenever I flash a new ROM I need to go into the settings (on Outlook on the computer) and remove my "old" device.
[Sprint HTC EVO 4G LTE] mrcessn:
I removed the account as best I could tell:

Removed account from within exchange

program manager: clear data and force stop

Recovery: backup rom then clear cache and dalvik cache

install .zip file

reboot to system.

went to exchange and re-entered my account credentials.

the only thing I noticed was that the account came up in a drop down menu when I started entering it, so I'm wondering if I missed removing something somewhere else.

The exchange mail is now also keeping my phone awake, I'm guessing by trying to sync.
[Sprint HTC EVO 4G LTE] Socrguru:
Hmm well it sounds to me like you've covered all your bases there. Maybe try downloading and installing the file again? (Maybe you got a bad download?)
[Sprint HTC EVO 4G LTE] mrcessn:
well, I've tried downloading it twice.. I am using the correct file right? (NOOB!!!)

I finally found out how to remove mobile devices from the OWA server after multiple searches. I had never used my companies OWA before.. and there were 3 Devices listed on there. I removed them all and tried again, still gives me the same issue.

I looked at the details on the OWA site for my phone and it seems that it's been accepted as having all the polices applied as necessary. I noticed that there is a log option on the OWA site, I've turned that on, I'm not sure what it will give me though.

anyone have any other thoughts? I'm using MeanRom v29. I know the phone worked with the exchange server previously, both stock and rooted. I'm trying to get this done so I don't have to encrypt my SD card so that I can continue to update the phone and flash new Roms, which doesn't seem to work with the SD card encrypted.
[Sprint HTC EVO 4G LTE] Socrguru:
Damn, I'm not sure what to tell you from here. I use the exact same file on the exact same ROM with no issues. Could it just be an issue with the server settings you're entering?

My Exchange server doesn't require an encrypted SD card, so maybe the modded app doesn't spoof the encryption? Anybody with those security requirements get mail to work with this app?
[Sprint HTC EVO 4G LTE] tbonanno231:
When you removed and readded the account on the phone, did you do it through the mail app or through Settings > Accounts and Sync? If you did it through the mail app, that could be your problem. It must be done through Accounts and Sync or else it doesn't really fully remove the account.
[Sprint HTC EVO 4G LTE] Positronic:
faneuil 1ograph

Got it over at themikmik, but figured I'd chime in with results: worked like a charm! Thanks.
[Sprint HTC EVO 4G LTE] regulator207:
For some reason, the new Mail-41 and the flashable one do not work. I put in the app dir, set permissions, and reboot. But the Mail icon no longer shows up in the app drawer.

I am using flex360s stock with goodies rom built off the new OTA base.
[Sprint HTC EVO 4G LTE] Socrguru:
Did you rename the file to Mail.apk?
[Sprint HTC EVO 4G LTE] regulator207:
Yeah I did. Even did the flash able version afterwards.
[Sprint HTC EVO 4G LTE] Socrguru:
Hmm... In all honesty I didn't test the flashable one myself. I've attached a zip I use after I flash every ROM. It installs the mail.apk and the modded Nfc.apk (so nfc works on the lockscreen). I know this one works - give it a try and let me know your results if you could.

Oops, I can't attach from my phone. Give me 15 minutes to get to a computer.

Edit: I've attached the file.
[Sprint HTC EVO 4G LTE] regulator207:
Nope. Extracted mail. Apk changed permissions and rebooted. Doesn't show up.

It original back in changed permission and rebooted and it shows in app drawer

---------- Post added at 12:38 PM ---------- Previous post was at 12:35 PM ----------

The new mail.apk is 5 MB and modified is 3 MB

---------- Post added at 12:42 PM ---------- Previous post was at 12:38 PM ----------

Tapatalk is messing up.

Original apk is 5mb and modified is 3mb.

Maybe this is reason.
[Sprint HTC EVO 4G LTE] Socrguru:
The size difference has always been there. I think it's a artifact from recompiling. Did you flash the zip or unzip it?
[Sprint HTC EVO 4G LTE] regulator207:
Unzip with permissions set after
[Sprint HTC EVO 4G LTE] Socrguru:
Flash it via recovery. The zips are meant to be used in recovery (so it's easier for you ;))
[Sprint HTC EVO 4G LTE] regulator207:
flashed zip.

still does not show up in app drawer. No option to add exchange account in sync settings.

===========================

I've attached the original mail.apk from the stock with goodies rom by flex
[Sprint HTC EVO 4G LTE] Socrguru:
Man you're certainly trying to stump me lol. Check system/app and make sure mail.apk is there. If it isn't let me know. If it is, click it and tell it to install the app.
[Sprint HTC EVO 4G LTE] regulator207:
it's there with correct permissions. The flashable zip in the OP did not have correct permissions so I was able to change it with root explorer but app was unsuccessful. When trying to "install" the app, it fails.

I've attached the original mail.apk to the post above
[Sprint HTC EVO 4G LTE] Socrguru:
The flashable zip sets the correct permissions - I just double-checked it. What permissions are you setting it to? What recovery are you using?

Edit: Just checked the permission on my files, and they weren't set right (apparently recovery didn't set it properly?). Still worked fine, though, and it also worked when I changed the permissions to the correct setting.

Edit again: Found out the permissions I had set on my zips was wrong (was set to 0755, should be 0644). Shouldn't make a difference though, as I was accidentally giving more permissions than necessary for a system app.
[Sprint HTC EVO 4G LTE] regulator207:
I dunno if this rom uses a different apk compared to the one you modified. I have no explanation. However, it is based off of the latest OTA with Sense 4.1

I've always changed the permissions to rw-r--r--
[Sprint HTC EVO 4G LTE] Socrguru:
From Flex's changelog, it doesn't look like he's touched the mail.apk (and even if he had, this should still install...). Those are the correct permissions.

Try rebooting into recovery and clear cache/dalvik cache (make sure the modded mail.apk is in the /system/app folder first, though).

I'll decompile Flex's mail.apk and compare it to the stock mail.apk and see if there's any differences, too.
[Sprint HTC EVO 4G LTE] Positronic:
I'm not yet caught up on replies, but I use Flex's ROM 2.02 just the same and the flashable version (4.1) from the link below works perfectly.

themikmik.com/showthread.php?14276-MOD-2012-08-31-Mail-apk-w-Exchange-Security-Disabled-*New-Sense-4-1-Version*

Let me know, I can upload the zip as well.
[Sprint HTC EVO 4G LTE] Socrguru:
I've actually been talking with Tommy - we keep doing the same things lol. His flashable zip clears the caches (mine doesn't), but mine sets permissions. Maybe we need to combine our methods to make a thorough file! I think clearing the caches should (hopefully) do the trick on this problem...
[Sprint HTC EVO 4G LTE] regulator207:
worked. thanks
[Sprint HTC EVO 4G LTE] Positronic:
Worth a shot. I can test it out. Subscribed. (I noticed that when I just extracted & copied the new mail.apk over directly, it didn't work. But from recovery, viola!) Might just be me doing things hastily though.
[Sprint HTC EVO 4G LTE] Socrguru:
You know, now that I think about it, I flashed my zip immediately after the ROM. The ROM (I use MeanROM) zip cleared the caches already... so it sounds like I need to add clearing caches to my zips.

I've compared the Flex mail.apk with MeanROM mail.apk, and the only differences I see are the Roaming auto-retrieve stuff. Downloading a stock ROM right now to fully compare.

FWIW, the 4.1 mail.apk from this thread and the mikmik thread are both based on the MeanROM mail.apk (and the modded files are probably 100% identical, barring some spacing differences). Tommy and I did the same mod simultaneously, and decided it'd be easiest if I managed the XDA thread and he'd manage the mikmik thread. Seems like he's a little better at making flashable zips than me :)
[Sprint HTC EVO 4G LTE] Socrguru:
Flex's mail.apk is 100% stock (for general information, I guess).
[Sprint HTC EVO 4G LTE] regulator207:
I flashed the zip in post 1 immediately after flashing the rom. That's when I noticed mail was not in my app drawer. Dunno if it's just a matter of clearing caches or not in the zip
[Sprint HTC EVO 4G LTE] Socrguru:
I'm going to change them all now so they do clear caches... better to be thorough!

Edit: I wanted to be thorough and checked out Flex's updater_script code - his ROM zip does NOT clear caches. I'm pretty sure we've found the culprit... clearing the cache!
[Sprint HTC EVO 4G LTE] tbonanno231:
The caches do need to be cleared, but there are a lot of flashables that don't do it. It's only a one button press after flashing, and it's just as well.

I don't set permissions because you don't have to. When you flash, it either uses the directory security or uses the same security as the replaced file. Either way it works just fine. Socrguru, when I get a chance I'll take a look and help troubleshoot this. I'm sure there's a logical explanation.
[Sprint HTC EVO 4G LTE] gzbrambila:
Any chance to update this MOD for the new base? Thx!
[Sprint HTC EVO 4G LTE] lanewhit:
+1000
[Sprint HTC EVO 4G LTE] Socrguru:
I gave it a try this morning, and couldn't quite get it to work. Just kept telling me the account couldn't be created at the very last step of making an account :(

Hopefully an actual developer will be able to get this working... I'll keep trying here and there, but I'm pretty damn busy right now, unfortunately.
[Sprint HTC EVO 4G LTE] lanewhit:
I appreciate the help... There is another work Around out there with a different email app but to be honest, it doesn't work as well.
[Sprint HTC EVO 4G LTE] gzbrambila:
Thanks so much. Will ask around. Can't use JB w/o this and K9 and MailDriod just won't work for my exchange email for some reason.
[Sprint HTC EVO 4G LTE] Socrguru:
So I was able to get it to work in a roundabout way. If I add my account first using the stock apk, then move my apk into system/app, and reboot, I can turn off all the security settings.

My email server doesn't require the SD card to be encrypted, though, and this method could possibly do bad things with that. If you guys want the apk I can upload it to try it.
[Sprint HTC EVO 4G LTE] gianmarco00:
+1 here.
[Sprint HTC EVO 4G LTE] gzbrambila:
Yes, please. Thx!
[Sprint HTC EVO 4G LTE] StringerE:
Have you tried Enhanced Email?:

https://play.google.com/store/apps/details?id=com.qs.enhancedemail&feature=nav_result#?t=W251bGwsMSwxLDMsImNvbS5xcy5lbmhhbmNlZGVtYWlsIl0.

It's not free, but it's worth the $10 to get a full featured email app that works for JB roms and makes Exchange security an optional feature. If you want to enable the security you click on a check box in the setup. If not, don't click that box. Syncs the calendar, contacts, tasks, etc.
[Sprint HTC EVO 4G LTE] Socrguru:
Here it is. Remember if your email server requires SD card encryption, DON'T USE THIS METHOD. You might end up with a permanently-encrypted SD card.

Download this file.

Set up your account like you normally would using the stock email app. Give it security allowances, etc.

Use a root explorer and go to system/app and rename Mail.apk to Mail.apk.bak (this gives you a backup copy in case things don't work out). Note that in some ROMs it's called Mail+Prime.apk (so rename it Mail+Prime.apk.bak).

Paste the download file into system/app (if the original mail apk was called Mail+Prime.apk, rename the downloaded file to match).

Set permissions on the apk to match those on the other files in system/app.

Reboot.

Go to Settings > Security, and you should now be able to remove the PIN from the lockscreen, etc.

Let me know if you have any problems. I'll keep looking to see if I can get this to work properly in the meantime.

If you flash another ROM it'll overwrite this file, so you'll have to paste it back in there.
[Sprint HTC EVO 4G LTE] Borsheck:
HTC EVO 4G LTE - Exchange 2010 no longer syncing

Is there an easy way to revert back to the standard "Mail.apk" patch? I an currently running rooted - 3.15.651.16 710RD. I have several gmail and pop accounts that are working fine, with the exception of my business exchange 2010 email account, I had applied the mail4.1.apk patch and was able to overt ALL of the security requirements, able to send email from my exchange account, but not receive email. I am getting sync errors for my calendar, contact, mail, an tasks.

Please note, I do not have a backup of the original ROM or mail.apk files, and would appreciate any quidance that can be offered at this point, since I desperately need to have access to my work email via my phone.

Thanks in advance!

Borsheck
[Sprint HTC EVO 4G LTE] Socrguru:
Honestly the easiest way would be to reflash your ROM (ie don't restore a backup, just flash the ROM itself). Don't wipe anything.

None of the files in the OP will work with Jellybean... I'm still trying to get it to work right.
[Sprint HTC EVO 4G LTE] gzbrambila:
Thanks will try it out.

---------- Post added at 11:50 AM ---------- Previous post was at 11:49 AM ----------

Awesome. Will try this out. Just need to see if my corp account is asking for encryption. Thanks for the great effort!
[Sprint HTC EVO 4G LTE] Socrguru:
Just tried a couple things, and not having any luck getting past this error :confused: Hopefully someone with more knowledge can fully figure this out... the workaround above works well for me right now, though.
[Sprint HTC EVO 4G LTE] evolvetek:
What happens when your Exchange server requires encryption? Any solution for this yet? My corporation also will not work with K-9. And encryption, which I have used in the past (full security implementation), is a "total nightmare," as one user put it.

Prior to the Sense JB release for the Evo LTE, these mods have saved my working life. This is a big deal. I will pay for this to be resolved. Seriously.

/e
[Sprint HTC EVO 4G LTE] tbonanno231:
I too tried to do the mod as soon as JB dropped, but, not being a smali expert, I was unsuccessfully. However, I did find some tips in rathore4u's thread here.

The tips were to try the version from OrDroid ROM. So I hunted it down and found the JB ROM thread for the One X by shnizlon here.

He has a modded Mail.apk posted. I tried it, and it works flawlessly. I'm not sure if it is the same mail app, so I tried decompiling and porting his mods without success.

But, since it works perfectly, it is a good option for those of us that need it. And it circumvents SD card encryption. I've attached the APK for everyone.

All credit to shnizlon for this.
[Sprint HTC EVO 4G LTE] lanewhit:
Can you make a flashable for this?
[Sprint HTC EVO 4G LTE] Socrguru:
Sitting down to dinner now, but I can make one afterwards if nobody gets to it sooner.
[Sprint HTC EVO 4G LTE] Socrguru:
Attached is a flashable zip, tested on my phone (I'm running MeanBean, but I believe it should work on any ROM). Good find, tbonanno!

I'll update the OP.
[Sprint HTC EVO 4G LTE] gianmarco00:
Does this work with exchange that requires SD encryption and disables that?
[Sprint HTC EVO 4G LTE] Socrguru:
According to tbonnano231 in this post, yes it does. I can't test that, though, so I can't tell you from experience.
[Sprint HTC EVO 4G LTE] lanewhit:
It works! No encryption needed...

---------- Post added at 09:25 PM ---------- Previous post was at 09:22 PM ----------

You might want to post this on the meanbean thread... Plenty of people are looking for this... Thanks
[Sprint HTC EVO 4G LTE] Socrguru:
Will do!
[Sprint HTC EVO 4G LTE] Hotdizzle:
It still asks for admin rights including password and encryption... Is that just comedic? (Meaning it asks, but doesn't actually enforce) I don't want to grant and see for myself because it's hard to get rid of once in place... Or maybe, Does the old mail.apk need to be removed prior to flashing?
[Sprint HTC EVO 4G LTE] Socrguru:
What ROM are you using? I thought I made my flashable zip remove the old mail, but I know it does have different names on different ROMs. The old one might need to be removed.
[Sprint HTC EVO 4G LTE] Hotdizzle:
Flex360's Stock with goodies
[Sprint HTC EVO 4G LTE] lanewhit:
Here's what I did before I installed the zip... Re named the Mail.apk to mail.apk.bak. Then I went into settings/apps/mail widget and did a force stop, rebooted and flashed the new mail zip. No problems for me and it works just like it did in MeanRom. I hope this helps.
[Sprint HTC EVO 4G LTE] Hotdizzle:
Yeah, it worked after I removed the old mail apk. I had one in there from a one x Rom which I was testing. It had a different name so that's probably why the zip script didn't remove the mail. Thanks again for this.
[Sprint HTC EVO 4G LTE] gianmarco00:
I wanted to mention that this version is also allowing HTML emails and settings for attachments and size to stick. This wasn't the case before and is such a huge improvement.

Thanks again for getting this done!!
[Sprint HTC EVO 4G LTE] Socrguru:
Could you tell me what the file was named? Ideally I could make the flashable zip remove other versions if I know what they're called.
[Sprint HTC EVO 4G LTE] Hotdizzle:
Mail+Prime.apk
[Sprint HTC EVO 4G LTE] Socrguru:
Damn thought I had that one covered. Time to check my code :P
[Sprint HTC EVO 4G LTE] phillymade:
I flashed Mail-No-Security_EvoLTE-JB.zip to Vipers Deodexed stock rom. When setting it up, it took me to the secure server screen, I backed out and tried again, it worked. All signed in to my work account without encryption or passwords. :highfive:
[Sprint HTC EVO 4G LTE] lanewhit:
You done good. I appreciate your efforts! It will make it easy to flash when new ROM updates come out.
[Sprint HTC EVO 4G LTE] gzbrambila:
Thanks! :)
[Sprint HTC EVO 4G LTE] Socrguru:
It helps if I use the right directory for my move command... :silly:

Updated the OP and my previous post with WORKING flashable zips lol
[Sprint HTC EVO 4G LTE] bertimus2002:
This mod is great! I love it.

One question I have...in the new Sense 4+/JB Mail app, it is still changing the format of the mail from HTML to Plain Text on an inconsistent basis. Is there a way to revert back to the Sense 4+/JB Mail.apk since it is now baked into MeanBean? As much as I like the no security features, I would prefer to receive my email via HTML format.
[Sprint HTC EVO 4G LTE] gianmarco00:
Not sure about you, but my HTML is sticking on this new version.
[Sprint HTC EVO 4G LTE] bertimus2002:
It was sticking since last night on MeanBean 0.7 until about an hour ago and it reverted to Plain Text again. I changed it back to HTML and so far so good, but not sure how long it will last again.
[Sprint HTC EVO 4G LTE] gianmarco00:
Weird, I just went and looked and mine changed too. Mine had stuck since the app first came out but I did update to 0.7 and maybe it changed then as I hadn't looked beyond that. I just changed back and will update whether or not it sticks.
[Sprint HTC EVO 4G LTE] Socrguru:
I think previous versions with the security removed had this issue as well. To be honest I wish I could do something about it, but I haven't been able to figure out the mods done on this apk for OrDroid.
[Sprint HTC EVO 4G LTE] bertimus2002:
Would it be possible to have an updated flashable zip for the original Sense 4+ JB Mail.apk just in case we wanted to switch and try it with the original version again?
[Sprint HTC EVO 4G LTE] Socrguru:
Yeah I could do that. Out running errands now (in Nebraska... Snow's slowing things down a bit). I'll make that when I get home in a few hours.

Or if you want, the original file should be saved as Mail.apk.bak or Mail+Prime.apk.bak in system/app.
[Sprint HTC EVO 4G LTE] bertimus2002:
That would be awesome. I am on MeanBean 0.7 and in looking at the system/app folder, there isn't a Mail.apk.bak to try and revert because it appears like it is baked in to the ROM now.

No rush, we just got out of our snowstorm in MN a little over a week ago. Good luck!
[Sprint HTC EVO 4G LTE] gianmarco00:
Settings have since stuck. I did a reboot and it held. I also just flashed blueberry updated theme and it stuck after that. I wonder if it changed on initial 0.7 flash and holding since then. If it goes back I'll post again but so far so good.

ETA--Still sticking all day. I think that one flash broke it momentarily but now all is good. We'll see in the morning.....
[Sprint HTC EVO 4G LTE] Socrguru:
Yeah forgot about it being baked into MeanBean now. Here's a zip that will replace it with the Mail.apk from MeanBean 0.6 (which should be the stock version).
[Sprint HTC EVO 4G LTE] gianmarco00:
So something is happening where it resets every 24 hours at midnight with the HTML setting. I've flashed a few things during day and it stuck. I checked at midnight and still there. Checked ten minutes later and it changed to plain. This happened last night too but since I had flashed a Rom around that time, I wasn't sure which had done it.
[Sprint HTC EVO 4G LTE] Socrguru:
What other settings do you have within the app? Mine has stuck on html since I installed it, and has stayed through about 4 ROM upgrades.
[Sprint HTC EVO 4G LTE] gianmarco00:
All default except the following:

Always push mail

Maximum for mail size limit

Always include attachments

30 days of mail.

In the past with ICS, it would always change right back to plain, never include attachment, and the smallest mail size (20kb). Now the mail size always sticks at maximum but it changes to never including attachment and plain once a day.

I don't think I'm the only one as others have reported the setting not sticking but at least it sticks for a while compared to never. I wonder if there's something in Mean Bean doing it. Problem is, Mike doesn't use exchange and understandably doesn't have any interest to work on it.
[Sprint HTC EVO 4G LTE] Socrguru:
Thing is, I'm using Meanbean too lol. I have the same settings except attachments are set to "never" and past mail is set to "all".

I'm going to try and see if the guy who made the apk can tell me how he modded it. After looking at his code, his fix is very different from the one by rathore4u and I can't find the exact changes.
[Sprint HTC EVO 4G LTE] treetolber:
This doesn't work. The html settings won't stick.
[Sprint HTC EVO 4G LTE] Socrguru:
Well it's the stock Mail.apk... I'm not sure what else to do there. Must be an issue with HTC.
[Sprint HTC EVO 4G LTE] gianmarco00:
It was like this in ICS too, at least in MeanROM. At least now it sticks for some period of time.

Did anyone ever get it to stick in ICS that wasn't on Mean?
[Sprint HTC EVO 4G LTE] Socrguru:
Mine is still staying on HTML and has for over a week now. I wish I knew what I've done to make it stay so I could share.
[Sprint HTC EVO 4G LTE] nokia-xxx:
I have an additional question about the Exchange.apk: is there a version that shows the subdirs of the INBOX on the main screen?

I have filters that move my mail immediately into subdirs in my (exchange/outlook) profile and with the standard email.apk / exchange.apk I'll have to open each and every subdir to check if new mail arrived... A bit of a pain as you may understand ;)

Anyone a solution for this?

Thx

G

JB Rootbox 3.3.x / Dorimanx 7.3x