Ho

How I bypassed Exchange security on Android

Hacker News

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 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

Share card

Actual performance

8points
2comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: para · Missing: supports, reddit linkedin, podcasting
56%56% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
TrustMRRFits verified-revenue profile · Strong signals: google, way, para · Missing: mobile apps, ios, personal
53%53% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
38%38% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Product HuntUnlikely to reach the leaderboard · Strong signals: google, email, code · Missing: mac, agents, macos
36%36% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: platform · Missing: plus, intuitive, reviews
28%28% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: active · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: crypto · Missing: web3, chat, cryptocurrency
4%4% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Di
Diffie-Hellman exchange for the layman35%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Diffie-Hellman exchange for the layman

Hacker News75
St
StackX - Android application for all of Stack Exchange34%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

StackX - Android application for all of Stack Exchange

Hacker News1
reX • Reward Exchange
reX • Reward Exchange23%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

a reward Xchange platform

Product Hunt+5
Backlinkswapper
Backlinkswapper47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

BacklinkSwapper is a platform that facilitates the exchange of backlinks.

TrustMRRMarketing
Ma
Marketizator: 3 in 1 CRO tool (Optimizely+Qualaroo+Bounce Exchange)37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Marketizator: 3 in 1 CRO tool (Optimizely+Qualaroo+Bounce Exchange)

Hacker News1
as.exchange
as.exchange35%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Innovative Derivatives Exchange

Indie Hackers1b2b
Fi
Find and patch security vulnerabilities with reconwithme42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Find and patch security vulnerabilities with reconwithme

Hacker News2
Fi
Find and Patch Security Vulnerabilities42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Find and Patch Security Vulnerabilities

Hacker News2
Gr
GraphQL Security Middleware55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GraphQL Security Middleware

Hacker News4
Ub
Ubuntu Security Essentials51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Ubuntu Security Essentials

Hacker News2