yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] Scalee:
They came from a titatium backup, the rom and gapps don't contain them.

I know the patching works fine, i just keep getting the security message.

Everytime i place the apps and reboot, i get the message "upgrading androind" "applicion 0 of 2" (Thus Email.apk, Exchange2.apk)

Could you maybe PM me your Gapps package so i can test that?
[Galaxy S II Themes and Apps] Scalee:
Just to verify.

Should you have a device administrator? i have always considered the patch to have failed when you have to add the device admin.

Or did i misunderstand that you have to add the device administrator but the policies will be ignored?

(In an older cm7 version you could totally remove the device administrator without issue)
[Galaxy S II Themes and Apps] rustyx3:
Beginning with patch version 3.2, you do need a device administrator. That's because JB OS now has built-in checks for the presence of a device admin, that is much harder to bypass.

So, let the app install a device admin. The only indication that the patch has failed would be a restriction on screen lock methods (but it can also be due to other enabled features, e.g. enabling a user certificate store may also enforce a pin).
[Galaxy S II Themes and Apps] Scalee:
So in the end it was an misunderstanding on my part. DOH

Thanks ;)
[Galaxy S II Themes and Apps] littlejohn07:
Tried this on latest firmware (FH13) on Samsung S2, but does not work. Apks are in the system/app folder along with backups, but they appear to be a non working app no icon. I'm I doing something wrong or has the newest firmware blocked this. By the way great little program.
[Galaxy S II Themes and Apps] m03sizlak:
Works great on Nexus 7 JRO03D, thanks.
[Galaxy S II Themes and Apps] arbitarytwist:
Well.... anyone?
[Galaxy S II Themes and Apps] zman519:
Could you post 3.0 i'm on cm9.1 & i guess i just hate the idea of my school having Device admin on MY PHONE:eek:
[Galaxy S II Themes and Apps] s2kdriver80:
Works on 3.2 HC?

Will this patch work on the Tab 7.7 with 3.2 Honeycomb? Any foreseeable adverse effects? Thanks!
[Galaxy S II Themes and Apps] tata_brada:
Works excellent on LPX. Try remove exchange account and clear aplication (email) preferences.
[Galaxy S II Themes and Apps] purian23:
Sync Issue

Just a question, this could completely be on my end. My email constantly fails out and re-syncs for now reason. Over 200+ emails just starts from 2 weeks prior to current, by randomly re-syncing. Every ROM, every clean install, ever cache cleaning, still randomly happens. Again this could just be my company trying to be smarter than our bypass :)

Thanks
[Galaxy S II Themes and Apps] w0rdie:
Just wanted to chime in and note that I experience the exact same issue -- thought it was just me. :eek:
[Galaxy S II Themes and Apps] TuxDude:
I observed this problem with my OTA JellyBean Galaxy Nexus build JRO03O once in around 3 weeks of usage.
[Galaxy S II Themes and Apps] darkhector:
Same problem here. Worked great on FF18, but after updating to FH13 the Apps are listed as invalid.

Phone: SPH-D710
[Galaxy S II Themes and Apps] zman519:
The whole way androids email works with M$ email servers is BS why did google & or M$ do this?!? There should be some kinda check boxes for all the permissions. To allow the owners of phones to keep control of there device. (This kinda admin rights is NOT required on a PC desktop OS) IDK how the network sys admins end works. But in my case its for a school .edu email & they have NO RIGHT TO ANY ADMIN ANY THING ON MY devices. So there is NO reason the sys admin of the schools email system would want & or need "remote wipe" or any of the things it want control over.

If any email system admins read this could you shed some light on this? I just don't understand? It creeps me out! I understand how if I was working for Bowing or GE & was tying my works email to an android that level of admin would be required. But a school email? Its not working for a company that makes Spacecraft, Army Tanks or Fighter Jets. :confused::rolleyes::banghead:

Rocking cm9.1
[Galaxy S II Themes and Apps] artonethree:
My compnay IT dept won't allow us to use andorid devices specifically because of this type of hack. Even though I sign something saying I won't bypass the PIN unlock, they know it's possible and that is unacceptable to the auditors. So my questions 1. does the hack work for 4.1 jelly bean (I assume it does based on your version 3.1 note). And 2., is there any way for the exchange server admin to override these hacks?
[Galaxy S II Themes and Apps] Sardo Numspa:
I'm on jb 4.1 and have used this on both my gsII and xoom, so for question 1, its a yes, it does work on jb.

As for your other question, I do t know.
[Galaxy S II Themes and Apps] rustyx3:
This patch requires root, it is not really a hack, it doesn't break into anything, YOU break into your device when you root it.

If a device is rooted, there is no way to enforce anything remotely, period. Those who think other (non-android) devices are somehow more secure when jailbroken, are being duped.

If a company wants to take control over its devices, it should prevent rooting in the first place.
[Galaxy S II Themes and Apps] albuntu:
Strange thing here. Can't get passed the account settings screen. Just tells me that the server is not responding. Although the server is fine on my Sensation. Cleard all data for the email app, but same issue. Any Idea?

Edit: we just migrated to Exchange 2011. Maybe there is the problem?
[Galaxy S II Themes and Apps] kokesh:
CM10, SGS2 - all went fine, but it still requires security. Strange.
[Galaxy S II Themes and Apps] artonethree:
So, on jelly bean (maybe older versions were different), there should be no way for me, the end user, to get around the PIN lock set by the activesync policy without rooting the phone. I'm hoping this is the case so when they go to test my phone they'll see that it's secure.
[Galaxy S II Themes and Apps] jnichols959:
Worked perfectly for me. I have a Galaxy S III running 4.0.4 with a google Email.apk instead of the stock samsung email app and it works like a charm. Thank you so much.
[Galaxy S II Themes and Apps] ternzer:
I can confirm this works on the galaxy note 10.1 as well!

it will error out. but when it says it cant find the email app just type:

SecEmail_Tablet.apk

and it will continue.

thanks for such a great tool. i have now hacked my S3, nexus, and galaxy note 10.1
[Galaxy S II Themes and Apps] thait84:
I can't seem to get it to work on my Samsung Galaxy S3 with the leaked JellyBean that has TouchWiz. Whenever I push it back to the phone, the mail app disappears. I have removed SecExchange.odex and also SecEmail.odex as well.

This used to work fine for me on ICS. If I can help in any way, let me know.

Edit: Nevermind. Once I do an adb push back to the phone, I had to update my permissions using chmod 644 on SecEmail.apk and SecExchange.apk. :)
[Galaxy S II Themes and Apps] prom311:
Works like a charm on my Vibrant running ICS Passion 13.1 with android 4.0.3. Thanks alot!
[Galaxy S II Themes and Apps] godzilla123:
I did what you said and it seems to work till now. I was NOT prompted for device admin access (at least not yet.. after 15 mins).. However the phone rebooted itself just now. Has anyone experienced this problem?

I had quarantined email client via app quarantine and applied the patch without un-quarantining it. Will this cause any problems? If so how to fix.
[Galaxy S II Themes and Apps] s2kdriver80:
Is this patch designed to work with Honeycomb as well? Interested on patching my Galaxy Tab. Any foreseeable adverse effects or will it break anything? Thanks!
[Galaxy S II Themes and Apps] el_angelo:
ty

this patch worked for me on CM10@moto defy. thnx a lot!
[Galaxy S II Themes and Apps] OSully:
My buddy just received an update on his sprint epic touch 4g (galaxy s II). Previously the patch worked fine. Now its running, but the app is gone from his app drawer when the phone reboots. When I check his system/app folder, the apks are there but the icons are gone. Any ideas?
[Galaxy S II Themes and Apps] mkhappy:
I dont know what I am doing wrong, I am using Omega ROM on SGSIII latest version, I deleted the secur_email and Exchange files using ES Explorer. I then replaced with ICS Email and Exchange and I get message when running this patch Cant Find the file work/email.apk

Appreciate if someone could guide me what I seem to be doing wrong here.
[Galaxy S II Themes and Apps] Golubev:
I'm using HOX JB Sense HTC ROM and only find out Mail+nonprime.apk in system\app folder. Running your patch with no luck. Does any workaroung to remove Exchange policy from mail in Sense roms?
[Galaxy S II Themes and Apps] dmoses1969:
Just tried email-policy-patch-3.2 on Galaxy nexus ParanoidAndroid rom and appeared to work but still require device lock activated. Restored backup and tried again with email-policy-patch-3.1 and it worked just fine as it has every time I flash a new rom.

Those having problems try using an 3.1 version of the patch. The only thing I have to do different with it is type Exchange2.apk in cmd window when I get the message Echange not found.
[Galaxy S II Themes and Apps] monkley:
Version 3.2 is working for me on a Galaxy Note 2 (Jelly Bean) :)
[Galaxy S II Themes and Apps] devstar2003@yahoo.co.uk:
i'm having same prob too. Any idea how to get round this? Alternatively - can someone post their patched apks pleae?
[Galaxy S II Themes and Apps] devstar2003@yahoo.co.uk:
i think i've found the answer. When the patched apks were being pushed back to the phone, there wasn't enough space in the system/apps folder and so not all of the apk was getting transferred. (Not sure why i wasn't getting an error message due to lack of space) I moved some of the bloatware apks to another folder and after rebooting, applied the patch. Hey presto!

Hope this helps someone..
[Galaxy S II Themes and Apps] kaz_xda:
same problème on Galaxy S2 and ParanoidAndroid, gapps 20121011, is it possible to obtain the v 3.1 to try.

Thanks
[Galaxy S II Themes and Apps] Dexter_nlb:
confirmed working on Galaxy Note2 N7100 (ALJ1) edition
[Galaxy S II Themes and Apps] BA_Tech:
3.2 didn't work with CM9 nightly 20121021. but 3.1 work just fine.
[Galaxy S II Themes and Apps] kingwp1:
The patch didn't run successfully for me. I attached my debug log. Could someone who knows whats going on help me out?
[Galaxy S II Themes and Apps] slaycio:
It seems that adb had trouble with pulling apks from your device. Try to connect with adb manually and after connection try to find those apks and read them. If you will succeed it than script will surely work.

Also check usb debugging and unknown sources installation.

You can also try to copy those apks using some root explorer to see if you have proper roof access to them.

... slaycio

PA2.5 + Dorimanx 7.4 + M250S
[Galaxy S II Themes and Apps] kingwp1:
I couldn't get any of those apk's manually so I just restarted the computer and tried the patch again. Now I'm up and running! Thanks
[Galaxy S II Themes and Apps] dy/dx:
Hi,

Is there also a way to debug and/or disable individual policies?

I set up my own Exchange server (Zarafa + zpush) and I want to have policies for myself.

However, now the external SD card is also always encrypted and I do not understand if and why this policy is pushed (the policy settings in z-push are weird and not documented).

TouchDown could display the pushed policies, is this possible for Samsung too?

Thank you
[Galaxy S II Themes and Apps] kaz_xda:
The patch 3.2 is succeffully apply on the latest ParanoidAndroid, with gapps 2012101.
[Galaxy S II Themes and Apps] theshowman:
Thanks for your efforts.

I just tried the patch on an ICS 4.0.4 Galaxy S Blaze 4G. The patching process seemed successful.

But I have a weird problem where I can't get rid of the pre-existing security PIN lock that was enforced by my corp mail EAS.

So, here is a low down

After reboot, it did remove the Email icon ** but ** the Inboxes from my EAS and Yahoo accounts remained. I thought they were supposed to be gone!

However, when I went to Email settings, the accounts weren't there (but Inboxes were there as per above)

Furthermore, the security PIN lock was still enforced, and I couldn't remove it (grey out option indicating a device administrator was locking it).

so, using TB, I went and cleared the data from Email. After reboot, the the security PIN lock was still enforced.

after that, I set up the corp email all over - all went well - didn't seem to ask for any enforcement (maybe indicating that the patch worked) - but the security PIN lock was still enforced

So, any ideas as to how to "remove" the security PIN lock ?

thanks again,.

** Update **

Solved the problem:

After trying just about anything, including restoring original email client using Nandroid back up, the solution was to "Clear Credentials" in the 'Security" setting.

After that, it allowed me to delete email accounts, including EAS. After than, I re-installed the patch and it is all working great!

To sum up, this patch works on Samsung Galaxy S Blaze 4G running ICS 4.0.4 LH5 upgrade

Thanks again
[Galaxy S II Themes and Apps] solar666:
Hi all,

Just a question for those running this hack together with jellybean.

Is it normal for you as well that email are only pushed to your device if active sync is turned on?

For me as long as active sync is turned off it won't sync the mails with the exchange server.

This is new to me since together with ICS this was not needed.

Can some using this hack within jellybean please let me know his experience? Confirm or decline my observations?

Thanks upfront.
[Galaxy S II Themes and Apps] mmalka:
Any chance of having a new version supporting Google Apps version 4.2?
[Galaxy S II Themes and Apps] ajislav:
another happy user of this hack :)

worked just fine with my galaxy S2 running CM20121029...

big thanks
[Galaxy S II Themes and Apps] Dormidont:
Thank you very much for this patch

Worked wit SE Xperia Arc (though I had to rename SemcEmail.apk to Email.apk and transfer patched apks manually back to /system/app via SD card)
[Galaxy S II Themes and Apps] merog:
This is awesome. Thank you very much!

The instruction was a little hard to follow at first. I had to pull the APKs patch them and push them back. /system/app is mounted read only, you have to use root explorer to mount it read write before you can replace (push) the recompiled APKs on the phone. After that, rebooted the phone, reconfigured the mail and it just works great with no PIN required :) Thanks again!
[Galaxy S II Themes and Apps] solar666:
No one?
[Galaxy S II Themes and Apps] malhor:
Nope, working just fine for me. Sync off or on, if exchange settings are set to push i receive the notification.

Envoyé depuis mon GT-I9100 avec Tapatalk
[Galaxy S II Themes and Apps] :
Today my ICT department enforced the security lock because I was using the stock email program to make a connection to my work's Exchange server. Instead of swyping to log in, I now had to choose between a pincode or a password. I chose the pincode.

When I stumbled on this beautiful patch, I tried to apply it on my rooted SGS2 with the latest Revolt rom.

First, the patch didn't work and told me to manually change the Email and Exchange2.apk's in the system\app folder.

I installed Root Explorer, got Read/Write access and went to this folder. I deleted the Email and Exchange2 apk's that I found in there, and replaced them with the Email and Exchange2.apk's that I found in the socalled 'work' folder from the unzipped email-policy-patch-3.2 file.

I then applied the patch again, and now I got the message that the patch was aborted, because the Email and Exchange2 apk's were already patched. Great, I thought!

I rebooted my phone, but couldn't find the Email icon in my app drawer...

Used Root Explorer to go to the system\app folder again and tried installing the (patched) Email and Exchange2 apk's. This didn't work.

My 2 questions are: did I do something wrong trying to patch the files? And how can I get the patched Email program to work (so that I don't have to use the pincode security barrier anymore)?
[Galaxy S II Themes and Apps] Dormidont:
Yes, you did something wrong

That something is: you didn't change permission on your new apks

Permission must be rw-r--r--

Use your root explorer program to set these permissions right:

Owner: read, write

Group: read

Others: read
[Galaxy S II Themes and Apps] :
You're my hero of today :). I changed the permissions to rw-r--r-- for both the Email and Exchange2 apks, rebooted, and there my email program was back again! Added my account, and gone is the keyguard!

Again, thank you for your great help.
[Galaxy S II Themes and Apps] TheMaster666:
Works great on JB. (see Signature)

Just had to re-enter all my email accounts..

2 Exchange 2007

1 Exchange 2010

1 IMAP

Guess I need to back this up with Titanium but I wasn't sure if a restore would screw something else up.

THANKS...
[Galaxy S II Themes and Apps] htc_socius:
Tested OK on Xperia Neo MT15i

Hi,

Just a few lines to give you a big THANK YOU. I have installed the patched APKs on a Xperia Neo MT15i and everythings works fine... without the pincode prompt every 10 minutes. I have also taken a look at the provided source code. Nice and clever fix.

My Xperia Neo V is running with unlocked bootloader, ClockWorkMod 5.0.2.7, ROM Ultimate HD 2.0.1 (ICS 4.0.4) and Super Stock Kernel (2.6.32.9-perf #1 PREEMPT, with a stock camera drivers), for your info. I followed your instructions, but though I had "Debug USB" and "Unknown Sources" checked on, the .cmd was not able to push the .APKs into /system/app. I had to remove the original ones manually (/system/app/SemcMail.apk and /system/app/Exchange.apk), upload the patched ones into my SD Card, move them to /system/app using Root Explorer, change the permissions to rw- r-- r-- in both APKs, and reboot my phone.

After configuring again my Exchange account, I was asked to accept the Exchange Policies, but... no pincode / password requirements after that. Sync works fine, no issues, no battery drain... and of course, NO PASSWORD REQUIRED.

Thanks again. Hope this info is useful to other MT15i users.

Bye!!!
[Galaxy S II Themes and Apps] CrackaBoi:
Exchange-enforced security policy. Exchange server can require that the device can be remote wiped for example, and that a PIN code is used.
[Galaxy S II Themes and Apps] jameslfc5:
Scary thought that :s I'm using the latest cognition so this is already integrated :)
[Galaxy S II Themes and Apps] CrackaBoi:
Cognition ROM has this hack included?
[Galaxy S II Themes and Apps] CaspaTheGhost:
No, I believe it is using this version KG3/KG6 E-Mail APK for device-administratorless Exchange access as I made the request to DesignGears...
[Galaxy S II Themes and Apps] CrackaBoi:
Hmm I had not seen that before. Isn't that a better option than this hack, strictly speaking?
[Galaxy S II Themes and Apps] monkley:
I can confirm that this is unrelated to this hack.
[Galaxy S II Themes and Apps] CaspaTheGhost:
DesignGears is removing it from Cognition due to a wakelock issue, definitely aint running mine with the lock on so I'll be testing the apk out myself on Wednesday...
[Galaxy S II Themes and Apps] CaspaTheGhost:
Unsure whether the versions in the linked thread are using this method, but are those with FC issues using the apk supplied here rather than modding the one from their ROM?

Regardless I'll be looking into this further as its a must have mod...
[Galaxy S II Themes and Apps] skarbnik:
thank you very much:)
[Galaxy S II Themes and Apps] dan3o3:
Anyone able to supply a P7500 (3.1) Email.apk with the patch?

The froyo patcher seems not to work and i don't have all mentioned files in my ROM to patch myself. Froyopatcher seems also not to work, maybe it's the touchwiz 3.2 email.apk.

Regards,

Dan
[Galaxy S II Themes and Apps] zidane:
by keyguard policy are you referring to how word prediction is disabled in the samsung email app?
[Galaxy S II Themes and Apps] rustyx3:
No, keyguard policy is the minimum length of the pincode, and also how soon you have to reenter it.
[Galaxy S II Themes and Apps] itsme_4ucz:
Thanks a lot, worked great on Lite'ning rom!!!
[Galaxy S II Themes and Apps] DarkDvr:
Works, but is extremely buggy with non–stock keyboards.. Same as non-hacked samsung email app though.. So it's not your fault.

Could you hack a standard AOSP email.apk the same way? Never had problems with non-Samsung versions.
[Galaxy S II Themes and Apps] salamt:
2.3.5

Since 2.3.5 is out, are you planing to release a hacked 2.3.5 version?

I wish I had some programming skills to do it myself :p
[Galaxy S II Themes and Apps] xpozed:
yes please release a 2.3.5 version!!!

I'm on Criskelo v22 with Siyah 1.7.7

I've tried the 2.3.4 hacked Email.apk but it doesn't bypass the security settings. I still get "Update security settings" in my notifications menu.
[Galaxy S II Themes and Apps] nikzDHD:
I've already done it on gauners thread.

http://minus.com/lcfdo3IJyvjub

Copy and place into system/app and change permissions.

Uses a different method compared to this one but does the same thing.
[Galaxy S II Themes and Apps] gauner1986:
Actually this is true.. The Email.apk causes the CPU to stay alive for a long period of time when the display is turned off, thus causing a huge battery drain.. I am not sure if this is caused by any of our mods atm or if this is just a stupid Samsung-bug.. This and my mod cause the same battery drain behavior. Email-Push is NOT the culprit (it's turned off for me).
[Galaxy S II Themes and Apps] nikzDHD:
I've not had any major issues like that, when I've put it on manual. There is a bug that creates a wakelock. I've modified the aosp version which has the wakelock bug fixed give that try.
[Galaxy S II Themes and Apps] claimui:
I've read the thread on the wakelock bug but I would like a modified Samsung Email.apk, not the AOSP one. Can somebody fix the wakelock issue with the Samsung app or do we have to wait for Samsung to do it?
[Galaxy S II Themes and Apps] greg-uk:
Another very happy customer

Hey rustamabd,

Just wanted to say thanks for a great job:)

SGS 2 running SuperNexus ROM, Build 5, Jelly Bean 4.1.2, JZ054K.

I followed the instructions and the install went like a dream, everything seems to be working a treat.

Great idea to patch the APK's on the fly like that, proper robust coding. Makes a refreshing change:)

Thanks a million.

Gerg
[Galaxy S II Themes and Apps] squire23:
Using with SuperNexus Build 5. Have Email syncing no problem but can't get Contacts & Calendar syncing. Can anyone help with this?
[Galaxy S II Themes and Apps] solar666:
Are you using push?

without push it will not sync calender, I am not sure about contacts.
[Galaxy S II Themes and Apps] squire23:
No I wasn't actually. On CM9 I had it set to check every 30 minutes cause I get so many bloody emails. So just used the same settings when I tried any of the 4.1 ROMs. I'll try push now & see does that help. Thanks for the advice.

squire
[Galaxy S II Themes and Apps] cool400:
Could anybody confirm that this patch also works with the Samsung Galaxy Note 2 (running Omega V6.0)?
[Galaxy S II Themes and Apps] OSully:
I don't use super nexus, but I do not use push and my calendar syncs fine.
[Galaxy S II Themes and Apps] squire23:
Email & Calendar working fine but still can't contacts to sync. Thanks for the suggestion though. Anyone got any ideas?

squire
[Galaxy S II Themes and Apps] mzzw:
did not work for me

looked good in dos window; phone rebooted. two pass code locks are still set.
[Galaxy S II Themes and Apps] apascual89:
3.1?

Hi, does anyone have the 3.1 patch somewhere?

Thanks