How I bypassed Exchange security on Android
I was messing around with AOSPA, wanted to figure out a way to bypass the encryption requirement to get exchange mails. Initially I thought I would have to modify the Email app or the part where the OS the administrative provisioning. But as it turns out all I had to do was comment out 8 lines of code private int getEncryptionStatus() { /*String status = SystemProperties.get("ro.crypto.state", "unsupported"); if ("encrypted".equalsIgnoreCase(status)) { return DevicePolicyManager.ENCRYPTION_STATUS_ACTIVE; } else if ("unencrypted".equalsIgnoreCase(status)) { return…
What it does
In the maker’s words, at launch
I was messing around with AOSPA, wanted to figure out a way to bypass the encryption requirement to get exchange mails. Initially I thought I would have to modify the Email app or the part where the OS the administrative provisioning. But as it turns out all I had to do was comment out 8 lines of code private int getEncryptionStatus() { /*String status = SystemProperties.get("ro.crypto.state", "unsupported"); if ("encrypted".equalsIgnoreCase(status)) { return DevicePolicyManager.ENCRYPTION_STATUS_ACTIVE; } else if ("unencrypted".equalsIgnoreCase(status)) { return DevicePolicyManager.ENCRYPTION_STATUS_INACTIVE; } else { return DevicePolicyManager.ENCRYPTION_STATUS_UNSUPPORTED; }*/ return DevicePolicyManager.ENCRYPTION_STATUS_ACTIVE; } So now the OS always thinks that its encrypted, and it doesn't ask for the encryption password on boot as that is done by a separate module. Source - https://android.googlesource.com/platform/frameworks/base/+/master/services/java/com/android/server/DevicePolicyManagerService.java Line 2592
Does the same job
all alternatives →More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 1d ago · opentrailpaper.com

Launched alongside, July 2014
the whole month →- SHShow HN▲1,302
Life & fun · 2014 · news.ycombinator.com
- MC
Life & fun · 2014 · setosa.io
- OC
Life & fun · 2014 · github.com
- PB
Life & fun · 2014 · pangoly.com
- NT
Life & fun · 2014 · nomadlist.io
- FA
Dev tools · 2014 · interviewing.io