Skip to content
Mobile Write-up Intermediate

Bypassing Multiple Checks on Android Applications: A Security Researcher’s Experience

The Android application implemented root, emulator, ADB and location detection checks that blocked testing. The researcher decompiled the APK, modified the detection code, recompiled it and ran the app, bypassing all checks.

sc128496 Follow

Published on medium.com

Hello everyone! My name is Sahil Choudhary, and I’m a security researcher.

Sahil Choudhary, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the detection checks were implemented only in client-side code with no server-side enforcement, so modifying the app binary removed them.

Impact

The bypass allowed the researcher to run and test the application on a rooted emulator with ADB and location services active, but the text does not show any effect on other users or production systems.

What the attacker needed

A copy of the APK; reverse-engineering tools such as JADX; ability to recompile and install the app

The fix

Detection should not rely solely on client-side checks; server-side attestation or integrity verification should be used where the checks matter.

How it was found

  1. Decompile the APK with JADX to obtain source code.
  2. Search the code for the root, emulator, ADB and location detection routines.
  3. Open the decompiled APK in Visual Studio and remove or bypass those checks.
  4. Recompile the APK and run the application to confirm the checks no longer block access.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Android apps can include code that refuses to run on rooted phones, emulators or devices with debugging enabled, to make analysis harder. This researcher opened the app's compiled package, found that code, changed it and rebuilt the app so those checks no longer stopped it. That let them test the app's features as intended.

What is Mobile?

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.

More by sc128496

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Mobile app vulnerabilities

The lesson behind this report.

Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.