Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,045 Members 38,447 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
shantzg001
Old
(Last edited by shantzg001; 25th January 2014 at 10:26 PM.)
#1  
Recognized Developer - OP
Thanks Meter 35
Posts: 481
Join Date: May 2006
Location: Restaurant at the end of the Universe
Cloud Search [Xposed Mod] Bypass Exchange Security Policy for Nexus devices and other AOSP ROMs

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
The Following 15 Users Say Thank You to shantzg001 For This Useful Post: [ Click to Expand ]
 
shantzg001
Old
#2  
Recognized Developer - OP
Thanks Meter 35
Posts: 481
Join Date: May 2006
Location: Restaurant at the end of the Universe
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: [ Click to Expand ]
 
shantzg001
Old
(Last edited by shantzg001; 28th November 2013 at 06:38 AM.)
#3  
Recognized Developer - OP
Thanks Meter 35
Posts: 481
Join Date: May 2006
Location: Restaurant at the end of the Universe
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.
 
shantzg001
Old
#4  
Recognized Developer - OP
Thanks Meter 35
Posts: 481
Join Date: May 2006
Location: Restaurant at the end of the Universe
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: [ Click to Expand ]
 
kurniawan77
Old
#5  
kurniawan77's Avatar
Retired Forum Moderator
Thanks Meter 515
Posts: 1,464
Join Date: Nov 2008
Location: ☺☻♦▼▼┘

 
DONATE TO ME
X- actly what I was looking for!!!!!

Sent from my Nexus 4 using Tapatalk
__________________________________________




http://forum.xda-developers.com/show...9&postcount=45 Maybe then.... some of you might understand why!
 
shantzg001
Old
#6  
Recognized Developer - OP
Thanks Meter 35
Posts: 481
Join Date: May 2006
Location: Restaurant at the end of the Universe
Version 1.2 is out with support of AOSP based ROMs (Thanks to adumont)
 
shantzg001
Old
(Last edited by shantzg001; 19th December 2013 at 03:24 PM.)
#7  
Recognized Developer - OP
Thanks Meter 35
Posts: 481
Join Date: May 2006
Location: Restaurant at the end of the Universe
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.
 
Ipse_Tase
Old
#8  
Ipse_Tase's Avatar
Senior Member
Thanks Meter 59
Posts: 338
Join Date: 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.
Note 3 4.4.2 Stock, not by choice
Ouya Stock, rooted >>>> replaced by AFTV, you guessed: stock
Kobo Arc10HD 4.2.2 Stock, rooted...can you say I am...STOCKED?
 
Dolfan058
Old
#9  
Member
Thanks Meter 3
Posts: 92
Join Date: Dec 2011
Location: Miami
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!
 
veabers
Old
#10  
Junior Member
Thanks Meter 1
Posts: 7
Join Date: Apr 2008
Default Same problem, syncing hangs

Quote:
Originally Posted by Dolfan058 View Post
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: [ Click to Expand ]
Tags
exchange, exchange bypass, xposed, xposed mod, xposed module
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes