0

Is there any way to detect if a mobile session on my android app is in android USB debugging mode or developer mode, or otherwise running automation via tools such as appium

bounyh
  • 1

1 Answers1

0

The simplest way:

 if (BuildConfig.DEBUG) {
       return "debug";
 }else {
       return "not debug";
 }

Depending on what your are doing there may be a better way, just Google Buildconfig.Degug

Javier Refuerzo
  • 274
  • 3
  • 7