FORUMS

[MOD][XPOSED][5.0+] Bypass Exchange Policies (Outlook & Gmail)

874 posts
Thanks Meter: 126
 
By rfgamaral, Senior Member on 29th June 2016, 07:13 PM
Post Reply Email Thread
Bypass Exchange Policies

Bypass Exchange security policies for Microsoft Outlook and Gmail.

This Xposed module will attempt to bypass the security policies that e-mail applications might want to enforce when you add new Exchange accounts. Currently only Microsoft Outlook and Gmail for devices running Lollipop and above are supported. Some applications - like Gmail - apply obfuscation (with a tool like ProGuard) to prevent tampering with the code. It's possible that this module stops working for future Gmail updates if classes and/or class members receive new random names compared to the previous version. Feel free to submit pull requests fixing bugs or version incompatibilities or adding support for new applications.

Download

Please refer to the GitHub releases page to download the Xposed module until the module is not made available in the Xposed Repository.

Changelog

Please refer to the CHANGELOG file for the full changelog details.

Credits
  • rovo89: Xposed, a framework for changing the system/applications behaviour without touching any APKs.
  • Shantanu Goel: Exchange security bypass Xposed module for Nexus and AOSP Android devices.
  • diwulechao: Exchange security bypass for Android Lollipop Xposed module.
Source
The Following 8 Users Say Thank You to rfgamaral For This Useful Post: [ View ] Gift rfgamaral Ad-Free
30th June 2016, 02:21 AM |#2  
lokety's Avatar
Member
Flag Auckland
Thanks Meter: 8
 
Donate to Me
More
I've just tried this module but it doesn't work for me unfortunately. I want to add my work e-mail account so that I can sync its calendar into my phone.

LG Nexus 5
Android 6.0.1 MOB30M Stock+ ROM by @tupac4u
Xposed framework version 85
Bypass Exchange Policies version 1.0.0

After filling in the Exchange connection details, I was brought to the following screens:

Remote security administration
Account options
Activate device administrator?
Your account is set up and email is on its way!
Security update required

So, I'd say the module isn't working for me.
30th June 2016, 03:27 AM |#3  
OP Senior Member
Flag Porto
Thanks Meter: 126
 
Donate to Me
More
Quote:
Originally Posted by lokety

LG Nexus 5
Android 6.0.1 MOB30M Stock+ ROM by @tupac4u
Xposed framework version 85
Bypass Exchange Policies version 1.0.0

Are you referring to Gmail or Outlook? And what's the full version of the app?

Also, can you post the Xposed log? You can get it from Xposed Installer.
Save
30th June 2016, 05:57 AM |#4  
lokety's Avatar
Member
Flag Auckland
Thanks Meter: 8
 
Donate to Me
More
Quote:
Originally Posted by Nazgulled

Are you referring to Gmail or Outlook? And what's the full version of the app?

Also, can you post the Xposed log? You can get it from Xposed Installer.

Save

I'm using Gmail 6.6.125987275.release.

Xposed log attached.
Attached Files
File Type: txt xposed_error_20160630_164514.log.txt - [Click for QR Code] (37.4 KB, 66 views)
30th June 2016, 10:18 AM |#5  
OP Senior Member
Flag Porto
Thanks Meter: 126
 
Donate to Me
More
Quote:
Originally Posted by lokety

I'm using Gmail 6.6.125987275.release.

As I suspected, since Gmail is obfuscated with ProGuard, new versions generate new random names for class names/members and the Xposed hooks fail because it can't find the proper methods.

I'm afraid it won't be possible to have an Xposed module that works consistently for Gmail. It would need to be updated every time a new version is released and that's not feasible for me, sorry.

I've made the code open-source for lots of reasons and one of those is so that people can submit pull requests to fix problems like this. I currently don't have the time to look into this, maybe someone else might take a look. In the mean time here's what you can try if you want:
  • Remove your Exchange accounts.
  • Downgrade to 6.5-1.123769152.release.
  • Enable the module (don't forget to reboot).
  • Configure your Exchange account.
  • Upgrade to latest version available.
Quote:
Originally Posted by lokety

Xposed log attached.

I can't read this log file, it looks like a binary file instead of a text file...
30th June 2016, 06:16 PM |#6  
OP Senior Member
Flag Porto
Thanks Meter: 126
 
Donate to Me
More
Ok, I just took a quick look to the latest Gmail version, compared both applications decompiled source and only found a single difference of relevance.

That difference was in the dialog popup that appears when setting up an account with Exchange policies. If that is really the only difference, when you get that dialog, just press "OK" to "accept" the dialog and continue with the account process creation. After this step, can you finish the setup configuration without being asked to setup a device administrator or it still doesn't work?
30th June 2016, 06:29 PM |#7  
OP Senior Member
Flag Porto
Thanks Meter: 126
 
Donate to Me
More
Quote:
Originally Posted by Nazgulled

Ok, I just took a quick look to the latest Gmail version, compared both applications decompiled source and only found a single difference of relevance.

That difference was in the dialog popup that appears when setting up an account with Exchange policies. If that is really the only difference, when you get that dialog, just press "OK" to "accept" the dialog and continue with the account process creation. After this step, can you finish the setup configuration without being asked to setup a device administrator or it still doesn't work?

Nevermind, test this myself. It doesn't work...
1st July 2016, 01:05 AM |#8  
OP Senior Member
Flag Porto
Thanks Meter: 126
 
Donate to Me
More
Quote:
Originally Posted by lokety


I'm using Gmail 6.6.125987275.release.

Xposed log attached.

Please try the new v1.0.1 I just pushed to GitHub.

Hopefully it works now
1st July 2016, 01:08 PM |#10  
Member
Flag Holland, MI
Thanks Meter: 12
 
Donate to Me
More
I'm not sure if I'm doing something wrong or if what I'm trying to do isn't in the scope of this, but I can't seem to get this module to stop my company's Exchange security settings from disabling Smart Unlock.

Any help would be greatly appreciated,
Fly
1st July 2016, 01:13 PM |#11  
OP Senior Member
Flag Porto
Thanks Meter: 126
 
Donate to Me
More
Quote:
Originally Posted by FlyOnTheWall43

I'm not sure if I'm doing something wrong or if what I'm trying to do isn't in the scope of this, but I can't seem to get this module to stop my company's Exchange security settings from disabling Smart Unlock.

Any help would be greatly appreciated,
Fly

Are you using Gmail or Outlook?

Make sure you have the latest version installed for the app you use (check http://www.apkmirror.com and download new version if necessary).

For this module to work, you'll need to remove your Exchange account from the e-mail client (check the settings, accounts and device admins and make sure everything related to that account is removed) and then re-add it with the module activated. Don't forget to reboot your phone after enabling the module in Xposed Installer.

If this didn't help, please be more specific. Detail exactly what you are trying to do, post screenshots or record a short video demonstrating the issue.
The Following User Says Thank You to rfgamaral For This Useful Post: [ View ] Gift rfgamaral Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes