nowfound

Dev tools · July 24, 2014

HI

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 →
  • ProtonMail2016 · ▲199

    End-to-end encrypted email - now on iOS & Android

  • Keybase for Mobile2017 · ▲159

    End-to-end encryption messaging platform

  • BMail2024 · ▲93

    Encrypt emails and attachments

  • Envoy Passport for Android2016 · ▲98

    Visitor sign-in just got even easier

  • Inky 32016 · ▲160

    Send encrypted emails using your current email provider

  • AppSolid2016 · ▲108

    Protect Android apps against hackers

More dev tools this month

the category →
  • Dograh592

    The open source VAPI alternative

    Dev tools · 25d ago · dograh.com

  • Meridian530

    Don't let your work go unnoticed. Get promoted!

    Dev tools · 20d ago · meridiona.com

  • x1516

    Lovable for iPhone apps go from idea to App Store

    Dev tools · 11d ago · x1.new

  • 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

  • Nuphos380

    The AI-Native DevOps Workspace.

    Dev tools · 24d ago · nuphos.ai

Launched alongside, July 2014

the whole month →