How To Disable - Exchange Security policy ? - Nexus 4 Q&A, Help & Troubleshooting

I want to bypass exchange security policy on my phone when I configure my office mail.
Is there any MOD or any ROM which has this feature built in?
If none, then can anyone help me mod the relevant apk's to achieve the same?
I was on Omega ROM on my S3 earlier which had this feature.
Sent from my iPad using Tapatalk HD

I was thinking the same, since I had to activate device admin, which options just like the ones in Cerberus or any antitheft app

Although not the same as the built in support, I prefer to use "TouchDown for Smartphones" as the security options are more limited to this app, rather than the phone OS. In my case, my company can only "remote wipe" the data in the app, leaving the rest of my phone data alone. It also has many features not available with the native client and better support for Exchange 2010.

This works, see link at bottom, I'm using it fine on 4.2.1 so ignore comments....I've been running it on aokp since start, see my SIG for versions
It patches your email and exchange2 apks means you can use swipe unlock and widgets on lock screen, for example I use face unlock
You must still accept companies security policy it's just not enforced.
I did it once and saved the patched apks to /sdcard and now after every new ROM flash i simply copy the saved patched apk into /system/app and then wipe dalvik. Best to remove and re-add the exchange account after each ROM update prior to overwriting files.
http://forum.xda-developers.com/showthread.php?t=2062168
Sent from my Nexus 4 using xda premium

ben_pyett said:
This works, see link at bottom, I'm using it fine on 4.2.1 so ignore comments....I've been running it on aokp since start, see my SIG for versions
It patches your email and exchange2 apks means you can use swipe unlock and widgets on lock screen
You must still accept companies security policy it's just not enforced.
I did it once and saved the patched apks to /sdcard and now after every new ROM flash i simply copy the saved patched apk into /system/app and then wipe dalvik. Best to remove and re-add the exchange account after each ROM update prior to overwriting files.
http://forum.xda-developers.com/showthread.php?t=2062168
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
which method do you suggest, the first, where i patch the one on my phone, or
the Second wher i use the 4.1 apk's?

I used the first Method, i.e the method as per this link - http://forum.xda-developers.com/showthread.php?t=1117452 and it is successful. Thanks!

Related

[MOD] Sense 3.0 Mail.apk with exchange pin security disabled

Alright kids, after much trial and error, here is a working Sense 3.0 Mail.apk with exchange pin security disabled for those who hate entering a pin every time they want to unlock their phone.
Other Sense 3.0 ROMs have successfully cracked their Mail.apks to get around this, but none of them ever worked properly with the Thunderbolt... but our wait is finally over
I made sure to mod the apk to disable ONLY the pin security while leaving all other security measures intact
INSTRUCTIONS (it's also never a bad idea to make a nandroid backup first):
For the Mail.apk
1) Download the attached Mail.apk
2) Mount the system as R/W (either using Root Explorer or 'adb remount')
3) Copy the new Mail.apk to system/app via root explorer and overwrite the older file when it asks, or push the file to system/app via adb
4) Set permissions as rw-r--r--
5) Reboot
6) After reboot, open up the Mail app and set up your exchange account all the way through naming the account, then hit 'Finish Setup'
7) You will be prompted to enable security policy... this is normal so hit 'OK'
8) You will get to another screen asking you to activate security policies... again, this is normal so select 'Activate'. From here on out you will never be prompted to enter a pin
9) Profit!
For the PatchedMail.zip
1) Download the .zip and toss it on your SD card
2) Reboot into CWM
3) WIPE DALVIK-CACHE!!! (Won't work properly if you don't do this)
4) Install the .zip then reboot
5) Follow steps 6-9 above
If you have issues, try clearing dalvik-cache when installing
NOTE: This only works with Sense 3.0, it will not work if trying to flash over the Sense 2.0/1 Mail.apk. And yes, this IS working on Gingerbread ROMs
Enjoy!
Love it! Too bad I am running the ofmgb ROM
Sent from my Xoom using Tapatalk
Where can I get this for a non sense ROM?
Sent from my Xoom using Tapatalk
Does this app have both security check-box options that come in the stock Email.apk app?
"Use secure connection (SSL)"
"Accept all SSL certificates"
I need both checked (and available) to access my work exchange server, and the Sense MAIL.apk doesn't include the latter check box, for some kooky reason.
Thanks!
Thank you, Thank you, Thank you. I've been waiting for this for a while. I was using Touchdown but that sucks, lol. Thanks again.
tommy m said:
Where can I get this for a non sense ROM?
Sent from my Xoom using Tapatalk
Click to expand...
Click to collapse
The Sense Mail.apk only works with Sense ROMs. Sorry
Lipmonger said:
Does this app have both security check-box options that come in the stock Email.apk app?
"Use secure connection (SSL)"
"Accept all SSL certificates"
I need both checked (and available) to access my work exchange server, and the Sense MAIL.apk doesn't include the latter check box, for some kooky reason.
Thanks!
Click to expand...
Click to collapse
This is still the Sense Mail.apk, I just edited the smails in the apk to return the pin security whenever the app requests it. You won't gain any new functionality with this mod so the 'use secure ssl' option is still the only one that shows up
Do you know if this apk can be used on an Evo 4G with Gingerbread? The Sense 3.0 mail that comes with the Evo 3D is the only one that can do push Hotmail in HTML (other than TouchDown). Thanks.
Thank you so much!
Will this also fix the problem I have with not having Exchange emails pushed as frequently as they are on Froyo?
DoctorZaius68 said:
Will this also fix the problem I have with not having Exchange emails pushed as frequently as they are on Froyo?
Click to expand...
Click to collapse
I don't see how. This just circumvents the pin or password policy pushed by exchange admins.
I just wanna throw this out there for some people.
PLEASE KNOW/UNDERSTAND your security policies at work, using this mod could/may be grounds for termination or civil penalties by your Employer.
Is anyone having problems with the setting for HTML emails as default sticking? It will stay for a bit but then later in the day it will be on plain text.
Sent from my Xoom using Tapatalk
Crap this hack doesn't work on the bamf 2.3 side project. It forces closes when trying to add an account.
Sent from my ADR6400L using Tapatalk
Will this Mail.apk mod work with the NonS3ns3 v2.0 ROM which is based on 2.11.605.0 GB (GingerBread 2.3.4) ?
thanks,
Scott
eschelon said:
Alright kids, after much trial and error, here is a working Sense 3.0 Mail.apk with exchange pin security disabled for those who hate entering a pin every time they want to unlock their phone.
Other Sense 3.0 ROMs have successfully cracked their Mail.apks to get around this, but none of them ever worked properly with the Thunderbolt... but our wait is finally over
I made sure to mod the apk to disable ONLY the pin security while leaving all other security measures intact
INSTRUCTIONS (it's also never a bad idea to make a nandroid backup first):
For the Mail.apk
1) Download the attached Mail.apk
2) Mount the system as R/W (either using Root Explorer or 'adb remount')
3) Copy the new Mail.apk to system/app via root explorer and overwrite the older file when it asks, or push the file to system/app via adb
4) Set permissions as rw-r--r--
5) Reboot
6) After reboot, open up the Mail app and set up your exchange account all the way through naming the account, then hit 'Finish Setup'
7) You will be prompted to enable security policy... this is normal so hit 'OK'
8) You will get to another screen asking you to activate security policies... again, this is normal so select 'Activate'. From here on out you will never be prompted to enter a pin
9) Profit!
For the PatchedMail.zip
1) Download the .zip and toss it on your SD card
2) Reboot into CWM
3) WIPE DALVIK-CACHE!!! (Won't work properly if you don't do this)
4) Install the .zip then reboot
5) Follow steps 6-9 above
If you have issues, try clearing dalvik-cache when installing
NOTE: This only works with Sense 3.0, it will not work if trying to flash over the Sense 2.0/1 Mail.apk. And yes, this IS working on Gingerbread ROMs
Enjoy!
Click to expand...
Click to collapse
Sorry for the dumb question. What is the difference between the Mail.apk and PatchedMail.apk?
Im guessing that Mail.apk replaces the native app while PatchedMail.apk patches the native app. Is that right?
thanks,
Scott
I finally tried mail.apk with my Tbolt running NonS3ns3. First, the list of mail providers was blank when the app first started. I was able to select the 1st slot which was the one for AES. Then I got a forced closed when I tried to configure my Exchange server.
I thought NonS3ns3 was a Sense ROM and that the modified mail.apk would work.
Any suggestions?
Switched to BAMF Forever 1.0.6 ROM and was able to use this modded mail.apk package.
Life is good.
swieder711 said:
Switched to BAMF Forever 1.0.6 ROM and was able to use this modded mail.apk package.
Life is good.
Click to expand...
Click to collapse
I've been unsuccesfull getting this installed on BAMF 1.0.6. I get a force close before even attempting to launch the app. I've wiped cache and delvik to no avail.
Did you use the .apk file or the flashable zip? did you have to fix permissions?
I've tried both of the above
bill102938 said:
I've been unsuccesfull getting this installed on BAMF 1.0.6. I get a force close before even attempting to launch the app. I've wiped cache and delvik to no avail.
Did you use the .apk file or the flashable zip? did you have to fix permissions?
I've tried both of the above
Click to expand...
Click to collapse
You have to delete your Mail database. Try Titanium Backup and use it to delete the data for the app.
adrynalyne said:
You have to delete your Mail database. Try Titanium Backup and use it to delete the data for the app.
Click to expand...
Click to collapse
Done and working... I'm embarrased to say that I've worked on this on and off for a few days now and never thought to do that
This was the trick and all is good
---------- Post added at 09:52 AM ---------- Previous post was at 09:47 AM ----------
Now I'd like to find a sense 3 mail.apk with exchange security removed that supports HTML message viewing
We're never 100% satisfied... but getting closer every step

Delete current gmail account

Hi, im asking me if its possible to delete or at least deactivate the current used gmail account on android so that it goes local?
Using ICS v1.0 by Tytung.
Sent from my NexusHD2
There are two ways:
1. Wipe your phone
2. Push framework-res from your original rom zip via adb with right permission
For both ways making backup is highly recommended!
I just need to switch between local and gmail acc (if i need it).
So, there is no other way then using one of your two options.
If i push the orig framework to my current installation and replace them.. what will be the changes? Excepting as you said the removed google account..
Greets
Sent from my NexusHD2
redplate said:
I just need to switch between local and gmail acc (if i need it).
So, there is no other way then using one of your two options.
If i push the orig framework to my current installation and replace them.. what will be the changes? Excepting as you said the removed google account..
Greets
Sent from my NexusHD2
Click to expand...
Click to collapse
Gmail account, background and some sys settings will be resetted...
Ok, very great. Thank you!
Sent from my NexusHD2
Remove GMail account without doing a factory reset
Look in:
http://forum.xda-developers.com/showthread.php?t=1313141
but phone must be unrooted.

[Q] Bypass exchange security

Hey all,
I'm coming from the Samsung Epic 4G touch ..... thankfully off sprint ......... that was a horrible 4 years of abysmal coverage .. slow speeds when it would connect .. and random disconnects thrown in just for fun....
I'm pulling crazy fast speeds everywhere I go ... Hit 50Mbps this morning on my commute..
However, one thing I liked about my samsung was that there was an APK to bypass the exchange security pin ...
Anybody know if the Epic 4g Touch (Sprint version of SGS2) APK will work on the G2? or if there is a version out there that will accomplish this ?
I saw one for the GS4 ...
http://forum.xda-developers.com/showthread.php?t=2355654
Didn't know if this would work on the LG G2 ...
Thanks in advance!!!!
Thanks guys!!!!
Are you rooted? Do you have twrp installed? If so try it and give us a yay or nay. It's not that difficult.
Sent from my LG-D800 using XDA Premium HD app
Try enhanced email app in play store.
I'll try to mod this
Sent from my LG-D801 using XDA Premium 4 mobile app
eclipxe said:
I'll try to mod this
Sent from my LG-D801 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Awesome!!! I hope you get it ... It's a pain in the ass to have to password unlock my phone everytime the screen goes off
I would also love this email bypass apk
Here is an Xposed module designed for the G2 that bypasses the Exchange password policy. Use at your own risk.
anybody got this to work?
eclipxe said:
Here is an Xposed module designed for the G2 that bypasses the Exchange password policy. Use at your own risk.
Click to expand...
Click to collapse
When I try to install, it just says "Application not installed" and doesn't do anything .... I don't know if I need to put it in a special folder or something for xposed to see it ...... I don't know what to do
any ideas or is there a different way to install this APK ?
Try saving the apk then using solid Explorer or the built in file manager to find and install it. Installing from the notification shade doesn't seem to work
Sent from my LG-D801 using XDA Premium 4 mobile app
eclipxe said:
Try saving the apk then using solid Explorer or the built in file manager to find and install it. Installing from the notification shade doesn't seem to work
Sent from my LG-D801 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
This is how I did it.. file explorer ... install
It just then goes to a screen that says not installed and your only option is to exit.
Xposed doesn't seem to know anything about this file.
Make sure to go to settings, security, and select install all apps or similar option
Sent from my LG-D801 using XDA Premium 4 mobile app
can't get it to install for me either
mike2518 said:
Make sure to go to settings, security, and select install all apps or similar option
Sent from my LG-D801 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Install apps from unknown sources ?
That's turned on.
Still no luck.
marcusrab said:
Install apps from unknown sources ?
That's turned on.
Still no luck.
Click to expand...
Click to collapse
I had that check and it still didn't work
Solution
I just did this on my own before seeing your post- hopefully you will find this useful.
I used this set of APKs: http://forum.xda-developers.com/showthread.php?t=1965468
Grab Email-JB.apk and Exchange2.apk
First, you need to completely uninstall (not just freeze) the LG Email app. I used Titanium Back to do this- make a backup of the app first in case you ever wanted to go back for whatever reason. Once the LG Email app is uninstalled, you can install the 2 AOSP APKs.
I didn't try installing them normally (download->open->install), it's worth a shot- instead I used the directions in the post to push the APKs via ADB.
You should see "Success" after pushing both via ADB (I did Exchange2.apk first, but I can't imagine it would matter). Unplug your phone, open Email, and you're set. My Email is syncing perfectly with my corporate email, no lock screen password required.
fireworksordie said:
I just did this on my own before seeing your post- hopefully you will find this useful.
I used this set of APKs: http://forum.xda-developers.com/showthread.php?t=1965468
Grab Email-JB.apk and Exchange2.apk
First, you need to completely uninstall (not just freeze) the LG Email app. I used Titanium Back to do this- make a backup of the app first in case you ever wanted to go back for whatever reason. Once the LG Email app is uninstalled, you can install the 2 AOSP APKs.
I didn't try installing them normally (download->open->install), it's worth a shot- instead I used the directions in the post to push the APKs via ADB.
You should see "Success" after pushing both via ADB (I did Exchange2.apk first, but I can't imagine it would matter). Unplug your phone, open Email, and you're set. My Email is syncing perfectly with my corporate email, no lock screen password required.
Click to expand...
Click to collapse
YES!!!!!!!!!! This totally works..
Thank you for looking out, and thanks for posting this ... I've been waiting to be able to add this .. and having to carry 2 phones to check email because I didnt want to be pinlocked on my G2!!
My procedure -
Rom tool box free for the uninstall, the titanium way didnt work for me because I have TWRP installed .. and when it would try the recovery removal .. it would boot to TWRP instead of the stock recovery ...
Anyways, Rom Toolbox free has an uninstall utility, couldnt be easier .. uninstalls without a reboot needed.
Turned on wireless storage, copied over exchange2.apk and Email-jb.apk and installed through android .. didnt use the ADB method .... it works perfectly!!!!!!
Thanks again.
That works. Only downside is it removed the feature of peak and off peak for message retrieval. oh well.
eclipxe said:
Here is an Xposed module designed for the G2 that bypasses the Exchange password policy. Use at your own risk.
Click to expand...
Click to collapse
Tried this several ways, but it does not install. Can u give some more direction on this? Do we put itf in the apps folders? Flash it? Any advice would be appreciated. I like the lg email app and don't want to go back to the stock one if possible.
if someone figures out how to do this with the stock email app that comes with the att version, that would be awesome. I like that version better than the one you have to install to get this to work.
I really hate having to use a pin, but I have to give my work permission to remote wipe my phone. Is there any chance this could be flagged by my employer and they remote wipe my phone? That would really suck because of the lack of memory card. Anybody that has been remote wiped, did it affect the entire phone, or just the main system?

[App} 5.0 & 4.4.4 Email apk w/ Exchange Pin Bypassed and Dark UI toggle support

These are the AOSP 5.0 & 4.4.4 email application with the exchange pin bypassed. It will still allow for remote wipe, but no pin will be required.
5.0 email and exchange apks here * no dark ui yet
5.0 flashable zip
If you flash the dark ui zip and the rom you are using does not support the dark ui toggle, then the ui will remain dark.
Option 1 : Flash .zip in recovery
4.4.4-Bypassed-Email-DarkJuly23.zip - 4.15 MB Dark UI Toggle support.
Option 2 : Push apks to system/app
You need to be rooted and a root access file explorer like Root Explorer to complete this process.
Code:
1. Backup existing Email & Exchange apks in system/app.
-You can just rename them to : EmailGoogle.apk.bak & Exchange2Google.apk.bak
-Remember to also rename their corresponding odex files
2.Copy both new apks to system/app
3. Set permissions to rw-r-r (screenshot attached)
4. Reboot and set up your exchange account.
4.4.2 APKS
Exchange-PIN-Bypassed-Email.zip - 3.95 MB
EmailGoogle.apk - 4.82 MB
Exchange2Google.apk - 1.12 MB
4.4.1 apks
EmailGoogle.apk - 4.82 MB
Exchange2Google.apk - 1.12 MB
*Older 4.4 apks:
Exchange2Google.apk - 1.12 MB
EmailGoogle.apk - 4.81 MB
Flashable zip to return to stock unmodded email apks:
4.4.2-Stock-Email.zip - 6.45 MB
Question. First android device and I'm trying to set up exchange email and I get a message saying that my device doesn't support SD card encryption which is enforced by my company's IT department. Does this bypass that requirement as well?
don.keishlong said:
Question. First android device and I'm trying to set up exchange email and I get a message saying that my device doesn't support SD card encryption which is enforced by my company's IT department. Does this bypass that requirement as well?
Click to expand...
Click to collapse
I don't believe so, but you can try.
don.keishlong said:
Question. First android device and I'm trying to set up exchange email and I get a message saying that my device doesn't support SD card encryption which is enforced by my company's IT department. Does this bypass that requirement as well?
Click to expand...
Click to collapse
Didn't work for me but as already mentioned, you can give it a try.
FutureBSD said:
Didn't work for me but as already mentioned, you can give it a try.
Click to expand...
Click to collapse
The pin bypass didn't work for you?
Worked for me. Might want to mention if you are on stock you will need to rename the odex files as well.
Please also be aware that this could be in direct violation of your companies corporate email/ActiveSync policies.
it's very important that you are aware of this, and that you understand any potential consequences of violating those policies.
I just wanted to point that out as an Exchange Admin.
Do these suffer from the same Exchange sync bug as the stock 4.4 Email/Exchange apps? Or is only the PIN requirement modified.
belzy said:
Do these suffer from the same Exchange sync bug as the stock 4.4 Email/Exchange apps? Or is only the PIN requirement modified.
Click to expand...
Click to collapse
I haven't had any issues with my exchange account. I do have it set to sync every hour though not push.
Lucke said:
Please also be aware that this could be in direct violation of your companies corporate email/ActiveSync policies.
it's very important that you are aware of this, and that you understand any potential consequences of violating those policies.
I just wanted to point that out as an Exchange Admin.
Click to expand...
Click to collapse
Very true. That being said I am in no way responsible if anyone gets fired, suspended, etc.....
apascual89 said:
The pin bypass didn't work for you?
Click to expand...
Click to collapse
Pin Bypass worked fine for me.
Bypassing the encryption etc. didn't work though.
However I was able to resolve this problem by moving to MailDroid Pro.
This app gives me no calendar though *sigh* The only feature I wanted to use, as I don't care about corporate mails on my private phone but like to get a reminder on appointments. I heard the dev is working on it. Let's see if it's showing up any time soon.
Sync and auto discovery is completely broken in 4.4
Good to know it works on manual
apascual89 said:
I haven't had any issues with my exchange account. I do have it set to sync every hour though not push.
Click to expand...
Click to collapse
This will not work if you are using ART as these are deodexed
Sent from my Nexus 5 using Tapatalk
Not using ART, which has its own set of issues.
Sent from my Nexus 5 using Tapatalk
apascual89 said:
This is the stock refreshed email application with the exchange pin bypassed. It will still allow for remote wipe, but no pin will be required.
Backup your current email and exchange apks including their odexed files and push these to system/app, set permissions, and reboot. Detailed process below.
Exchange2Google.apk - 1.12 MB
EmailGoogle.apk - 4.81 MB
You need to be rooted and a root access file explorer like Root Explorer to complete this process.
Code:
1. Backup existing Email & Exchange apks in system/app.
-You can just rename them to : EmailGoogle.apk.bak & Exchange2Google.apk.bak
-Remember to also rename their corresponding odex files
2.Copy both new apks to system/app
3. Set permissions to rw-r-r (screenshot attached)
4. Reboot and set up your exchange account.
Click to expand...
Click to collapse
Is there an odex version? Just curious if it will cause issues with ART if people start enabling it and run this.
killer2239 said:
Is there an odex version? Just curious if it will cause issues with ART if people start enabling it and run this.
Click to expand...
Click to collapse
I don't have one . Maybe someone else could make it.
Hi, any difference between this mod and the mod here: http://forum.xda-developers.com/showthread.php?t=1749921 ?
Thanks
nevermind.. odexing failed
Used the other one in post 17 and that worked didn't have to mod the odex files to back them up. Not sure why it worked with that mod over this one maybe I did something wrong the first time.
Sent from my Nexus 5 using Tapatalk
Worked great, thanks!

How to install/update apps without conflicts

Hi,
After receiving an OTA update I my phone got updated to May security patch.
As we all know, after this we are unable to download apk's in order to update the apps due to package conflicts etc etc.
I think I found a easy workaround that ad been working, at least for me, always I needed. Just finished updating 7 apps.
They procedure is ad follows:
1. Download the app (I always use apkmirror)
2. Go to Samsung File Manager/My Files and create a shortcut of the app to your Home screen
3. Go to settings > lockscreen & security
4. Disable all lockscreen securities
5. Reboot phone
6. Install all apps by clicking on the shortcuts you created.
After this you can enable lockscreen securities again.
That's it, easy as that!
Please share your experiences to see if also work for you.
Djuganight said:
Hi,
After receiving an OTA update I my phone got updated to May security patch.
As we all know, after this we are unable to download apk's in order to update the apps due to package conflicts etc etc.
I think I found a easy workaround that ad been working, at least for me, always I needed. Just finished updating 7 apps.
They procedure is ad follows:
1. Download the app (I always use apkmirror)
2. Go to Samsung File Manager/My Files and create a shortcut of the app to your Home screen
3. Go to settings > lockscreen & security
4. Disable all lockscreen securities
5. Reboot phone
6. Install all apps by clicking on the shortcuts you created.
After this you can enable lockscreen securities again.
That's it, easy as that!
Please share your experiences to see if also work for you.
Click to expand...
Click to collapse
how often? Does not work with the new update
Not working for me too
Sent from my SM-G930F using XDA-Developers Legacy app
It's working flawless on my device.
Are you sure you followed the steps correctly?
olafsand said:
Not working for me too
Sent from my SM-G930F using XDA-Developers Legacy app
Click to expand...
Click to collapse
Same here
Yea I already tried this a while back, seems to work for some, not others
That said, there are some apps that will still install on mine with the April patch that also caused problems, the latest TouchWiz Home installs fine, and so does the latest Gallery
I think the problem is with the apps not the security patch, as previous versions would not install, latest versions will
Maybe some apps are not compatible with the update you are running until they are also updated
I tried to update several apps but I wasn't able. Seems like this method is not working for me anymore....

Categories

Resources