Post Reply

[Xposed Mod] Bypass Exchange Security Policy for Nexus devices and other AOSP ROMs

OP shantzg001

14th October 2013, 03:04 PM   |  #1  
OP Recognized Developer
Flag Restaurant at the end of the Universe
Thanks Meter: 35
 
476 posts
Join Date:Joined: May 2006
More
This mod should be used along with Xposed ( http://forum.xda-developers.com/show....php?t=1574401 ).

This mod will bypass the Email app from becoming device admin for your phone and prevent it from setting up any security restrictions on your device including pin/password/remote wipe, etc. There are a couple of other mods out there none of which work right now (1 doesn't work at all and 1 doesn't work for N4 4.3)

Instructions for users
- Remove your existing email account from phone and reboot
- Install Xposed installer (from link above)
- Install this mod (Download apk from here: https://github.com/shantanugoel/Exch...sForXposed.apk )
- Enable the mod in xposed (Preferences for other devices/versions coming Soon)
- Reboot
- Add your email account again. This time, it will ask you that the email
might require security restrictions, say yes to it but it will never actually set the restrictions.
- Done.

Instructions for developers
- Read the xda link at the top and go through basics of xposed development
- Install xposed as an android sdk addon on your system
- Clone this git repo
- Import in Android Studio
- Make changes
- Build

Credits:
- rovo89 from xda (for creating xposed)
- mpcjanssen from xda (for original mod)

Source code: https://github.com/shantanugoel/ExchangeBypassXposed
Apk: https://github.com/shantanugoel/Exch...sForXposed.apk
My website: http://tech.shantanugoel.com/
My twitter: http://twitter.com/shantanugoel

Feel free to ask your questions, provide feedback here, or my website or on my twitter.

Changelog:
1.6 26-Jan-14
Cleanup. Remove Security Policy changed notification.

1.5 22-Dec-13
Allow updation of policy keys properly on Exchange server's request otherwise sync may hang

1.4 16-Dec-13
Fixing the fixes

1.3 15-Dec-13
Fixed random email app crashes

1.2 14-Dec-13
AOSP ROMs support. Removed some unnecessary logging.

1.1 28-Nov-13
KitKat support. Tested on Nexus 4, Nexus 5, Nexus 7 2012, Nexus 7 2013

1.0 14-Oct-13
Initial version. Working for Nexus 4 Android 4.3
Last edited by shantzg001; 25th January 2014 at 10:26 PM.
The Following 15 Users Say Thank You to shantzg001 For This Useful Post: [ View ]
24th November 2013, 05:07 PM   |  #2  
OP Recognized Developer
Flag Restaurant at the end of the Universe
Thanks Meter: 35
 
476 posts
Join Date:Joined: May 2006
More
Update: This has now been tested to work successfully on all stock or nearly stock JellyBean (4.3) and KitKat (4.4) ROMs on Nexus 4 / Nexus 5 / Nexus 7
The Following User Says Thank You to shantzg001 For This Useful Post: [ View ]
25th November 2013, 07:16 PM   |  #3  
OP Recognized Developer
Flag Restaurant at the end of the Universe
Thanks Meter: 35
 
476 posts
Join Date:Joined: May 2006
More
A beta with some additional checks for Android 4.4 and also compiled with 4.4 SDK. Please try it on your phones (even on 4.3 to make sure that compatibility remains fine for older phones) and let me know.
Last edited by shantzg001; 28th November 2013 at 06:38 AM.
28th November 2013, 06:39 AM   |  #4  
OP Recognized Developer
Flag Restaurant at the end of the Universe
Thanks Meter: 35
 
476 posts
Join Date:Joined: May 2006
More
Thanks folks who tested the beta. Have now removed the beta link and the release version can be installed from links given in OP or within the xposed module downloader.
The Following 2 Users Say Thank You to shantzg001 For This Useful Post: [ View ]
29th November 2013, 06:05 AM   |  #5  
kurniawan77's Avatar
Retired Forum Moderator
Flag ☺☻♦▼▼┘
Thanks Meter: 522
 
1,474 posts
Join Date:Joined: Nov 2008
Donate to Me
More
X- actly what I was looking for!!!!!

Sent from my Nexus 4 using Tapatalk
14th December 2013, 03:03 PM   |  #6  
OP Recognized Developer
Flag Restaurant at the end of the Universe
Thanks Meter: 35
 
476 posts
Join Date:Joined: May 2006
More
Version 1.2 is out with support of AOSP based ROMs (Thanks to adumont)
15th December 2013, 02:08 PM   |  #7  
OP Recognized Developer
Flag Restaurant at the end of the Universe
Thanks Meter: 35
 
476 posts
Join Date:Joined: May 2006
More
Some folks have been facing random email app crashes when using this mod. Could you please try out the attached beta version that should hopefully fix this?

Removed the beta. Please update to latest version through xposed repo or github.
Last edited by shantzg001; 19th December 2013 at 03:24 PM.
17th December 2013, 06:00 PM   |  #8  
Ipse_Tase's Avatar
Senior Member
Thanks Meter: 60
 
353 posts
Join Date:Joined: Feb 2012
Does this work with TouchDown as well or just Exchange? My company decided (in its infinite IT wisdom) to use this app instead of the built in Exchange client.

https://play.google.com/store/apps/d....nitroid&hl=en

It would be AWESOME if it did.
18th December 2013, 06:27 PM   |  #9  
Member
Flag Miami
Thanks Meter: 3
 
92 posts
Join Date:Joined: Dec 2011
More
Hi! I followed the instructions, and the email app hangs at "syncing folders". I don't get a crash, it just stalls on "email is waiting to sync" or whatever that prompt is.

Nexus 5
4.4.2 stock
rooted
Other modules: GravityBox, Greenify

Thoughts? Anything additional I can provide? Thanks for your hard work!
19th December 2013, 02:07 AM   |  #10  
Junior Member
Thanks Meter: 1
 
7 posts
Join Date:Joined: Apr 2008
Same problem, syncing hangs
Quote:
Originally Posted by Dolfan058

Hi! I followed the instructions, and the email app hangs at "syncing folders". I don't get a crash, it just stalls on "email is waiting to sync" or whatever that prompt is.

I am having the problem where email on the account doesn't ever sync and just hangs.

Nexus 5
KitKat 4.4.2
Modules: GravityBox

The Following User Says Thank You to veabers For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
exchange, exchange bypass, xposed, xposed mod, xposed module
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Nexus 4 Original Android Development by ThreadRank