Skip to Content
Platform.Ontology

Debugger, hooks and developer mode flags

Apps can read whether ADB, developer options or a debugger are on.

Gets silentlyDevice detailsIntegrityAndroid and iPhoneWhen the app opensWhile you use it

In one line

Can check if developer mode or a debugger is turned on, with no prompt on Android

Apps can read whether ADB, developer options or a debugger are on.

Used in anti-tamper and fraud checks. Reveals a technical person or a reverse-engineer.

What it can and can't do

What the user does: Nothing. The app checks when it starts or before a sensitive step

It can

  • Check if Android USB debugging is on
  • Check if Android developer options are on
  • Check if a debugger is attached to the app
  • Guess on iPhone with indirect tests, which are not reliable

It cannot

  • Turn developer mode on or off
  • See what you are doing in a debugger
  • Get a clear yes or no on iPhone; no official flag exists
  • Tell why developer mode is on

How it differs between platforms: Android shows apps these settings directly. On iPhone apps only guess from side effects.

On Android and iPhone

AndroidiPhone
StatusSupportedPartial
First versionAndroid 4.2 (API 17)iOS 2.0
Permission or entitlementNot listednone
Protection levelnonenone
How access is grantednonenone
What the user seesNot listedNot listed
How long it lastsNot listedNot listed
How to take it backNot listedNot listed
Store policyNone listedNone listed
APISettings.Global.ADB_ENABLED, DEVELOPMENT_SETTINGS_ENABLED, Debug.isDebuggerConnected()Heuristic
NotesReadable with no permissionNone

Data you get

What comes back: Flags
Shape: boolean
How often: On check

FieldTypeUnitRangePrecision
adbbooleanNonetrue, false1 bit

Technical limits

  • Heuristic only

The story

What it is

Apps can check if your phone is in developer mode or is being debugged.

For you

You never see this check. Some apps refuse to run or log you out if developer options or a debugger are on. If you are a technical person, an app may act oddly just because you left them on.

For makers

Banks and games use it to catch people who poke at the app, copy it or cheat. It is one of many signals added to a risk score, not proof on its own.

Where you see it

TypeExampleApps
bankingA bank app refuses to open while USB debugging is on, to block screen readers that steal logins.None named
gamesA competitive game flags a player running a debugger to change scores or speed.None named
paymentsA payment app asks for extra checks when developer mode is on.None named
securityA security tool counts debugger flags among signs of reverse engineering of an app.None named
mediaA streaming app blocks playback when a debugger could capture protected video.None named
adsAn ad firm discards traffic from phones in debug mode as likely test or fraud.None named

Risks

  • Punishes tinkerers
  • False alarms

Android and iPhone in short

  • Android: Apps can read settings for ADB and developer options with no prompt.
  • iPhone: iPhone apps can detect a debugger attached to the app, but not Settings flags.

Good uses and abuse

Legitimate uses

  • Anti-tamper

Known abuse

  • Fingerprint

Scores

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility3 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits2Rough identifying entropy, when known

Same idea on the web

Sources

How well checked: Based on official documentation.

On this page