yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II SGH-I777] Thenetstriker:
I just found a bug in my modified application. When multiple notifications are shown and I click on the first notification the other notifications also disappear. I think I've already found the source of the problem and I'am testing a new version now. I also found something that I forgot to adjust. In the original version no notifications arrived when the email app is open and the inbox is shown. I will also ajdust this in the next version so that no notifications arrive for the mailbox that is currently open in the email app.
[AT&T Samsung Galaxy S II SGH-I777] maluus:
Well I m eagerly watching your work mate. I myself suffered this for a long time and this is the reason why I stick with sense instead of CM10.1 on my HOS. I posted this issue for google and CM team. If I had the skills I would try to do the same as you do and solve my problem but I lack the skills. So I can willingly test your modified app.
[AT&T Samsung Galaxy S II SGH-I777] icstm:
This is fanastic work Thenetstriker

A couple of questions:

1) I assume this will work most phones and on stock ROM, rather than CM?

2) Any reason you chose the stock email app and not one of the imrpoved but free ones, eg K9?
[AT&T Samsung Galaxy S II SGH-I777] Thenetstriker:
1) This app shoud work on stock roms too, but I tested it only on CM10. If you just install the app over a file manager you can test it without modifying your system too much. It will be automaticly replaced whith the stock email app if you restart your phone. Too install it permanently you have to replace the file in /system/app

2) I like the stock email app because it is easy to use and has a slick interface. It had everything I need except the subfolder notification. :)
[AT&T Samsung Galaxy S II SGH-I777] Thenetstriker:
Here is my new release. I fixed the problem when multiple notifications are shown. Also I've corrected the behaviour that when a mailbox is currently open, notifications are suspended for this mailbox. I also disabled the notifications for all special folders, except the inbox. (e.g. deleted items, drafts etc. doesn't need notifications in my opinion)

Please report any problems in this thread.
[AT&T Samsung Galaxy S II SGH-I777] djspot13:
some help with install

Hey,

Tried to install your email apk but when I attempted to install I got the following error "application not installed: an existing package by the same name with a conflicting signature is already installed"

I was hoping for some help.

If you don't mind providing a quick run down on how to implement your install and patch I'd really appreciate it.

Thanks.
[AT&T Samsung Galaxy S II SGH-I777] Dazzla:
This worked perfectly for me. Thank you so much.

Do you intend on keeping the releases coming as Google update the Mail app?

Would this work on any rooted phone? E.g. a Sony Xperia T? Or does it require 4.2 or stock?
[AT&T Samsung Galaxy S II SGH-I777] Thenetstriker:
Maybe this problem occurs because I've compiled the app using the CyanogenMod Sources. Maybe they are using a different signing certificate for the apps as google. I will try to compile the app using the google sources.

---------- Post added at 11:36 AM ---------- Previous post was at 11:24 AM ----------

My idea is to submit the patch directly to Google. Maybe they will integrate this into the next release. I found a description on how to submit patches to google. (http://source.android.com/source/submit-patches.html) When the feedback from this thread is good I will try to submit my patch go google.

I also have an Xperia T, but it should work on any rooted phone. Maybe there are problems when other certificates are used as described in the post above. In this case try to install the app using the "Root Explorer" app. First copy the app apk to /data and change the owner to root/root and adjust the rights to rw-r--r--. Then move the apk to /system/app and replace the existing file and reboot the phone. On my phone I was able to replace the app permanently using this method.
[AT&T Samsung Galaxy S II SGH-I777] icstm:
What you say below sounds like an excellent idea and the fact you have a couple of phones helps iron out compatability problems.
[AT&T Samsung Galaxy S II SGH-I777] nicolaibvm:
Any luck on this?

Any luck on this? I have the exact same problem. I am not rooted though. Do I have to?

Thanks for fixing what Google find to be too hard!

/Nicolai
[AT&T Samsung Galaxy S II SGH-I777] Thenetstriker:
Yes I believe root is required to replace a system app. The only permanent way I found to replace a system app has to be done using Root Explorer. On rooted phones this part of the filesystem is always readonly.
[AT&T Samsung Galaxy S II SGH-I777] maluus:
Well I installed your latest apk and set up my exchange account but still can't get notifications for subfolders. it syncs without problems but still doesn't notify. I tried this on stock htc one s rom. Since I need exchange, I used exchange2.apk from CM10. I don't know which protocols you tested but perhaps exchange module may require some editing also for exchange to work.

and another problem is it's uninstallable. had to manually delete files :D
[AT&T Samsung Galaxy S II SGH-I777] Thenetstriker:
Did you enable the automatic push synchronisation on your subfolders? Without this setting the messages are synchronized only when the subfolder is opened in the email app.
[AT&T Samsung Galaxy S II SGH-I777] maluus:
Yep I'd enabled them one by one :D
[AT&T Samsung Galaxy S II SGH-I777] dmahon:
This works sooo great, and is just... It's like a godsend. EXCEPT... one tiny thing, and it would be perfect. (well, maybe 2...)

If you have 2 accounts set up, they both work fine, notifications come in, no problem. BUT, if you try to set up different ringtones for each - it doesn't work. At least for me, it looks like they both use the ringtone set for the default account (or maybe just whatever account was created first?). Probably the latter. Messages from the second account will also show the name of the other account when they come in (though viewing them takes you to the correct mailbox). I realize this isn't a huge deal, in no way a dealbreaker for me, but I like being able to distinguish between work and personal emails by sound notification.

Also, and this is maybe just picky - this stock app doesn't let you handle ZIP files or APKs? I'd forgotten about that. I found the mods for it around to try to make it allow them, but whenever i try it the resulting APK doesn't work right.

All in all, 1000X times better than any other option, I think. Great work.
[AT&T Samsung Galaxy S II SGH-I777] dmahon:
Actually, I spoke just a bit too soon? Maybe some can offer some advice... I had this working on a JB ROM, but that didn't play nice with the phone in general, so I loaded up a CM9 ICS. THAT one works great, but this version of the Email.apk won't? It installs fine, seems like it's going to work great, but it doesn't ask to be a device administrator. So, at the point where it checks the incoming settings, where it would usually prompt you to accept the added security, it just fails with an error. I can connect to Exchange servers that don't use enhanced security fine, but unfortunately my primary one does.

Anyone have any thoughts?
[AT&T Samsung Galaxy S II SGH-I777] Mi|enko:
Thanks for this! Working great on my Nexus 4, running AOKP MR3. Might I make the suggestion of a "automatic sync all" setting? It was kind of a pain with the number of folders I have. :)
[AT&T Samsung Galaxy S II SGH-I777] Thenetstriker:
I think there might be another bug with non exchange accounts. I setup an imap account and I don't get any notifications from incoming mails for this account. I will take a look at that.
[AT&T Samsung Galaxy S II SGH-I777] techwerkz:
I want to thank you for posting this patch. I installed it on my Verizon GS3 running AOKP 4.2 and it works flawlessly.

I know in a past version of CM this was an option, it was either 5 or 6. There were some threads about it, and the developer kind of went MIA. It also let you choose specific ringtones for each subfolder, as well as just chose the subfolder to be notified. I am sure this requires a lot more coding, but just a thought.
[AT&T Samsung Galaxy S II SGH-I777] Thenetstriker:
Here the newest release of the modified email app. I solved the bug that no notifications arrived on imap accounts and I also fixed the issue that wrong accounts were displayed in the notification. Notification sound should also be fixed with that.

This time I've also created a ClockworkMod update zip file for easy permament instlall of the app. Please continue reporting issues here.
[AT&T Samsung Galaxy S II SGH-I777] dmahon:
I still have trouble getting this to install -does this have any security modifications included as well? It just won't ask to be a device administrator, and since the server wants it to, it just fails to complete when you're setting up the server.
[AT&T Samsung Galaxy S II SGH-I777] Dazzla:
Is there any way of installing this on non rooted hardware? I've just got my Xperia Z and the lack of sub folder notification is killing me!
[AT&T Samsung Galaxy S II SGH-I777] mikelindsay13:
I have been researching this issue all day and its been doing my head in, was just about to give up when I found this. Man if this works, you are a legend! But not sure as last post asking about rooting and Ive not rooted my S3. Fingers crossed though and I will reply if it works. :D
[AT&T Samsung Galaxy S II SGH-I777] briangig:
You most definitely would need to be root for this to work, as it involves replacing a system file.

elherr: This is a fantastic modification to the stock email client, been searching for while.

Two things would make it perfect:

How about a flashable zip for 10.1 that uses Email2.apk? (i tried modifying it myself, but it didnt work, I have no idea what I am doing.

Removing the PIN lock screen requirements. I actually like a lockscreen, but hate having a PIN.
[AT&T Samsung Galaxy S II SGH-I777] elherr:
'Thenetstriker' did the development work. I just started the thread.
[AT&T Samsung Galaxy S II SGH-I777] briangig:
oops...well thank you for starting the thread and getting Thenetstriker's attention.

and thank you Thenetstriker, great job on this..
[AT&T Samsung Galaxy S II SGH-I777] DieselvRR:
Been following this thread as I would love this feature. I had to spend 20 bucks to get a 3rd part email app to get the notifications. I am on CleanRom 6.0 for the S3. Its TouchWiz based....will this work on my phone and ROM?

Thanks
[AT&T Samsung Galaxy S II SGH-I777] DieselvRR:
Anyone? know if it will work on 4.1.2?
[AT&T Samsung Galaxy S II SGH-I777] Dazzla:
Has anyone tried this on a Sony Xperia?

I rooted my Z, replaced "SemcEmail.apk" with this (renamed) and when I start it Exchange services just crashes.

Any idea?
[AT&T Samsung Galaxy S II SGH-I777] sahuja:
ExchangeNoPIN 4.2.x

Is it possible to patch the ExchangeNoPIN 4.2.x version and thus have subfolder notification alongwith 'no pin'...thanks
[AT&T Samsung Galaxy S II SGH-I777] Crall:
This is awsome Thenetstriker! works great on Rootbox (4.2.2) nightly for S3.

Thank you! this saves me the pain in using a third party app for exchange.

//Crall
[AT&T Samsung Galaxy S II SGH-I777] pjavan:
Trouble applying patch

Running Verizon Galaxy Nexus and able to success root using WugFresh 1.6.3.

Tried installing Email.apk but it fails saying x App not Installed

I'm assuming since I'm running JB, I need to run the patch. I've tried everything with no success. There's no real good explanation on how to run a patch. Best I can find is: patch -p1 <path to patch>

Running adb shell su and navigating to system/bin folder, but I only have an applypatch executable. No patch executable exists on my phone (that i can see). Can someone help me figure out if I'm on the right track? I've been wanting this capability for DAY 1 of my OG Droid.
[AT&T Samsung Galaxy S II SGH-I777] briangig:
I am also on JB. I just downloaded the Email.apk, copied it to my /system/app, deleted Email2.apk, renamed Email.apk to Email2.apk, changed permissions to executable, and it worked.
[AT&T Samsung Galaxy S II SGH-I777] pjavan:
Hmmm...copied it to system/app

Don't see Email2.apk in the directory

Permission level seems the same on the file

Screen shot attached
[AT&T Samsung Galaxy S II SGH-I777] briangig:
might be the emailgoogle.apk you need to work with. make a backup first!
[AT&T Samsung Galaxy S II SGH-I777] pjavan:
Renamed

EmailGoogle.apk to EmailGoogleBak.apk

Email.apk to EmailGoogle.apk

ran EmailGoogle.apk and it installed!!!! yeaahh.. Noooooo

Crashes every time I launch it. Tried force stop and clear data/cache, but still occurs. Stack Trace attached
[AT&T Samsung Galaxy S II SGH-I777] Dazzla:
On my note 2 the email client is called SecEmail.apk (I have no Email.apk or Email2.apk) so I replaced that. The problem with mine is that it just stopped and Exchange Services stops as well. Any idea?

Edit: Let me clarify, the app launches (as SecEmail, Email2 or just Email.apk) but when I try adding an exchange account Exchange Services just stops then the email client crashes.

Clearing the data and caches of email and exchange doesn't do anything.
[AT&T Samsung Galaxy S II SGH-I777] surfmly:
make client side only?

Hi all,

I am in the same boat. Have old DINC 2 so dealing with no sub-folder notifications, and am looking to upgrade to new phone and was hoping to see full sub-folder support. While researching I noticed one work around that may work (I'll give it a go to see how I like it) is to make the rules you care about client side only (meaning they'll only run when that Outlook desktop client is running). That way those emails will show up in the Inbox thereby notifying you on your mobile device. But then when you log into the desktop client it should sort the emails properly into the folders you want.

Not ideal and may not work great, but it could help until Google gets their act together (this is really poor support from them on this - this is why it took me so long to switch from blackberry, their email was always the best). Thought I would share.

Oh, and if wondering, to make client side, edit the rule, and on the first set of rule options, towards the bottom there is option for 'only on this computer'. This will make it be client-side only (it will notify you of this when you save the rule as well).
[AT&T Samsung Galaxy S II SGH-I777] afranky19:
install CM 10.1 zip

Hi Guys,

I tried installing the zip provided in the most recent post but am not seeing sub-folder notifications. I'm using CWM recovery to install the zip file. I would have assumed this replaced everything correctly. Exchange works just fine but no sub folder notifications. Tried this in 10.1 M2 and 10.1 M3 this morning. Galaxy Nexus CDMA. Any ideas? I've been waiting for someone to come up with this for a very longgg time, so sick of Moxier. I just want to use the stock email. Any help would be appreciated :D

Thanks!

-Alex
[AT&T Samsung Galaxy S II SGH-I777] Phalanx7621:
I'm assuming everyone posting here knows this is not a general forum for all phones but for the sgh i777 AT&T galaxy s 2 yes?
[AT&T Samsung Galaxy S II SGH-I777] Thenetstriker:
I've now also compiled the modified email app for CyanogenMod 10.1. (Email2.apk) Works perfectly on my Sony Xperia T.
[AT&T Samsung Galaxy S II SGH-I777] Dazzla:
Will this ever work on touchwiz based ROMs?
[AT&T Samsung Galaxy S II SGH-I777] Dazzla:
I don't know what's changed but the latest version of the Samsung email client supports sub folder notifications. I sent mine back for a warranty claim, got it back and they said that they had also upgraded the software and now I get notifications on emails that go into sub folders.
[AT&T Samsung Galaxy S II SGH-I777] neondunker:
Hi,

Thanks for your work on this issue. I could install the program and run but I can't see the Exchange option, just pop and imap, there's support por Activesync? Or did I instaled the wrong way?

Thanks!
[AT&T Samsung Galaxy S II SGH-I777] gorillabiscuit:
What ROM are you running? Some ROMs don't come with Exchange2.apk, which is required for the Email2.apk to have Exchange functionality. This works... but it's not ideal especially for crack flashing. I still use TouchDown for my subfolders and it's very simple to reconfigure. Also, the push/pull frequency is global. What i'd love is the Samsung S4 email app installable on this ROM. They have subfolders...
[AT&T Samsung Galaxy S II SGH-I777] neondunker:
Well its a totally different device, its an Atrix HD.

When I used a AOSP rom, it worked just fine, flawless. But the stock rom handle the email configuration differently, even putting Exchange2 and Email2 in the /system/app path and setting the permissions didn't worked.

**** you motorola :(
[AT&T Samsung Galaxy S II SGH-I777] neondunker:
Theres any posibility to modify the motomail.apk thats used by almost every moto phone or tell us what we need to modify in the apk so we can try?

Thanks!

Enviado desde mi MB886 usando Tapatalk 2
[AT&T Samsung Galaxy S II SGH-I777] Dazzla:
Is there a way to manually modify the mail app with what you've done? I'm using Project AOSP on my Note 2 and it has the stock client but this modded app doesn't work with whatever the ROM author has done to the exchange apk. Just wondering if I could modify his email apk with what you've done here.
[AT&T Samsung Galaxy S II SGH-I777] bonanza123:
Thanks works perfectly for me!

I'm running CM10 and I have Email.apk and Exchange2.apk. I renamed your Email2.apk to Email.apk and replaced it in \system\app and set the permissions again with Root Explorer.

[MENTION=1102815]Thenetstriker[/MENTION]: Can you maybe submit your changes to CM such that they will merge it with their repos? Would be great! Thanks
[AT&T Samsung Galaxy S II SGH-I777] Dazzla:
Is it possible to post the Exchange2.apk that's compatible with this Email2.apk?

I pulled Exchange2.apk from CM10.1 but couldn't install it on 4.1.2 (Touchwiz based ROM). Maybe I'm just out of luck and I can't get this working on 4.1.2.

Edit, my mistake. I downloaded the one for 10.1 (Email2), I installed Email.apk from the last page and it works fine on a touchwiz based ROM on 4.1.2. Cheers.
[AT&T Samsung Galaxy S II SGH-I777] ahamade86:
YOU ARE AMAZING!!! Thanks a bunch for this! Worked perfectly with me
[AT&T Samsung Galaxy S II SGH-I777] mrd7rs:
thanks for this great mod!!!!
[AT&T Samsung Galaxy S II SGH-I777] ChristopherXDA:
Anybody get this working on a Stock Galaxy S4 or Galaxy S4 Active?
[AT&T Samsung Galaxy S II SGH-I777] Averell:
Might be a stupid question, but is it possible to have this work on stock SS ROM on Note2?

Thanks!
[AT&T Samsung Galaxy S II SGH-I777] Gr0m03eka:
Thanks a lot for the mod, works perfectly on my phone and tablet both running CyanogenMod 10.1.

Could You implement one more thing: in "Sent" folder of all accounts (Exchange and IMAP) mail should be displayed by "Recipient" (to whom I send mail), but not sender (me).

Thanks again.
[AT&T Samsung Galaxy S II SGH-I777] Snowknight26:
Any chance of having an updated build from the latest source?
[AT&T Samsung Galaxy S II SGH-I777] SeraldoBabalu:
works amazing on paranoid .. i use it on my galaxy nexus

THANK YOU!!!

:good::good::good:
[AT&T Samsung Galaxy S II SGH-I777] Dazzla:
Came to ask the same thing. Loved this modification and now I've got my nexus 7 on the way I wondered if we needed a new version for 4.3.
[AT&T Samsung Galaxy S II SGH-I777] maluus:
Really. An updated build would be awesome.
[AT&T Samsung Galaxy S II SGH-I777] Sanfe:
Hi Thenetstriker

Thanks for your great mod. I like to make you a suggestion:

Its possible to delete the "recent folders" section. Seems that its a bit useless and are a bit confused when use the app

Enviado desde mi Nexus 7 con Tapatalk 4
[AT&T Samsung Galaxy S II SGH-I777] Thenetstriker:
Sorry for the late reply. I've just compiled a new version of my modified email app using the latest CyanogenMod 10.2 source. Works pretty good on my Sony Xperia Z.
[AT&T Samsung Galaxy S II SGH-I777] zombiebot:
Do I need to uninstall the stock app? Your modified .zip keeps force closing.
[AT&T Samsung Galaxy S II SGH-I777] maluus:
Any notable changes in 4.3 client?
[AT&T Samsung Galaxy S II SGH-I777] dredre2017:
Thanks, is there any way to make the apk inverted?
[AT&T Samsung Galaxy S II SGH-I777] Thenetstriker:
Yesterday I took the time and looked at the code of the email app again and I think I found a much cleaner and simpler solution with less code changes. On my Xperia Z it works very good so far. I've attached the code changes and the install zip to this message. Please report any problems that occur with this version. If there are no problems with this version I will try to submit the changes to the CyanogenMod repository. I think this solution could be clean enough for them to merge it into their sources.

For those who have problems installing the zip file: Please check if the email apk file under /system/app is also named Email2.apk. If it has another name then rename the file in the zip file to match the name on your device so that it will be overwritten on install.
[AT&T Samsung Galaxy S II SGH-I777] Crall:
With the latest zip I seem to have some issues with the exchange that I didn't have with the old one. I use teamsek unofficial 10.2 rom

Skickat från min GT-I9300 med Tapatalk 4
[AT&T Samsung Galaxy S II SGH-I777] drosophyle:
unreads

Hello,

I have a brand new Nexus 4 runing on 4.3.

I would like to see all unread emails (including those from subfolders) in my inbox. Sounds like you found the solution but I have tried with no success to install your app. Besides, I do not know what to do with the patch file. Please advise,

Droso
[AT&T Samsung Galaxy S II SGH-I777] drosophyle:
Hi again,

I guess I have found a trick to avoid that problem.

Just set all your outlook rules as "Client Only". Emails will land into your inbox on your phone (notifications working), and on your set subfolders in your outlook...
[AT&T Samsung Galaxy S II SGH-I777] Crall:
I have some serious battery drain on exchange with the latest version. No body else that have this issue?
[AT&T Samsung Galaxy S II SGH-I777] Crall:
I dont know what to do, after installing the latest of your version the exchange keeps the phone awake all the time. Done a clen install of everything but the issue remains. Using it with Exchange 2013.
[AT&T Samsung Galaxy S II SGH-I777] Thenetstriker:
I don't think that my changes are causing this problem because I didn't change anything in the exchange synchronisation. (This is a completeley separated app) But I also had these problem with the exchange synchronisation before. One time these problems occured because my exchange password was exired and one time I had to completeley delete my exchange account and add it again to solve the problem. Can you try if readding the exchange account solves your problem? (If this does not help try to delete the app data from the E-Mail and Exchange app completely and then readd the exchange account)
[AT&T Samsung Galaxy S II SGH-I777] Crall:
Ok, i will try that. Thank you!
[AT&T Samsung Galaxy S II SGH-I777] Thenetstriker:
I've now committed my changes to CyanogenMod gerrit code rewiew: http://review.cyanogenmod.org/#/c/51665/

I hope they will review and accept my changes.
[AT&T Samsung Galaxy S II SGH-I777] dhaliwal925:
Thank you so much! This has got to be the best mod to the email apk! How is the review going? When can we expect this to be merged?

Working on 10.2
[AT&T Samsung Galaxy S II SGH-I777] Thenetstriker:
The patch was reviewed by Danny Baumann and Marco Brohet. The found some code styling issues, so I've uploaded a corrected patch, but they did not review the patch again. (Since about two weeks) I've already sent Marco Brohet a mail, but did not get any response. I hope they will review the patch again soon.
[AT&T Samsung Galaxy S II SGH-I777] dhaliwal925:
For your information, your most recent build has been working flawlessly on my CM 10.2 HTC One. I love it! :D
[AT&T Samsung Galaxy S II SGH-I777] maluus:
are you planning to work on kitkat email app too? new ui is much better than previous versions.
[AT&T Samsung Galaxy S II SGH-I777] mrd7rs:
i love your mod. anyway to make the colors inverted?