yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] GerooTech:
I used the GoogleEmail.apk from the post on page 5 and worked with me even without a restart :)

i am on Evolution 2.1.2 (4.0.2)
[Android Software/Hacking General [Developers Only]] magn2o:
Does this also block/ignore remote-wipe requests?
[Android Software/Hacking General [Developers Only]] rafsi:
works great on NexusBeam - v4.1.0... Thanks!!!
[Android Software/Hacking General [Developers Only]] Shawtux:
couldnt get it to work on MV 2.12.25

if i tried to install it it failed, if i tried to replace the Email.apk it didnt recognize it... :(
[Android Software/Hacking General [Developers Only]] rafsi:
It did not install for me as well... when I copied the two files over I had to rename them like email.apk to emailgoogle.apk. I also had to change the owner back to root and permission to 744. Ie owner read and write, group is read and others as read.
[Android Software/Hacking General [Developers Only]] Shawtux:
this didnt work for me either... calendar still not showing up... rebooted twice and stuff and nothing... could be our exchange server :(

---------- Post added at 08:30 PM ---------- Previous post was at 08:27 PM ----------

page 1? page 5 or other?
[Android Software/Hacking General [Developers Only]] mattb3:
This is a friendly request to mod the latest Email.apk for the no security hack. The latest (4.03) version of Email includes a search capability which is a feature a long time in the making. The stock 4.03 email apk can be found here: http://www.mediafire.com/?xle7scwd3s8p3t5 to make it easy. Thank you much.
[Android Software/Hacking General [Developers Only]] ys222:
one step ?

anyone can provide single ZIP or APK that can be install in one step ?

As someone that change rom frequently, I find this operation annoying :-)
[Android Software/Hacking General [Developers Only]] mattb3:
The zip provided by the OP can be flashed in recovery.
[Android Software/Hacking General [Developers Only]] burnout11:
Not working for Desire HD using Lord's ICS Beta (4.0.3):

- just replacing EmailGoogle.apk from Page 5

- replacing Email.apk from Post 1

- FC's with EmailWithSecurity.apk

need something new :-)
[Android Software/Hacking General [Developers Only]] flakz0r:
This would be VERY appreciated. :)
[Android Software/Hacking General [Developers Only]] ys222:
I assume that since the patch from the main page is only for 4.0.1 (I'm on 4.0.2) - it didn't change anything for me - same lock screen

I will wait for future solution :rolleyes:
[Android Software/Hacking General [Developers Only]] wogfella:
The thread (page 5 is what people are quoting) has 4.0.2 apks.

Please read the whole thread from the start. Cheers!
[Android Software/Hacking General [Developers Only]] haftrige:
@irtehun, Thamk you for the mod, unfortunately it does not bypass the "DeviceEncryptionEnabled" policy, the EAS parser returns "Policy not supported :912". Do you think you can have it bypass that requirement too?

Thanks

---------- Post added at 04:26 PM ---------- Previous post was at 03:31 PM ----------

I am trying to folow the instruction from this site but without success

http://www.droidforums.net/forum/droid-hacks/141253-email-apk-without-exchange-security.html
[Android Software/Hacking General [Developers Only]] Carbon_Rink:
I am using the one from Page 5 and it is working.. just keeps throwing the error that i need to update my security policy.. i click it and say ok and then it comes right back.. is there a way to get rid of this, or is this just something i will need to live with?
[Android Software/Hacking General [Developers Only]] litso:
Can't get it working with Winner00's CM9 build based of 4.0.3 >.<. Keep getting the error that Exchange Services have stopped.
[Android Software/Hacking General [Developers Only]] dc/dc:
So far it's seemed to work like a charm for me! I still set a PIN, but not with the immediate requirement that the policy pushed and the device encryption did not have to be set up which was my big annoyance with my company's policy. Hopefully the thing can actually be wiped if it needs to though. LOL
[Android Software/Hacking General [Developers Only]] LazySmerf:
None of these are working for me, I am running ICS Passion 10.6 on my Samsung Vibrant.

I am currently using Enahanced Email (a $10 paid app), it works for bypassign all security features in exchange 201 (that we have turned on), however the dev is still working on making the calender sync. So for now until some one fixes the security, calender sync, and makes it work on 4.0.3 I am stuck with either a PIN or no calender sync.
[Android Software/Hacking General [Developers Only]] ArtoD2:
4.0.3 would be highly appreciated
[Android Software/Hacking General [Developers Only]] ftc_osiris:
I agree, any help in obtaining a 4.0.3 version would be EXCELLENT!
[Android Software/Hacking General [Developers Only]] sh4z:
Version v4.1 Email / Exchange apk's

Hi Guys,

I have tested the modded 4.0.1 email.apk (from OP; 29th November 2011, 12:05 PM) on TeamHacksung's ICS Build 13.

Unable to get it working ... yet.

I have attached the unmodified version Email.apk to this post.

It is listed as v4.1 internally. See below. :) Hopefully it will be useful to make an updated mod :D
[Android Software/Hacking General [Developers Only]] lucidfox:
Another +1. A lot of larger enterprise admin's (such as my corporation) have the requirement for encrypted storage. Is there a way to have this bypassed as well, along with the pin? I have tried to encrypt my 4.03, but it keeps rebooting and then performing a factory restart! So the encryption bypass would be VERY helpful. Thanks...
[Android Software/Hacking General [Developers Only]] Luiwammes:
+1

I noticed the same and I also would like to know. The ICS rom I'm using (4.03) has email.apk and exchange.apk, whereas the modded versions are called emailgoogle.apk and exchangegoogle.apk

Anyone?

---------- Post added at 04:00 PM ---------- Previous post was at 03:55 PM ----------

Also, does anyone know what the exact modifications are?

I'd be more than happy to make them myself and then post a recompiled version.
[Android Software/Hacking General [Developers Only]] Gwanatu:
After realizing that Enhanced Email isn't syncing the calendar properly at the moment, I decided to look for another solution. I cannot STAND the pin unlock crap, and for whatever reason it seems like Google took the "security lock timeout" feature out of ICS (this is a great feature in Gingerbread that changed the security pin input requirement to a user specified timeout, so for instance you would only have to input it if you were idle for over 60 minutes). Unfortunately the provided APKs don't work for me either, just get a constant FC on ExchangeServices when trying to set up Exchange.

I'm running the latest CM9 Alpha (4.0.3 1/8/12 build) for the Verizon Galaxy Nexus (toro) just for reference here.
[Android Software/Hacking General [Developers Only]] konrad1337:
I would also like to know this. Any idea to the changes needed to make this happen? Would like to apply it to the 4.0.3 edition of the Email.apk.
[Android Software/Hacking General [Developers Only]] sh4z:
First the app needs to be decompiled then the code in smali needs to be edited to bypass the checking routine ... That's probably the easiest... Then it has to be recompiled.
[Android Software/Hacking General [Developers Only]] konrad1337:
I kinda figured that, just was curious on what was actually being changed. Then I was going to take that and apply it to the source and just compile it with the bypass instead of dealing with smali and all that.
[Android Software/Hacking General [Developers Only]] sh4z:
@konrad1337 - I don't think we have the source to the app. their-in the problem lies. If I knew more about android/smali code I would have a go at doing it myself. I too am interested in the actual changes that were made ^^

--edit:

after a bit of research, there is a simple method which is outlined in the below threads. this may/may not be the method irtehun used.

http://xdaforums.com/showthread.php?t=947380 post by; j4mm3r.

http://xdaforums.com/showthread.php?t=729753 post by; afflaq.

$ diff -rup SecurityPolicy.smali smali/com/android/email/SecurityPolicy.smali
--- SecurityPolicy.smali 2011-02-09 02:32:22.269439000 -0500
+++ smali/com/android/email/SecurityPolicy.smali 2011-02-09 02:32:29.634860300 -0500
@@ -1778,7 +1778,7 @@
return v1

:cond_0
- const/4 v1, 0x0
+ const/4 v1, 0x1

From what I understand there is a boolean variable which is checked by the app .. if you set it to true - then it will effectively bypass the security. :)

Although this is all theory/speculation as the code could well be different in the ICS version...
[Android Software/Hacking General [Developers Only]] CaspaTheGhost:
Whacked it on via root explorer and working perfectly after a reboot. This is a must have for me, can't stand the immediate lock. 4.0.3 version is a must...
[Android Software/Hacking General [Developers Only]] konrad1337:
Yea was playing around with the source code for the email apk that is on the cyanogenmod github. Was messing around with trying to make isActive return true from what I saw in another thread. Couldn't get it to bypass the security. If anyone could point me in the right direction.
[Android Software/Hacking General [Developers Only]] konrad1337:
ok, looks like apktool is not compatible with the 4.0.3 version of Email.apk. Was looking through github and it looks like the built in frameworks are only updated to API 14, and 4.0.3 is v15. So either we would need to apply the hack to the source directly, or if someone knows how to get a hold of the android v15 framework.jar, we could recompile apktool to be able to unpack and repack Email.apk. Any help would be appreciated.
[Android Software/Hacking General [Developers Only]] viddy:
I managed to magically build an Email.apk that worked for me from the AOSP 4.0.3_r1-branch after some trial and error.

I have no idea if this is of any help to anyone or works for anyone but me. Anyhow, since it worked for me on my own maguro build of 4.0.3-r1 I thought I atleast could post it here for niceness and in hope that it'll help someone out.

I made some changes to the getInactiveReasons-method (and the isActive-method, but this seems to have been unneeded), and I haven't tested it for more than a few hours. But seemingly it is working, no encryption and no pin.

Edit;

For people who want to patch their own, here's how.

At the bottom of the getInactiveReasons-method in packages/apps/Email/src/com/android/email/SecurityPolicy.java in the android-4.0.3-r1-repo you will find

return reasons;
}
// return false, not active
return INACTIVE_NEED_ACTIVATION;
}

So I thought to myself; there's no reason to need activation, let's just say "LOL NO REASON"

return 0;
}
// return false, not active
return 0;
}

And for some magical reason, it worked.

This seems almost too straightforward to be true, so I'll give you a hefty disclaimer and say that I was as surprised as you probably are (if you are decently surprised)

TL;DR: It worked for me, and that's magical.

If you build this successfully on your own and it works, please tell me so I can remove the stuff i did in the isActive-method!
[Android Software/Hacking General [Developers Only]] CaspaTheGhost:
Great stuff, thanks for sharing! I'll be happy to test it out when I finally give a 4.0.3 ROM a go...
[Android Software/Hacking General [Developers Only]] konrad1337:
Very nice! That is working perfectly for me. Mind sharing what you changed or if you have a github repo you are using point me in that direction so I could make the changes to the source as well? Again, appreciate the apk as it worked perfectly.
[Android Software/Hacking General [Developers Only]] mattb3:
I can also confirm that its working. During setup I still enabled the device administrator, but it didn't require a pin. Great work and thank you much.

Matt
[Android Software/Hacking General [Developers Only]] viddy:
I edited my post now with the changes i did to the method.

The patch ended surprisingly simple after I started reverting random parts of my changes that apparently werent in use.

If I'm wrong and it isn't this simple, and you build this and it doesn't work. Just poke me and i'll throw over the other changes as well.
[Android Software/Hacking General [Developers Only]] konrad1337:
Yea, tried it just with those changes and that didn't work. Immediately asked for a PIN. So it looks like whatever other changes you made was also needed after all.
[Android Software/Hacking General [Developers Only]] wogfella:
This apk works excellently for me...no encryption required despite the permissions needed by my exchange admin.

Copied the original email.apk to a backup location, put the above apk into system/app and checked the correct permissions, set up the email (ignoring the request to set up the device administrator), rebooted and away we go.

Am yet to confirm if calendar is OK, but emails are fine.

THS build 13 for sgs i9000 (4.03), glitch kernel.

Thank you soooooo much.

As soon as I can get to a desktop I'll hit thanks properly!

Now....off to find a decent tasks app that integrates with exchange too!

EDIT: Thanks hit.

I just wanted to confirm that Calendar doesn't sync when using this modified email.apk to bypass.

If I go to the calendar app and choose "calendars to display" then my exchange email isn't there. However if I go to "settings" then my exchange email is shown, and if I click on the email it says "no calendars to display". I have double checked and I do have the option to sync my account for one month including calendar, so it's not that. I suggest that the modified email.apk also needs a modified calendar as well to work fully.

(Not that I'm whining, I love that you can bypass this step and get emails, just letting people know my experience!!)

I'm off to try variations on install steps to double check if it was my process that mucked up the calendar or not (nothing like double checking!)

Thanks again!!!
[Android Software/Hacking General [Developers Only]] wogfella:
Okay it was me.

I cleared data for email and removed my exchange account and rebooted.

I then re-added my account and allowed the administrator actions....which did not ask me to encrypt my phone.

All good, calendar works and email works....no task app but still looking. If anyone has a favourite let me know please??

Thanks again!!
[Android Software/Hacking General [Developers Only]] viddy:
That's strange.

I built it again with only these changes now, and it still works for me.

I'll wipe my device and try again, might be some caching going on.

The other changes I made were to the isActive-method, and if you take a look at that one its pretty simple and it uses the getInactiveReasons-method.

Trying it out now, so i'll post again when i get to the bottom of it.

Edit;

I wiped my entire device, and pushed in the one i built with only those changes. It still works for me.

What i did directly after the wipe and reflash;

First i went through the first-boot Google setup (adding your Google account, setting up WiFi etc), when thats done i entered the Email app.

I then added the account as normal, and it gave me the "Remote security administration" dialogue box;

"The server blah requires that you allow it to remotely control some security features of your Android device. Do you want to finish setting up this account?"

I just OK'd that. Then it asks how often you want to sync etc, and eventually what you want to call the account.

Then it asked to activate the device administrator. I tapped the "Activate"-button and e-mail started popping in directly after. On some tests the naming of the account happened after the Activate-button, but i think that just depends on how fast you are to type it in, if the Activate-dialogue pops before or after.

I have attached the new APK with only the change from my last post.
[Android Software/Hacking General [Developers Only]] CaspaTheGhost:
Just waiting for the next release of a ROM then I'll be trying it out...
[Android Software/Hacking General [Developers Only]] CaspaTheGhost:
ROM released so gonna give this a try...
[Android Software/Hacking General [Developers Only]] konrad1337:
So went ahead and blew out my build directory and rebuilt everything from scratch. Worked that time so, sorry for the false alarm. Just appreciate the find. Nice to have that as part of my own ics build now :-)
[Android Software/Hacking General [Developers Only]] tatnai:
thanks, used this version on my E3D evervolv ICS p8; dropped it into the ROM before flashing, works as promised. this should really be added to OP.
[Android Software/Hacking General [Developers Only]] CaspaTheGhost:
No joy for me, force closes... On Bigxie's latest 4.0.3 Galaxy Nexus ROM which has the Google suffixed apk's for email and exchange when I check via root explorer...

The main ROM has the non prefixed ones but the Gapps zip that accompanies the ROM has the prefixed ones...

Uploaded all of them if anyone can help?
[Android Software/Hacking General [Developers Only]] konrad1337:
I recommend another gapps. There are a couple of them around in the forums. I checked the ones I got from winners cm9 and they didn't have the Google ones. The email app is built from so shouldn't be a need to have it in gapps anyways.
[Android Software/Hacking General [Developers Only]] viddy:
If you have all of these 4 files in your ROM, no wonder it doesnt work.

You're only supposed to have Email.apk and Exchange.apk, or the Google-variants.

Since Email and Exchange-apks are in AOSP anyway, just get a 4.0.3-r1 build of Exchange.apk and it'll work perfectly.
[Android Software/Hacking General [Developers Only]] pedronunes:
Hi all,

thanks for this solution, seems to be working just fine, no pinlock anymore.

But getting the same notification error, but when ignored mail is still syncing. So I'll just have to live with that.

UPDATE.

Just upgraded to the latest rom from Tytung, ICS CM9 V1.1 , notification gone now, still working great without pinlock. :)
[Android Software/Hacking General [Developers Only]] CaspaTheGhost:
Thanks guys, I'll give it a try tonight... Only the Google versions are installed, its just that in the main ROM zip there is the non Google ones and in the Gapps zip there in the Google ones... As thats flashed last thats what I have... I'll replace both the Google ones with non Google ones, namely the Email one supplied in this thread and the Exchange one from the main ROM zip...

I'll report back tonight...
[Android Software/Hacking General [Developers Only]] CaspaTheGhost:
Damn, still no joy... Replaced both but then they both force close... If anyone fancies giving it a whirl with the apk's I posted, light refreshment and a pat on the back awaits...
[Android Software/Hacking General [Developers Only]] Reel:
I followed the method outlined in this post to do some smali editing:

http://xdaforums.com/showpost.php?p=21406216&postcount=122

I got the original APK from JaredTheGreat 4.0.3 Beta for Evo 4G.

I used ADB to push it then set up the account and canceled out of allowing the device administrator.
[Android Software/Hacking General [Developers Only]] sh4z:
Viddy's Email.apk seems to be working for me :) Thanks mate.

Running Team Hacksung ICS Build 14 - Glitch Kernel v14 pre5

-update-

Also working on Onecosmic's ICS RC3.1 - Neo Kernel 3.0.8 RC3.1
[Android Software/Hacking General [Developers Only]] CaspaTheGhost:
As its the one suffixed with Google I'll give it a go tonight... Fingers crossed... If not, could someone possibly make the amendments to the EmailGoogle.apk I posted a few pages back?

My knowledge doesnt go as far as smali editing!
[Android Software/Hacking General [Developers Only]] CaspaTheGhost:
No joy with the last one, went through the process but cancelling has no effect as the message just keeps popping up... On 4.0.2 one, just turned it on but it didnt enforce the lock...
[Android Software/Hacking General [Developers Only]] CaspaTheGhost:
Gonna try a patch I found, but also had a word with one of the IT guys so be in the clear!
[Android Software/Hacking General [Developers Only]] chadstone30:
thanks x 1,000!!
[Android Software/Hacking General [Developers Only]] dumtidum:
Hi,

I installed the APK from Page 5 and everything works just fine.

But: What will happen when Google starts rolling out 4.0.3 OTA? Will I still be able to update?

Thanks
[Android Software/Hacking General [Developers Only]] CaspaTheGhost:
There's a couple of threads with .3 versions that people have working on other devices, but I haven't been able to get any to work on my GN. Issue I have is the ROM I am using has the Google suffixed Email and Exchange apk's whereas the modded ones are the ones without, I simply get constant force close on email when I try them.

Still looking for a solution.
[Android Software/Hacking General [Developers Only]] lucidfox:
I have a HTC Sensation, rooted, running Android Revolution HD™ 6.1.0 (ICS 4.03 with Sense 3.6).

It contains Mail.apk (which appears to be an HTC propietary mail.apk). I have installed Viddy's Email.apk after uninstalling Mail.apk. Viddy's Email.apk installed and launched, but Exchange was not listed as an option. Only POP3 and IMAP. I tried installing the Exchange.apk, to no avail. How do I get the exchange options....

OR... is it possible to modify HTC's Mail.apk for security bypass?

I have attached the Mail.apk
[Android Software/Hacking General [Developers Only]] ipaq6300:
Same with me, I am running insertcoin 4.4.1 ics 4.0.3 for htc senation. Mail.apk from htc use for exchange. The googlemail.apk is for pop and imap only. Pls. help to mod the mail.apk from htc.
[Android Software/Hacking General [Developers Only]] jsomething:
ok, so im lost. read thru, but with so many ver of apps uploaded and different roms. not sure which to try.

i have a lte neuxs on the stock 4.02 but rooted, just haven't found any roms i wanna flash yet.

so which app should i try? and i use root explorer to remove the stock email apk and exchange apk from the system folder, then move these into it and install?

thanks for any help. i'm using moxier mail now to get around the pin, and it works but 20$ seems like a bit much when the trail runs out. i'd rather donate some to a dev anyways.
[Android Software/Hacking General [Developers Only]] ipaq6300:
I like to mod the stock one since it integrate with exchange calendar better
[Android Software/Hacking General [Developers Only]] CaspaTheGhost:
Use the one on page 5 by Phyrefox if you're running a 4.0.2 ROM... You just need to delete or rename the existing one, then replace it with the one you download. Reboot and then setup the account again and away you go...

I still haven't got a working version for 4.0.3... sigh...
[Android Software/Hacking General [Developers Only]] konrad1337:
I'm running 4.0.3 CM9 by winner, and it is working fine. I'll attach the one I built using the changes recommended here.
[Android Software/Hacking General [Developers Only]] jsomething:
worked great, just moved the old app and the little file with it out of the system folder, moved the new one in. tried opening and installing,but that failed. but when i checked my apps it was there, i

set up my info, all synced up and good to go.no pin crap to deal witth and multi accounts set up, which moxier couldnt do.

can you guys direct me to a pay pal of who ever gets credit? id like to send a few bucks their way. this was driving me nuts.
[Android Software/Hacking General [Developers Only]] rustyx3:
I have reports that my automated Email patch works with ICS 4.0.3. I think it is better than the mod provided here because it patches your own Email apk instead of you having to download someone else's, potentially incompatible Email apk.
[Android Software/Hacking General [Developers Only]] ipaq6300:
the problem is that we dont have patch for mail.apk in htc sense 3.6

the email patch is for non htc device only